/* Erudia auth pages — de-AI tokens (see docs/DESIGN.md). Scoped to .auth-shell
   so the rest of the app keeps its current theme until the Workstream-B restyle. */
.auth-shell {
  --e-bg:#0B0B0C; --e-surface:#161617; --e-raised:#1F1F21;
  --e-line:#2E2E31; --e-ink:#F5F4F2; --e-muted:#A9A8A4; --e-faint:#94949A;
  --e-accent:#E0A82E; --e-accent-hover:#EDB949; --e-accent-ink:#2A1D02;
  --e-error:#E5614E; --e-r-md:10px; --e-r-lg:14px;
  position:fixed; inset:0; z-index:200; overflow:auto;
  background:var(--e-bg); color:var(--e-ink);
  font-family:"Inter",system-ui,sans-serif;
  display:flex; align-items:center; justify-content:center; padding:24px;
}
.auth-card { width:340px; max-width:100%; }
.auth-word { font-family:"Fraunces",serif; font-weight:600; font-size:28px; letter-spacing:-.01em; }
.auth-h { font-size:18px; font-weight:500; margin:18px 0 3px; }
.auth-sub { color:var(--e-muted); font-size:13px; margin-bottom:18px; line-height:1.5; }
.auth-field { width:100%; background:#0E0E10; border:1px solid var(--e-line); border-radius:var(--e-r-md);
  color:var(--e-ink); font-size:14px; padding:11px 12px; margin-bottom:10px; }
.auth-field::placeholder { color:var(--e-faint); }
.auth-field:focus-visible { outline:2px solid var(--e-accent); outline-offset:1px; }
.auth-pw-wrap { position:relative; }
.auth-pw-toggle { position:absolute; right:10px; top:9px; background:none; border:0; color:var(--e-muted); cursor:pointer; font-size:12px; }
.auth-btn { width:100%; border:none; border-radius:var(--e-r-md); background:var(--e-accent);
  color:var(--e-accent-ink); font-weight:500; font-size:14px; padding:11px; cursor:pointer; }
.auth-btn:hover:not(:disabled) { background:var(--e-accent-hover); }
.auth-btn:disabled { opacity:.55; cursor:not-allowed; }
.auth-btn-ghost { width:100%; background:var(--e-surface); border:1px solid var(--e-line); color:var(--e-ink);
  border-radius:var(--e-r-md); font-weight:500; font-size:14px; padding:11px; cursor:pointer;
  display:flex; align-items:center; justify-content:center; gap:9px; margin-bottom:14px; }
.auth-btn-ghost:disabled { opacity:.55; cursor:not-allowed; }
.auth-div { display:flex; align-items:center; gap:10px; margin:14px 0; color:var(--e-faint); font-size:12px; }
.auth-div::before, .auth-div::after { content:""; flex:1; height:1px; background:var(--e-line); }
.auth-link { background:none; border:0; color:var(--e-muted); font-size:13px; cursor:pointer; text-decoration:underline; padding:0; }
.auth-link:hover { color:var(--e-ink); }
.auth-msg { font-size:13px; margin-top:10px; min-height:18px; }
.auth-msg.err { color:var(--e-error); }
.auth-age { display:flex; align-items:center; gap:8px; font-size:13px; color:var(--e-muted); margin:2px 0 14px; cursor:pointer; }
.auth-age input { width:16px; height:16px; accent-color:var(--e-accent,#E0A82E); cursor:pointer; flex:none; }
.gsi-wrap { display:flex; justify-content:center; min-height:40px; margin-bottom:6px; }
.gsi-wrap:empty { min-height:0; }
.auth-legal { text-align:center; color:var(--e-faint); font-size:11px; margin-top:16px; line-height:1.5; }
.auth-toggle { display:flex; gap:4px; margin-bottom:18px; background:var(--e-surface); border:1px solid var(--e-line); border-radius:var(--e-r-md); padding:3px; }
.auth-toggle button { flex:1; border:0; background:none; color:var(--e-muted); padding:7px; border-radius:7px; cursor:pointer; font-size:13px; }
.auth-toggle button.on { background:var(--e-raised); color:var(--e-ink); }
.auth-guest { margin-top:18px; padding-top:16px; border-top:1px solid var(--e-line); text-align:center; }
.auth-guest .auth-link { font-size:14px; }
.auth-guest-note { color:var(--e-faint); font-size:11px; margin-top:6px; line-height:1.5; }
@media (prefers-reduced-motion: reduce) { .auth-shell * { transition:none !important; } }
