/* Sign-in pages (owned by the auth agent). Linked because the CSP blocks inline styles. */
:root {
  color-scheme: light dark;
  --bg: #f6f6f4;
  --card: #ffffff;
  --text: #1c1c1e;
  --muted: #5f5f66;
  --line: #d4d4d8;
  --accent: #1f5fbf;
  --error: #b42318;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161618;
    --card: #222225;
    --text: #f2f2f3;
    --muted: #a1a1a8;
    --line: #3a3a3f;
    --accent: #6c9cf0;
    --error: #ff8a80;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.auth {
  max-width: 400px;
  margin: 48px auto;
  padding: 24px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
h1 { font-size: 22px; margin: 0 0 12px; }
p { margin: 0 0 14px; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  font: inherit;
  color: inherit;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
}
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button, .button {
  display: inline-block;
  min-height: 44px;
  margin-top: 18px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
}
button.link { background: none; color: var(--accent); padding: 10px 0; font-weight: 400; }
a { color: var(--accent); }
.error { color: var(--error); font-weight: 600; }
.hint { color: var(--muted); font-size: 15px; margin-top: 18px; }
.qr { display: block; width: 240px; max-width: 100%; height: auto; margin: 8px auto 16px; }
.key, .codes code { font: 600 16px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.04em; }
.codes { columns: 2; padding-left: 28px; }
