:root {
  color-scheme: light dark;
  --bg: #0f1419;
  --surface: #1a222c;
  --text: #f3f5f7;
  --muted: #9aa5b1;
  --accent: #6b9cff;
  --accent-hover: #8ab2ff;
  --danger: #f87171;
  --border: #2d3744;
  --radius: 12px;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

main {
  max-width: 28rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.logo {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 2rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

h1 {
  font-size: 1.375rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.lead {
  color: var(--muted);
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
}

.cohort-pill {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: rgba(107, 156, 255, 0.15);
  color: var(--accent);
  margin-bottom: 1rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.375rem;
}

input[type="email"] {
  width: 100%;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.hint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

button.primary {
  background: var(--accent);
  color: #0f1419;
}

button.primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.store-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.button-link.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.button-link.secondary:hover {
  border-color: var(--muted);
}

.error {
  color: var(--danger);
  font-size: 0.9375rem;
  margin: 0;
}

.hidden {
  display: none !important;
}

.spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

footer {
  margin-top: 2rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}
