/* The gateway's login page: dark by default like the dashboard, light by the browser's setting. */
:root {
  color-scheme: dark light;
  --bg: #111317; --panel: #1c1f25; --line: #343a44;
  --text: #eef0f3; --text-2: #bdc3cc; --muted: #98a2af;
  --accent: #9bc2ff; --on-accent: #111317; --red: #f19c9c; --warn: #e1b25a;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fa; --panel: #ffffff; --line: #d0d7de;
    --text: #1f2328; --text-2: #424a53; --muted: #656d76;
    --accent: #0969da; --on-accent: #ffffff; --red: #cf222e; --warn: #9a6700;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 24px 16px;
  background: var(--bg); color: var(--text); font: 400 14px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
.card { width: 100%; max-width: 400px; padding: 28px 24px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; }
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--accent); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
h1 { margin: 0 0 8px; font-size: 20px; font-weight: 550; letter-spacing: -0.02em; }
p { margin: 0 0 16px; color: var(--text-2); }
.hint { margin: 18px 0 0; color: var(--muted); font-size: 13px; }
form { display: grid; gap: 8px; }
label { font-size: 13px; color: var(--text-2); }
input, select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg); color: var(--text); font: inherit; }
button { width: 100%; min-height: 44px; margin-top: 8px; padding: 10px 14px; border-radius: 4px; border: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-weight: 550; cursor: pointer; }
button.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
button:disabled { opacity: 0.55; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.say { margin: 16px 0 0; color: var(--red); font-size: 13px; }
.say.wait { color: var(--warn); }
footer { display: flex; justify-content: flex-end; margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); }
footer select { width: auto; min-height: 36px; padding: 6px 10px; font-size: 13px; color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
