/* Sign in and sign up pages, in the main design. Tokens match /index.html and /dashboard/. */
:root {
  --bg: #f4f4f1; --card: #ffffff; --ink: #111214; --muted: #64666d; --line: #e6e6e1;
  --blue: #2445ff; --blue-soft: #e8ecff; --pill: #111214; --on-pill: #ffffff;
  --mint: #dff5e8; --peach: #ffe9dc; --lilac: #ece6ff; --sky: #dff0ff; --lemon: #fbf3cf; --rose: #ffe3ea;
  --good: #11804a; --warn: #b06a00; --bad: #cc2f2f;
  --gold: #e0b72f; --silver: #9aa3b2;
  --shadow: 0 1px 2px rgba(17,18,20,.04), 0 12px 32px -12px rgba(17,18,20,.14);
  --font: "Plus Jakarta Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --r-lg: 24px; --r-md: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1012; --card: #18191c; --ink: #f3f3f1; --muted: #9a9ca3; --line: #2a2b30;
    --blue: #6f86ff; --blue-soft: #1c2142; --pill: #f3f3f1; --on-pill: #111214;
    --mint: #15291f; --peach: #2e2119; --lilac: #221d36; --sky: #152434; --lemon: #2a2614; --rose: #2f1a20;
    --good: #48d08a; --warn: #f0aa45; --bad: #ff7272;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1012; --card: #18191c; --ink: #f3f3f1; --muted: #9a9ca3; --line: #2a2b30;
  --blue: #6f86ff; --blue-soft: #1c2142; --pill: #f3f3f1; --on-pill: #111214;
  --mint: #15291f; --peach: #2e2119; --lilac: #221d36; --sky: #152434; --lemon: #2a2614; --rose: #2f1a20;
  --good: #48d08a; --warn: #f0aa45; --bad: #ff7272;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 1rem/1.55 var(--font); -webkit-font-smoothing: antialiased; }
h1, p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; max-width: 1120px; width: 100%; margin-inline: auto; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.03em; font-size: 1.0625rem; text-decoration: none; }
.theme-toggle { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 999px; background: var(--card); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); }
.theme-toggle .i-sun { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; } :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; } }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
main { flex: 1; display: grid; place-items: start center; padding: 24px 16px 64px; }
.authcard { width: 100%; max-width: 440px; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 36px; display: grid; gap: 20px; }
@media (max-width: 520px) { .authcard { padding: 26px 18px; } main { padding-top: 8px; } }
.authcard h1 { font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; font-size: 2.25rem; }
.authcard form { display: grid; gap: 14px; }
.lbl { display: grid; gap: 6px; font-size: 0.8125rem; font-weight: 600; color: var(--muted); min-width: 0; }
.in { height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); padding-inline: 14px; width: 100%; min-width: 0; font-size: 1rem; }
.in:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-soft); }
.in[aria-invalid="true"] { border-color: var(--bad); }
.pw { position: relative; }
.pw .in { padding-right: 64px; }
.pw button { position: absolute; right: 6px; top: 6px; height: 34px; padding-inline: 10px; border: 0; border-radius: 10px; background: var(--bg); font-size: 0.75rem; font-weight: 700; cursor: pointer; color: var(--ink); }
.hint { font-size: 0.75rem; font-weight: 500; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; }
.chk input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.chk a { text-decoration: underline; }
.pill { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding-inline: 18px; border-radius: 999px; font-weight: 600; font-size: 0.9375rem; border: 0; cursor: pointer; width: 100%; background: var(--pill); color: var(--on-pill); }
.pill[disabled] { opacity: .6; cursor: progress; }
.formmsg { font-size: 0.875rem; min-height: 1.4em; color: var(--bad); }
.alt { font-size: 0.9375rem; color: var(--muted); }
.alt a { color: var(--ink); font-weight: 600; text-decoration: underline; }
.fine { font-size: 0.75rem; color: var(--muted); }
.linkbtn { border: 0; background: none; padding: 0; font: inherit; color: var(--ink); font-weight: 600; text-decoration: underline; cursor: pointer; }
.formmsg.ok { color: var(--good); }
/* Terms and Privacy pages */
.legal { max-width: 720px; gap: 14px; }
.legal h2 { margin: 14px 0 0; font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em; }
.legal ul { margin: 0; padding-left: 1.25em; }
.legal .note { background: var(--lemon); border-radius: 12px; padding: 10px 14px; font-size: 0.875rem; font-weight: 600; }
.legal .stamp { font-size: 0.8125rem; }
