/* Hosted pages. Brand colours come from /brand.css (--accent, --accent-text). */
:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --danger: #b91c1c;
  --radius: 10px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b0d10; --card: #15181d; --text: #f3f4f6; --muted: #9ca3af; --border: #2a2f37; --danger: #f87171; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; display: flex; align-items: flex-start; justify-content: center;
  padding: 48px 16px; background: var(--bg); color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 32px; }
.brand { margin-bottom: 20px; font-weight: 700; font-size: 15px; }
.brand a { color: var(--accent); text-decoration: none; }
h1 { font-size: 22px; line-height: 1.3; margin: 0 0 8px; }
h2 { font-size: 15px; margin: 0 0 8px; }
section { margin-top: 24px; }
section:first-of-type { margin-top: 0; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
label { display: block; font-size: 13px; font-weight: 600; margin: 16px 0 6px; }
input {
  width: 100%; padding: 10px 12px; font: inherit; color: inherit; background: transparent;
  border: 1px solid var(--border); border-radius: var(--radius);
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
#otp { font-size: 22px; letter-spacing: 6px; font-family: ui-monospace, Menlo, monospace; text-align: center; }
button { font: inherit; cursor: pointer; border-radius: var(--radius); padding: 10px 16px; border: 1px solid transparent; width: 100%; }
button:disabled { opacity: .6; cursor: progress; }
button.primary { background: var(--accent); color: var(--accent-text); font-weight: 600; margin-top: 12px; }
button.secondary { background: transparent; color: var(--text); border-color: var(--border); }
button.secondary:hover { border-color: var(--muted); }
button.link { width: auto; padding: 0; border: 0; background: none; color: var(--accent); }
button.link.danger { color: var(--danger); font-size: 13px; }
a { color: var(--accent); }
.stack { display: grid; gap: 8px; }
.links { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 14px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.actions { display: flex; gap: 8px; margin-top: 20px; }
.actions button { margin-top: 0; }
.error { color: var(--danger); font-size: 14px; margin-top: 16px; }
.scopes { padding-left: 20px; margin: 0 0 12px; }
.scopes li { margin: 4px 0; }
.who { margin-bottom: 8px; }
.list { list-style: none; padding: 0; margin: 0 0 12px; border: 1px solid var(--border); border-radius: var(--radius); }
.list li { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 10px 12px; border-top: 1px solid var(--border); }
.list li:first-child { border-top: 0; }
.list li > span:first-child { flex: 1; overflow-wrap: anywhere; }
.inline { display: flex; gap: 8px; }
.inline button { width: auto; white-space: nowrap; }
.notice { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-top: 12px; }
code { font-family: ui-monospace, Menlo, monospace; font-size: 13px; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
