/*
 * The server-rendered pages: /login, the demo's role picker at /demo, and the
 * 404, 503 and 429 pages (src/core/pages.js). One small stylesheet, no
 * script, the system font, dark always like the app (docs/APP.md §6.1, 29 Oct
 * 2026). The tokens are app.css's own values, so these pages read as the app.
 * The logo keeps its white and blue, straight on the dark card.
 */
:root {
  color-scheme: dark;
  --bg: #05070A; --surface: #111318; --surface-2: #171A20; --hairline: rgba(255,255,255,.08); --hairline-2: rgba(255,255,255,.16);
  --text: #F2F4F7; --text-2: #A9AFB9; --accent: #00AAEE; --accent-fill: #00AAEE; --accent-fill-hover: #19B5F2; --on-accent: #001A26;
  --accent-soft: rgba(0,170,238,.16); --focus: #33BBF2; --red: #FF6B61; --amber: #F5B544; --fill-2: rgba(118,118,128,.16);
  --shadow: 0 4px 12px rgba(0,0,0,.6), 0 24px 48px -16px rgba(0,0,0,.6);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); color: var(--text);
  font: 400 15px/21px var(--font); -webkit-font-smoothing: antialiased;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.door { width: 100%; max-width: 440px; }
.door-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; padding: 32px 28px 28px; box-shadow: var(--shadow); }
.door-logo { margin-bottom: 28px; }
.lockup { display: block; height: 28px; width: auto; aspect-ratio: 6 / 1; }
h1 { margin: 0 0 12px; font-size: 28px; line-height: 34px; font-weight: 700; letter-spacing: -0.016em; }
.door-lede { margin: 0 0 16px; color: var(--text-2); }
.door-note { margin: 0 0 20px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--hairline); color: var(--text); font-size: 14px; line-height: 20px; }
.door-error { margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--hairline); box-shadow: inset 3px 0 0 var(--red); color: var(--text); font-size: 14px; line-height: 20px; }
.door-foot { margin: 16px 0 0; color: var(--text-2); font-size: 13px; line-height: 18px; text-align: center; }
.door-google {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; padding: 6px 20px; border-radius: 999px;
  border: 1px solid #8E918F; background: #131314; color: #E3E3E3; font-weight: 500; font-size: 15px; text-decoration: none;
}
.door-google:hover { background: #1F1F21; }
.door-google .g { width: 20px; height: 20px; flex: none; }
.door-google-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; min-width: 0; }
.door-account { font-size: 13px; color: #C4C7C5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.door-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 0; border-radius: 12px;
  background: var(--accent-fill); color: var(--on-accent); font-weight: 600; font-size: 15px; text-decoration: none;
}
.door-btn:hover { background: var(--accent-fill-hover); }
.door-btn-plain { width: 100%; justify-content: flex-start; background: var(--fill-2); color: var(--text); margin-top: 8px; font-weight: 500; }
.door-btn-plain:hover { background: var(--accent-soft); }
.door-dev { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--hairline); }
.door-dev-title { margin: 0 0 4px; color: var(--text-2); font-size: 13px; }
.door-roles { display: grid; gap: 8px; margin: 0; }
.door-roles-title { margin: 4px 0 4px; font-size: 17px; line-height: 22px; font-weight: 600; }
.door-role {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; padding: 12px 16px; border: 1px solid var(--hairline-2);
  border-radius: 14px; background: var(--surface); color: var(--text); text-align: left; cursor: pointer; font: inherit;
}
.door-role:hover { background: var(--accent-soft); border-color: var(--accent); }
.door-role-name { font-weight: 600; font-size: 16px; line-height: 21px; }
.door-role-line { color: var(--text-2); font-size: 14px; line-height: 19px; }
a { color: var(--accent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 4px rgba(0,170,238,.35); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
