:root {
  --auth-bg: #0f172a;
  --card-bg: #0b1223;
  --accent: #67e8f9;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 10% 20%, rgba(103, 232, 249, 0.08), transparent 20%),
    radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.12), transparent 22%),
    linear-gradient(180deg, #0b1223 0%, #060a16 100%);
  color: #e2e8f0;
}

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

.auth-card {
  width: min(960px, 100%);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)), var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  overflow: hidden;
}

.auth-card__promo {
  padding: 32px;
  border-right: 1px solid var(--border);
  background: radial-gradient(circle at 30% 20%, rgba(103, 232, 249, 0.08), transparent 36%),
    radial-gradient(circle at 80% 80%, rgba(94, 234, 212, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.01);
}

.auth-card__form {
  padding: 32px;
  background: rgba(255, 255, 255, 0.01);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.12);
  color: #67e8f9;
  font-weight: 600;
  font-size: 13px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #cbd5e1;
  font-size: 12px;
  margin-bottom: 12px;
}

.auth-title {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.2;
}

.auth-subtitle {
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.5;
}

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

.pill {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid var(--border);
}

.toggle {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.toggle button {
  border: none;
  background: transparent;
  color: #cbd5e1;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 120ms ease;
  font-weight: 600;
}

.toggle button.is-active {
  background: linear-gradient(135deg, #22d3ee, #38bdf8);
  color: #0b1223;
  box-shadow: 0 6px 18px rgba(34, 211, 238, 0.35);
}

form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#signupFields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #cbd5e1;
  font-size: 14px;
}

input {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 15px;
}

input:focus {
  outline: 2px solid rgba(103, 232, 249, 0.45);
  border-color: rgba(103, 232, 249, 0.45);
}

.btn-primary {
  margin-top: 4px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #22d3ee, #38bdf8);
  color: #0b1223;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.35);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.helper-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.alert {
  margin-top: 4px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.1);
  color: #fecdd3;
  font-weight: 600;
}

.success {
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.1);
  color: #bbf7d0;
}

.success strong {
  color: #22c55e;
}

.secure-notes {
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
}

.secure-notes ul {
  margin: 8px 0 0 16px;
  padding: 0;
  color: var(--muted);
}

.secure-notes li {
  margin-bottom: 6px;
}

@media (max-width: 720px) {
  .auth-card__promo {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
}
