:root {
  color-scheme: light dark;
  --bg: #f3f5f8;
  --surface: #fff;
  --ink: #192638;
  --muted: #4b5c72;
  --line: #a5b0bf;
  --accent: #264c87;
  --on-accent: #fff;
  font: 18px/1.5 system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141b25;
    --surface: #202b39;
    --ink: #f0f4f9;
    --muted: #c5cfda;
    --line: #798a9f;
    --accent: #adccff;
    --on-accent: #142741;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6rem; }
a { color: var(--accent); }
button, input, textarea { font: inherit; color: inherit; }
button {
  min-height: 46px;
  padding: .4rem .85rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--surface);
  cursor: pointer;
}
button:disabled { opacity: .65; cursor: default; }
button.primary, button[aria-pressed="true"], button[aria-current="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
input:not([type="checkbox"]), textarea {
  width: 100%;
  padding: .55rem;
  border: 1px solid var(--line);
  border-radius: .4rem;
  background: var(--surface);
}
input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--accent); }
.login main {
  max-width: 27rem;
  margin: min(12vh, 5rem) auto;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: .7rem;
}
.login form { display: grid; gap: .6rem; margin-top: 1.25rem; }
.check { display: flex; gap: .45rem; align-items: center; padding: .5rem 0; }
#status:empty { display: none; }
