:root {
  color-scheme: light dark;
  --accent: #6c4cff;
  --danger: #d93025;
  --text: #1d1d1f;
  --muted: #5f6368;
  --background: #ffffff;
  --panel: #f5f5f7;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --background: #111114;
    --panel: #1d1d22;
  }
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

main {
  max-width: 36rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

h1 {
  font-size: 1.6rem;
}

h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
}

.notice {
  background: var(--panel);
  border-left: 4px solid var(--accent);
  padding: 0.75rem 1rem;
  border-radius: 6px;
}

.provider {
  margin: 0.75rem 0;
}

button {
  font: inherit;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  border: 1px solid var(--muted);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

#apple-sign-in {
  background: #000;
  color: #fff;
  border-color: #000;
}

button.danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #fff;
}

#error {
  color: var(--danger);
}
