/*
 * Die Schlüsselabfrage vor der API-Referenz. Ein eigenes Dokument ohne das Bündel der Fläche,
 * deshalb eigene, knappe Werte: die Papier-Töne der Werkbank, hell und dunkel nach dem System.
 */
:root {
  --paper: #f4f2ee;
  --card: #fffdfa;
  --ink: #1c1a17;
  --muted: #716b64;
  --line: #dcd7cc;
  --accent: #1a6a87;
  --accent-ink: #ffffff;
  --danger: #a3341f;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121211;
    --card: #1b1b1a;
    --ink: #ecebe7;
    --muted: #a9a59c;
    --line: #34332f;
    --accent: #8cc2d2;
    --accent-ink: #0b1a20;
    --danger: #f08a73;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.55 system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
}

.gate {
  display: grid;
  min-height: 100vh;
  padding: 24px 16px;
  place-items: center;
}

.gate[hidden] {
  display: none;
}

.card {
  width: 100%;
  max-width: 460px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
}

.lead {
  margin: 0 0 24px;
  color: var(--muted);
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

input[type='password'] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.3 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}

input[type='password']:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.check {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0 20px;
  font-weight: 400;
}

button {
  width: 100%;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.status {
  min-height: 1.55em;
  margin: 14px 0 0;
  color: var(--danger);
}

.hint {
  margin: 18px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.hint a,
.back {
  color: var(--accent);
}

.back {
  display: inline-block;
  margin-top: 14px;
  font-size: 14px;
}
