/* The sign-in page: the app's palette and wordmark, nothing else. Same tokens as app.css. */
@font-face { font-family: 'Sofia Sans'; src: url('fonts/sofia-sans-latin.woff2') format('woff2'); font-weight: 1 1000; font-display: swap; }
@font-face { font-family: 'Sofia Sans Extra Condensed'; src: url('fonts/sofia-sans-extra-condensed-latin.woff2') format('woff2'); font-weight: 1 1000; font-display: swap; }

:root {
  --bg: #f3f1f4; --raise: #ffffff; --line: #dcd6e0; --ink: #1d1823; --muted: #675f70; --accent: #a82a56; --accent-ink: #ffffff; --bad: #b3261e;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #1a1620; --raise: #241f2b; --line: #342d3c; --ink: #f2ece6; --muted: #b0a7b8; --accent: #f08ba8; --accent-ink: #2a0d18; --bad: #ff8a80; color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #1a1620; --raise: #241f2b; --line: #342d3c; --ink: #f2ece6; --muted: #b0a7b8; --accent: #f08ba8; --accent-ink: #2a0d18; --bad: #ff8a80; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 400 15px/1.45 'Sofia Sans', ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.door {
  max-width: 400px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 12vh) max(20px, env(safe-area-inset-right, 0px)) 48px max(20px, env(safe-area-inset-left, 0px));
}
.wordmark { margin: 0; font: 800 76px/0.85 'Sofia Sans Extra Condensed', 'Arial Narrow', sans-serif; letter-spacing: -0.01em; }
.lede { margin: 14px 0 12px; color: var(--muted); font-size: 16px; text-wrap: pretty; }
.sign-in { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
label { font-weight: 600; font-size: 14px; }
input { font: inherit; font-size: 17px; color: inherit; width: 100%; height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--raise); outline: none; }
input:focus { border-color: var(--accent); }
.lede b { color: var(--ink); font-weight: 650; white-space: nowrap; }
.code { font-size: 26px; font-weight: 650; letter-spacing: 0.32em; font-variant-numeric: tabular-nums; }
.code::placeholder { letter-spacing: normal; }
.links { margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; }
.link { padding: 6px 0; border: 0; background: none; color: var(--accent); font: 600 14.5px/1.2 'Sofia Sans', ui-sans-serif, system-ui, sans-serif; cursor: pointer; }
.link:disabled { color: var(--muted); cursor: default; }
.go { height: 50px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font: 700 16px/1 'Sofia Sans', ui-sans-serif, system-ui, sans-serif; cursor: pointer; }
.go:disabled { opacity: 0.6; cursor: default; }
.error { margin: 0; color: var(--bad); font-weight: 600; }
.note { margin: 20px 0 0; color: var(--muted); font-size: 13.5px; }
