:root {
  color-scheme: dark;
  --bg: #0b1020;
  --panel: #121a30;
  --panel-2: #0f1730;
  --border: #273252;
  --text: #e7ecff;
  --muted: #9aa6cf;
  --accent: #7c9cff;
  --accent-2: #9d7cff;
  --success: #38d39f;
  --danger: #ff7c8c;
  --warning: #ffca6a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #18213f 0%, var(--bg) 45%);
  color: var(--text);
}

.container {
  width: min(1080px, calc(100% - 32px));
  margin: 40px auto;
}

.hero {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0;
  font-size: 2rem;
}

.hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.22);
}

.card h2,
.card h3 {
  margin-top: 0;
}

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

.pill-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill,
button {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--text);
  padding: 10px 14px;
  font: inherit;
}

button {
  cursor: pointer;
}

button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
}

button.warn {
  background: rgba(255, 124, 140, 0.15);
  border-color: rgba(255, 124, 140, 0.35);
}

button.ghost {
  background: transparent;
}

pre {
  margin: 0;
  padding: 14px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
}

code.inline {
  background: rgba(255,255,255,0.08);
  padding: 2px 8px;
  border-radius: 999px;
}

.list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

#auth-root,
#user-button-root {
  min-height: 64px;
}

.notice {
  border-left: 4px solid var(--warning);
  padding-left: 12px;
}

.success {
  color: var(--success);
}

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

@media (max-width: 840px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
