:root {
  color-scheme: light dark;
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1f2330;
  --muted: #6e7485;
  --accent: #3f6df0;
  --accent-soft: rgba(63, 109, 240, 0.08);
  --border: rgba(31, 35, 48, 0.08);
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
  --danger: #ef4444;
  --success: #22c55e;
}

* {
  box-sizing: border-box;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

body {
  margin: 0;
  padding: 2rem clamp(1rem, 4vw, 4rem) 4rem;
  background: var(--bg);
  color: var(--text);
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.4rem;
}

h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
}

.subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.5;
}

.pill {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(63, 109, 240, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pill.secondary {
  background: rgba(31, 35, 48, 0.08);
  color: var(--text);
  box-shadow: none;
}

.pill:active {
  transform: translateY(1px);
  box-shadow: 0 8px 18px rgba(63, 109, 240, 0.2);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

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

.card h2 {
  margin-top: 0;
}

.auth-card {
  max-width: 520px;
  margin-bottom: 2rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
}

.form-grid input {
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  padding: 0.75rem;
  font-size: 1rem;
}

.helper {
  color: var(--muted);
  margin: 0;
}

.helper[data-state="error"] {
  color: var(--danger);
}

.helper[data-state="success"] {
  color: var(--success);
}

.simple-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.simple-list li {
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: var(--accent-soft);
  font-weight: 500;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tag {
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  background: rgba(31, 35, 48, 0.08);
  font-size: 0.9rem;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.4rem 0;
}

.status-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.online {
  background: #22c55e;
}

.status-dot.offline {
  background: #f59e0b;
}

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

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --card: #111a2c;
    --text: #f8fafc;
    --muted: #cbd5f5;
    --accent-soft: rgba(63, 109, 240, 0.16);
    --border: rgba(255, 255, 255, 0.08);
    --shadow: none;
  }

  .pill.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
  }

  .tag {
    background: rgba(255, 255, 255, 0.08);
  }
}
