/* ------------------------------------------------------------------
   auth.css — shared visual language for login + admin-gate card.
   Industrial palette, accessible focus, no decorative noise.
------------------------------------------------------------------ */

:root {
  --auth-bg:          #0e1530;
  --auth-bg-soft:     #131c40;
  --auth-surface:     #ffffff;
  --auth-surface-2:   #f6f8ff;
  --auth-ink:         #0e1a4a;
  --auth-ink-2:       #303a6b;
  --auth-muted:       #5b6483;
  --auth-line:        #dde2f1;
  --auth-accent:      #2447f2;
  --auth-accent-ink:  #ffffff;
  --auth-accent-soft: rgba(36, 71, 242, 0.12);
  --auth-warn-bg:     #fff7e6;
  --auth-warn-fg:     #92400e;
  --auth-warn-line:   #fcd34d;
  --auth-err-bg:      #fef2f2;
  --auth-err-fg:      #b91c1c;
  --auth-err-line:    #fca5a5;
  --auth-info-bg:     #eef2ff;
  --auth-info-fg:     #3730a3;
  --auth-info-line:   #c7d2fe;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

.auth-body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--auth-ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(36, 71, 242, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 100%, rgba(15, 23, 70, 0.55), transparent 60%),
    var(--auth-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.auth-card {
  background: var(--auth-surface);
  border-radius: 16px;
  padding: 2.5rem 2.25rem 2rem;
  width: 100%;
  max-width: 440px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04),
    0 24px 60px -20px rgba(0, 0, 0, 0.45),
    0 8px 18px -8px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--auth-line);
}

/* ---------- brand row ---------- */

.auth-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.auth-brand-mark {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--auth-accent-soft);
  color: var(--auth-accent);
}

.auth-brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.auth-eyebrow {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--auth-muted);
}

.auth-title {
  margin: 0.1rem 0 0;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--auth-ink);
  line-height: 1.2;
}

.auth-subtitle {
  color: var(--auth-ink-2);
  font-size: 0.95rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
}

/* ---------- notice / inline messages ---------- */

.auth-notice {
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 1.25rem;
  border: 1px solid var(--auth-info-line);
  background: var(--auth-info-bg);
  color: var(--auth-info-fg);
}

.auth-notice[data-tone="warn"] {
  background: var(--auth-warn-bg);
  color: var(--auth-warn-fg);
  border-color: var(--auth-warn-line);
}

.auth-notice[data-tone="error"] {
  background: var(--auth-err-bg);
  color: var(--auth-err-fg);
  border-color: var(--auth-err-line);
}

/* ---------- CTA ---------- */

.auth-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: #18181b;
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid #18181b;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.auth-cta:hover { background: #27272a; }
.auth-cta:active { transform: translateY(1px); }

.auth-cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(36, 71, 242, 0.45);
}

.auth-cta-icon {
  flex: 0 0 auto;
}

/* ---------- fineprint ---------- */

.auth-fineprint {
  margin: 1.25rem 0 0;
  color: var(--auth-muted);
  font-size: 0.82rem;
  line-height: 1.55;
  text-align: center;
}

.auth-foot {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ---------- accessibility ---------- */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (max-width: 480px) {
  .auth-card { padding: 2rem 1.5rem 1.75rem; }
  .auth-title { font-size: 1.05rem; }
}
