/* Self-contained styles: no external font, no external stylesheet, nothing to
   fetch from a third party. The Content-Security-Policy in _headers depends
   on it. */

:root {
  --primary: #467fcf;
  --primary-dark: #3969af;
  --background: #f5f7fb;
  --surface: #ffffff;
  --text: #232c3a;
  --text-muted: #6b7a90;
  --border: #e3e8f0;
  --danger: #cd201f;
  --shadow: 0 1px 2px rgba(35, 44, 58, 0.08), 0 8px 24px rgba(35, 44, 58, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #6a9bea;
    --primary-dark: #5486d6;
    --background: #111827;
    --surface: #1b2331;
    --text: #e6ebf4;
    --text-muted: #9aa8bd;
    --border: #2b3546;
    --danger: #f47a79;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 480px;
  padding: 32px;
  text-align: center;
  width: 100%;
}

.card-wide {
  max-width: 680px;
  text-align: left;
}

.logo {
  border-radius: 12px;
  display: block;
  height: 56px;
  margin: 0 0 20px;
  width: 56px;
}

.card:not(.card-wide) .logo {
  margin-left: auto;
  margin-right: auto;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 12px;
}

h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 28px 0 8px;
}

p {
  margin: 0 0 16px;
}

.lead {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.label {
  color: var(--text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.target {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 0.95rem;
  margin: 0 0 24px;
  overflow-wrap: anywhere;
  padding: 12px 14px;
}

.button {
  background: var(--primary);
  border-radius: 8px;
  color: #ffffff;
  display: block;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 20px;
  text-decoration: none;
  transition: background-color 0.15s ease-in-out;
}

.button:hover,
.button:focus {
  background: var(--primary-dark);
}

.button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.error-detail {
  color: var(--danger);
  overflow-wrap: anywhere;
}

.muted {
  color: var(--text-muted);
}

.privacy {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 28px 0 0;
  padding-top: 20px;
}

.links {
  margin: 0;
  padding-left: 20px;
}

.links li {
  margin-bottom: 6px;
}

a {
  color: var(--primary);
}

section:last-of-type p:last-child {
  margin-bottom: 0;
}
