:root {
  --auth-bg: #020617;
  --auth-surface: #0f172a;
  --auth-surface-raised: #1e293b;
  --auth-border: #334155;
  --auth-text: #f8fafc;
  --auth-text-dim: #94a3b8;
  --auth-accent: #818cf8;
  --auth-danger: #ef4444;
  --auth-success: #22c55e;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--auth-bg);
  color: var(--auth-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.auth-card {
  width: min(100%, 460px);
  border: 1px solid var(--auth-border);
  border-radius: 12px;
  background: var(--auth-surface);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  padding: 28px;
  text-align: center;
}

.auth-brand,
.auth-detail {
  color: var(--auth-text-dim);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.auth-brand {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 22px auto 14px;
  border: 1px solid var(--auth-accent);
  border-radius: 50%;
  color: var(--auth-accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 700;
  place-items: center;
}

.auth-card--access-denied .auth-icon,
.auth-card--forbidden .auth-icon,
.auth-card--invalid .auth-icon,
.auth-card--cancelled .auth-icon {
  border-color: var(--auth-danger);
  color: var(--auth-danger);
}

.auth-card--logged-out .auth-icon {
  border-color: var(--auth-success);
  color: var(--auth-success);
}

h1 {
  margin: 0;
  font-size: clamp(24px, 7vw, 32px);
  line-height: 1.2;
}

.auth-message {
  margin: 16px 0 24px;
  color: var(--auth-text-dim);
}

.auth-actions {
  display: grid;
  gap: 10px;
}

.auth-actions a {
  display: block;
  border: 1px solid var(--auth-accent);
  border-radius: 7px;
  background: var(--auth-accent);
  color: var(--auth-bg);
  font-weight: 700;
  padding: 10px 14px;
  text-decoration: none;
}

.auth-actions a + a {
  border-color: var(--auth-border);
  background: var(--auth-surface-raised);
  color: var(--auth-text);
}

.auth-actions a:hover,
.auth-actions a:focus-visible {
  border-color: var(--auth-accent);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.18);
  outline: none;
}

.auth-actions a[aria-disabled="true"] {
  border-color: var(--auth-border);
  background: var(--auth-surface-raised);
  color: var(--auth-text-dim);
  cursor: not-allowed;
  pointer-events: none;
}

.auth-detail {
  min-height: 20px;
  margin: 18px 0 0;
}

@media (max-width: 520px) {
  .auth-shell {
    padding: 14px;
  }

  .auth-card {
    padding: 22px 18px;
  }
}
