/* STR Expense Tracker — auth pages (login / signup / reset)
 *
 * These pages do not load main.css, so the tokens are repeated here on
 * purpose. Keep the values identical to the :root block in main.css.
 */
:root{
  --navy:#23455F; --teal:#8B4513; --ocean:#4A6B4F; --aqua:#899F8E;
  --sand:#EFE4D2; --sunset:#D0B187; --sky:#F4F1E8; --white:#FDFDF9;
  --text:#23455F; --muted:#4C6272; --border:rgba(35,69,95,.62);
  --hairline:rgba(35,69,95,.14);
  --focus:#8B4513; --focus-ring:0 0 0 3px rgba(139,69,19,.30);
  --ease:cubic-bezier(0.25, 1, 0.5, 1); --dur:160ms;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  color:var(--text);line-height:1.5;min-height:100vh;display:flex;
  /* Column, so the card and the legal footer STACK (card centered, links
     underneath) instead of sitting side by side as flex-row siblings. */
  flex-direction:column;align-items:center;justify-content:center;padding:24px;
  background:linear-gradient(165deg,var(--sky) 0%,#FDFDF9 55%,var(--sand) 160%);
}
.auth-card{
  width:100%;max-width:420px;background:var(--white);border-radius:18px;
  box-shadow:0 24px 60px rgba(35,69,95,.14);border:1px solid rgba(35,69,95,.06);
  padding:34px 32px;
}
.auth-brand{display:flex;justify-content:center;margin-bottom:20px}
/* The logo carries the wordmark, so it is sized by width rather than height. */
.auth-logo{width:min(260px,78%);height:auto}
.auth-card h1{font-size:21px;color:var(--navy);margin-bottom:6px}
.auth-card .sub{color:var(--muted);font-size:14px;margin-bottom:22px}
.field{margin-bottom:15px}
.field label{display:block;font-size:12px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.3px;margin-bottom:6px}
/* Border is 3.47:1 against the card — an input outline is a UI component
   boundary, so WCAG 1.4.11 applies to it. No `outline:none`: the old rule
   removed the ring and left only a border-colour shift to mark focus. */
.field input{width:100%;padding:11px 12px;border:1px solid var(--border);border-radius:9px;font-size:16px;color:var(--text);font-family:inherit;background:#fff;transition:border-color var(--dur) var(--ease),box-shadow var(--dur) var(--ease)}
/* The transparent outline is deliberate: Windows High Contrast Mode drops
   box-shadow but forces outlines to a system colour, so the ring survives. */
.field input:focus-visible{border-color:var(--focus);box-shadow:var(--focus-ring);outline:2px solid transparent;outline-offset:2px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;padding:13px;border-radius:10px;font-weight:700;font-size:15px;font-family:inherit;cursor:pointer;border:2px solid transparent;transition:background var(--dur) var(--ease)}
.btn-primary{background:var(--teal);color:#fff}
.btn-primary:hover{background:#6F370F}
.btn-primary:disabled{opacity:.6;cursor:default}
/* One focus treatment for every interactive element on these pages. */
:where(a,button,input,select,textarea):focus-visible{outline:2px solid var(--focus);outline-offset:2px}
/* Full border plus a tinted field — not a coloured stripe down one edge. */
.alert{padding:11px 13px;border-radius:9px;border:1px solid transparent;font-size:13px;margin-bottom:15px}
.alert-error{background:#FAEDEB;color:#A33A2E;border-color:rgba(163,58,46,.35)}
.alert-success{background:#EAF0EA;color:#4A6B4F;border-color:rgba(74,107,79,.35)}
.auth-foot{margin-top:18px;text-align:center;font-size:14px;color:var(--muted)}
.auth-foot a{color:var(--teal);font-weight:600}
.auth-links{display:flex;justify-content:space-between;font-size:13px;margin-top:6px}
.auth-links a{color:var(--teal)}
.home-link{position:fixed;top:20px;left:22px;font-size:14px;color:var(--navy);font-weight:600;padding:6px 8px;border-radius:8px}
/* Compact legal footer shown on every public auth page. */
.auth-legal{margin:26px auto 20px;text-align:center;font-size:12px;color:var(--muted);line-height:1.7;max-width:420px;padding:0 16px}
.auth-legal a{color:var(--muted);font-weight:600}
.auth-legal a:hover{color:var(--teal)}
.auth-legal .gh{display:block;margin-top:3px;font-weight:700;color:var(--navy)}
/* Same stroked 24-grid mark as the app, in place of an emoji glyph. */
.verify-icon{width:42px;height:42px;margin:0 auto 10px;color:var(--teal)}
.verify-icon svg{width:100%;height:100%;display:block}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{transition-duration:.01ms !important;animation-duration:.01ms !important}
}
