/* The sign-in page: a static file under the console's enforced CSP (no inline style or script). Own copy of the key tokens. */
:root {
  --ink: #0f172a;
  --muted: #475569;
  --paper: #faf8f5;
  --surface: #ffffff;
  --border: #64748b;
  --accent: #1d4ed8;
  --on-accent: #ffffff;
  --danger: #b91c1c;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #e5e9f5;
  --muted: #a3aec7;
  --paper: #0b1020;
  --surface: #141b30;
  --border: #8190ad;
  --accent: #60a5fa;
  --on-accent: #0b1020;
  --danger: #f87171;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e5e9f5;
    --muted: #a3aec7;
    --paper: #0b1020;
    --surface: #141b30;
    --border: #8190ad;
    --accent: #60a5fa;
    --on-accent: #0b1020;
    --danger: #f87171;
    color-scheme: dark;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}
.wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1rem;
}
.card {
  width: 100%;
  max-width: 24rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  padding: 1.5rem;
}
.brand {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}
h1 {
  margin: 0.25rem 0 1rem;
  font-size: 1.375rem;
}
.hint {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.875rem;
}
label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  font-size: 0.875rem;
}
input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 0.625rem;
}
input[name="code"] {
  letter-spacing: 0.4em;
  font-variant-numeric: tabular-nums;
  text-align: center;
  font-size: 1.375rem;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.btn {
  display: block;
  width: 100%;
  min-height: 2.75rem;
  margin-top: 1rem;
  font: inherit;
  font-weight: 600;
  color: var(--on-accent);
  background: var(--accent);
  border: 0;
  border-radius: 0.625rem;
  cursor: pointer;
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.link {
  display: block;
  margin: 0.75rem auto 0;
  min-height: 2.75rem;
  padding: 0 0.5rem;
  font: inherit;
  color: var(--accent);
  background: none;
  border: 0;
  text-decoration: underline;
  cursor: pointer;
}
.msg {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--danger);
}
.msg:empty {
  display: none;
}
