:root {
  --bg: #0f1419;
  --surface: #171d25;
  --border: #2b3544;
  --text: #e8edf4;
  --muted: #8b98a8;
  --accent: #3dd68c;
  --font: "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(61, 214, 140, 0.12), transparent),
    var(--bg);
}

.shell {
  max-width: 640px;
  margin: 0 auto;
  padding: 36px 20px 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  margin-bottom: 28px;
}

.brand strong {
  display: block;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 12px;
  font-size: 1.7rem;
  line-height: 1.2;
}

.lede {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.5;
}

.perks {
  margin: 0 0 20px;
  padding-left: 1.1rem;
  color: var(--text);
  line-height: 1.6;
}

.limits {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 20px;
  background: rgba(0, 0, 0, 0.18);
}

.limits h2 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.limits ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.limits li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.limits .warn {
  color: #f0c674;
}

.limits .over {
  color: #f07178;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary,
.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 600;
}

.primary {
  background: var(--accent);
  color: #062016;
}

.ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

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

.footnote {
  margin: 18px 0 0;
  font-size: 0.85rem;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin: 0 0 20px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.auth-form input,
.auth-form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font: inherit;
  font-weight: 400;
}

.auth-form select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 50%,
    calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.auth-form select option {
  color: #edf7f1;
  background: #102219;
}

.auth-form input:focus,
.auth-form select:focus {
  outline: 2px solid rgba(61, 214, 140, 0.45);
  outline-offset: 1px;
}

.optional-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 400;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  background: var(--accent);
  color: #062016;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.primary-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.form-error.hidden,
#oauth-error.hidden {
  display: none;
}

.form-error,
#oauth-error {
  color: #f87171;
  font-size: 0.88rem;
  margin-top: 8px;
}

.form-success {
  color: #5ae9a6;
  font-size: 0.9rem;
  margin: 0;
}

.form-success.hidden {
  display: none;
}

.switch {
  margin: 0 0 16px;
  font-size: 0.9rem;
}

.switch a {
  color: var(--accent);
}

.oauth-section {
  margin: 0 0 16px;
}

.divider {
  text-align: center;
  margin: 0 0 10px;
  font-size: 0.85rem;
}

.oauth-btn {
  display: flex;
  width: 100%;
  justify-content: center;
}
