/* Usaka Chronos gate pages. Self-contained: no external fonts or images. */
:root {
  --bg: #F6F4EF; --surface: #ffffff; --ink: #1c2526; --muted: #5b6a6c;
  --primary: #0F6B6E; --primary-ink: #ffffff; --line: #d8d4c9;
  --ok: #1a6b45; --warn: #9a6200; --error: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #101617; --surface: #172022; --ink: #e8efef; --muted: #9fb0b2; --line: #2b3a3c; --primary: #3fb0b4; --primary-ink: #062022; --ok: #6fd3a0; --warn: #f0b95a; --error: #ff8a80; }
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: grid; place-items: center; padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}
.gate-card {
  width: 100%; max-width: 380px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px; padding: 24px 20px;
}
.gate-eyebrow { margin: 0; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); font-weight: 700; }
h1 { margin: 4px 0 6px; font-size: 1.5rem; }
.gate-sub { margin: 0 0 18px; color: var(--muted); font-size: 0.92rem; }
label { display: block; margin: 12px 0 4px; font-size: 0.85rem; font-weight: 600; }
input[type="password"] {
  width: 100%; padding: 12px; font-size: 1rem; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink);
}
input[type="password"]:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; }
button[type="submit"] {
  width: 100%; margin-top: 18px; padding: 13px; font-size: 1rem; font-weight: 700;
  border: 0; border-radius: 10px; background: var(--primary); color: var(--primary-ink); cursor: pointer;
}
button:disabled { opacity: 0.6; cursor: progress; }
.gate-link {
  display: inline-block; margin-top: 14px; padding: 6px 0; background: none; border: 0;
  color: var(--primary); font: inherit; font-size: 0.9rem; text-decoration: underline; cursor: pointer;
}
.gate-msg { min-height: 1.4em; margin: 12px 0 0; font-size: 0.9rem; }
.gate-msg[data-kind="ok"] { color: var(--ok); }
.gate-msg[data-kind="warn"] { color: var(--warn); }
.gate-msg[data-kind="error"] { color: var(--error); }
