/* The authentication host. Unbranded on purpose: nothing here says what it fronts. */

:root {
  --ground: #f6f5f2;
  --ink: #171614;
  --muted: #6b675f;
  --rule: #d6d2c9;
  --danger: #a32b17;
  --ok: #245c3d;
  --focus: #1d4ed8;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #101010; --ink: #e9e6e0; --muted: #8b857b; --rule: #2c2a27;
    --danger: #e0705a; --ok: #6cbb92; --focus: #7ea6ff;
  }
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  display: grid; place-items: center; padding: 1.5rem;
  background: var(--ground); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.pane { width: 100%; max-width: 22rem; }
.form.wide { max-width: 26rem; }

h1 { font-size: 1.35rem; font-weight: 600; margin: 0 0 1.5rem; letter-spacing: -0.01em; }

.form { display: grid; gap: 0.4rem; }

label {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--muted); margin-top: 0.75rem;
}

input {
  width: 100%; padding: 0.7rem 0.8rem; font: inherit; color: var(--ink);
  background: transparent; border: 1px solid var(--rule); border-radius: 3px;
}
input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
input[readonly] { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }

button {
  margin-top: 1.5rem; padding: 0.75rem 1rem; font: inherit; font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--ink); color: var(--ground);
  border: 1px solid var(--ink); border-radius: 3px; cursor: pointer;
}
button:hover { opacity: 0.88; }

.hint { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.5rem; }
.hint a { color: inherit; }

.error, .notice {
  font-size: 0.85rem; padding: 0.6rem 0.75rem; border-radius: 3px; margin: 0 0 0.5rem;
  border: 1px solid currentColor;
}
.error { color: var(--danger); }
.notice { color: var(--ok); }

.qr { margin: 1rem 0; display: grid; place-items: center; }
.qr img { border: 1px solid var(--rule); border-radius: 3px; background: #fff; padding: 0.5rem; }
