:root {
  --bg: #f4f5f7;
  --bg-accent: #e3e8f4;
  --card: #ffffff;
  --text: #16181d;
  --muted: #5b6270;
  --border: #e2e5ea;
  --primary: #3b5bdb;
  --primary-hover: #2f4ac0;
  --on-primary: #ffffff;
  --shadow: 0 1px 2px rgb(16 24 40 / 6%), 0 12px 32px rgb(16 24 40 / 8%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-accent: #18203a;
    --card: #171a21;
    --text: #eceef2;
    --muted: #9aa2b1;
    --border: #262a33;
    --primary: #5c7cfa;
    --primary-hover: #748ffc;
    --on-primary: #0b0d12;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 12px 32px rgb(0 0 0 / 35%);
  }
}

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

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px 16px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -10%, var(--bg-accent), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

.logo {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  border-radius: 16px;
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, transparent);
}

h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--on-primary);
  text-decoration: none;
  background: var(--primary);
  border-radius: 10px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.button:hover { background: var(--primary-hover); }
.button:active { transform: translateY(1px); }
.button:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 3px; }
.button svg { transition: transform 0.15s ease; }
.button:hover svg { transform: translateX(2px); }

footer {
  font-size: 0.85rem;
  color: var(--muted);
}

@media (prefers-reduced-motion: reduce) {
  .button, .button svg { transition: none; }
}
