/**
 * Fallback login styles — aligned with app theme (slate + indigo).
 * Served from /actinium-login.css when Tailwind build output is missing.
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  background: rgb(248 250 252);
  color: rgb(15 23 42);
}

.flash-stack {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 99;
  display: grid;
  gap: 8px;
  max-width: min(420px, calc(100vw - 24px));
}

.flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgb(226 232 240);
  background: #ffffff;
  color: rgb(15 23 42);
  font-size: 14px;
  box-shadow: 0 1px 2px 0 rgb(15 23 42 / 0.06);
}

.flash-message {
  flex: 1;
  min-width: 0;
  line-height: 1.45;
}

.flash-dismiss {
  flex-shrink: 0;
  margin: -2px -4px -2px 0;
  padding: 4px 8px;
  border: none;
  background: transparent;
  color: rgb(100 116 139);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}

.flash-dismiss:hover {
  background: rgb(15 23 42 / 0.06);
  color: rgb(15 23 42);
}

.flash-dismiss:focus-visible {
  outline: 2px solid rgb(99 102 241);
  outline-offset: 2px;
}

.flash-notice {
  border-color: rgb(167 243 208);
  background: rgb(236 253 245 / 0.9);
}

.flash-alert {
  border-color: rgb(254 202 202);
  background: rgb(254 242 242 / 0.9);
}

.auth-wrap {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  background: rgb(248 250 252);
  color: rgb(15 23 42);
}

.auth-card {
  width: 100%;
  max-width: 28rem;
  border-radius: 1rem;
  border: 1px solid rgb(226 232 240);
  background: #ffffff;
  padding: 2rem;
  box-shadow: 0 1px 2px 0 rgb(15 23 42 / 0.04), 0 1px 3px 0 rgb(15 23 42 / 0.06);
}

.auth-card h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgb(15 23 42);
}

.auth-card .small-muted {
  margin-top: 0.5rem;
  font-size: 14px;
  line-height: 1.625;
  color: rgb(71 85 105);
}

.auth-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

.auth-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: rgb(15 23 42);
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  margin-top: 0.375rem;
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid rgb(203 213 225);
  background: #ffffff;
  padding: 0.5rem 0.75rem;
  font-size: 14px;
  color: rgb(15 23 42);
  outline: none;
}

.auth-form input::placeholder {
  color: rgb(100 116 139);
}

.auth-form input:focus {
  border-color: rgb(79 70 229);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.auth-form .btn-primary,
.btn-primary {
  margin-top: 0.5rem;
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 0.5rem;
  border: none;
  background: rgb(79 70 229);
  color: #ffffff;
  padding: 0.625rem 1rem;
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.08);
}

.auth-form .btn-primary:hover,
.btn-primary:hover {
  background: rgb(67 56 202);
}

.auth-form .btn-primary:focus-visible,
.btn-primary:focus-visible {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px rgb(99 102 241);
}
