/* deploy/vps/gate/static/gate.css: the gate page (PLAN-ovt-sharpsoft Task 8). Light or dark follows the
   system setting; phone first. Fonts come from the gate itself (/_gate/static/fonts/), so the page makes no
   third-party request. The colors are app/overture.css's tokens. */
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("fonts/ibm-plex-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
:root {
  color-scheme: light dark;
  --bg: #F4F6F8; --surface: #FFFFFF; --text: #0F1720; --muted: #3D4A59; --border: #C9D1DB;
  --accent: #2F6FED; --on-accent: #FFFFFF; --focus: #1D4ED8; --danger-text: #B91C1C; --danger-bg: #FEE2E2;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1318; --surface: #161C24; --text: #E8EEF4; --muted: #A8B3C0; --border: #334155;
    --focus: #93C5FD; --danger-text: #FCA5A5; --danger-bg: #450A0A;   /* the app keeps --accent in dark mode too */
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: var(--bg); color: var(--text);
  font: 16px/1.5 "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.card { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px 24px; }
.wordmark { margin: 0; font: 600 32px/1.1 "Source Serif 4", Georgia, serif; letter-spacing: -0.01em; }
.tagline { margin: 4px 0 24px; color: var(--muted); font-size: 14px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type=password] { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); }
input[type=password]:focus, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
button { width: 100%; margin-top: 16px; font: 600 16px/1 "IBM Plex Sans", system-ui, sans-serif; padding: 12px; border: 0; border-radius: 8px; background: var(--accent); color: var(--on-accent); cursor: pointer; }
.error { margin: 12px 0 0; padding: 8px 12px; border-radius: 8px; background: var(--danger-bg); color: var(--danger-text); }
.hint { margin: 20px 0 0; color: var(--muted); font-size: 14px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
