:root {
  color-scheme: light;
  --page: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f0f2f5;
  --ink: #0b0e14;
  --ink-2: #3c4451;
  --ink-muted: #5b6472;
  --line: #e3e6eb;
  --accent: #6001d2;
  --accent-soft: rgba(96, 1, 210, 0.08);
  --gold: #8a6a1f;
  --down: #cc2b2b;
  --shadow: 0 1px 2px rgba(11, 14, 20, 0.06), 0 8px 24px rgba(11, 14, 20, 0.10);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-plate: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d1117;
    --surface: #161b22;
    --surface-2: #1c232c;
    --ink: #e8edf3;
    --ink-2: #b3bdc9;
    --ink-muted: #8b949e;
    --line: #2a323c;
    --accent: #a78bfa;
    --accent-soft: rgba(167, 139, 250, 0.14);
    --gold: #e3bd4d;
    --down: #e0453f;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d1117;
  --surface: #161b22;
  --surface-2: #1c232c;
  --ink: #e8edf3;
  --ink-2: #b3bdc9;
  --ink-muted: #8b949e;
  --line: #2a323c;
  --accent: #a78bfa;
  --accent-soft: rgba(167, 139, 250, 0.14);
  --gold: #e3bd4d;
  --down: #e0453f;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.45);
}

body {
  background-color: var(--page);
  color: var(--ink);
  font-family: var(--font-ui);
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 32px 30px;
  width: 100%;
  max-width: 370px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}

h1 {
  font-family: var(--font-plate);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  margin: 0 0 22px;
}

.sso {
  display: block;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-ui);
  text-decoration: none;
  transition: background-color 150ms var(--ease);
}

.sso:hover {
  background-color: var(--accent-soft);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    transition-delay: 0.001ms !important;
  }
}
