/* Minimal, theme-aware styling for the passkey gate pages. External stylesheet
   (not inline) to satisfy the strict CSP (style-src 'self'). */
:root {
  color-scheme: light dark;
  --gate-bg: #f5f6f8;
  --gate-fg: #101820;
  --gate-muted: #55606b;
  --gate-accent: #b4522f;
  --gate-accent-fg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --gate-bg: #121417;
    --gate-fg: #eef1f4;
    --gate-muted: #9aa4ae;
    --gate-accent: #c9663f;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gate-bg);
  color: var(--gate-fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.gate {
  width: min(24rem, 92vw);
  padding: 2rem;
  text-align: center;
}

.gate h1 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
}

.gate p {
  margin: 0 0 1.5rem;
  color: var(--gate-muted);
  line-height: 1.5;
}

.gate button {
  font-size: 1.05rem;
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 0.6rem;
  background: var(--gate-accent);
  color: var(--gate-accent-fg);
  cursor: pointer;
}

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

#gate-msg {
  margin-top: 1.25rem;
  min-height: 1.25rem;
  font-size: 0.95rem;
}
