.auth-page {
  display: grid;
  place-items: start center;
  padding: clamp(24px, 7vh, 72px) 0;
}

.auth-shell {
  width: min(480px, 100%);
  display: grid;
  gap: 20px;
  padding: clamp(24px, 5vw, 36px);
  background:
    radial-gradient(420px 200px at 0 0, rgba(79, 70, 229, 0.18), transparent 65%),
    rgba(7, 11, 20, 0.94);
}

.auth-heading {
  display: grid;
  gap: 8px;
}

.auth-heading h1,
.auth-center h1 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
}

.auth-heading p,
.auth-center p {
  margin: 0;
  color: rgba(203, 213, 225, 0.84);
  line-height: 1.6;
}

.auth-eyebrow {
  color: #a5b4fc;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-fields,
.auth-field {
  display: grid;
  gap: 12px;
}

.auth-field {
  gap: 7px;
  color: #e2e8f0;
  font-size: 0.86rem;
  font-weight: 700;
}

.auth-field small {
  color: #94a3b8;
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.45;
}

.auth-field .input-field {
  min-height: 46px;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #cbd5e1;
  font-size: 0.85rem;
  cursor: pointer;
}

.auth-check input {
  width: 16px;
  height: 16px;
  accent-color: #6366f1;
}

.auth-primary {
  width: 100%;
  justify-content: center;
  min-height: 46px;
  border-radius: 12px;
  background: linear-gradient(90deg, #4f46e5, #2563eb);
  text-decoration: none;
}

.auth-primary:hover {
  background: linear-gradient(90deg, #4338ca, #1d4ed8);
}

.auth-primary:disabled {
  cursor: wait;
  opacity: 0.7;
}

.site-link-logout {
  font-family: inherit;
  cursor: pointer;
}

.auth-status {
  margin: 0;
  text-align: center;
}

.auth-success {
  padding: 12px;
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  color: #a7f3d0;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #94a3b8;
  font-size: 0.86rem;
}

.auth-links a {
  color: #a5b4fc;
}

.auth-links-centered {
  justify-content: center;
  text-align: center;
}

.auth-center {
  justify-items: center;
  text-align: center;
}

.profile-details {
  display: grid;
  gap: 0;
  margin: 0;
}

.profile-details > div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-details > div:last-child {
  border-bottom: 0;
}

.profile-details dt {
  color: #94a3b8;
}

.profile-details dd {
  margin: 0;
  color: #e2e8f0;
  overflow-wrap: anywhere;
}

.tier-badge {
  display: inline-flex;
  padding: 4px 9px;
  border: 1px solid rgba(129, 140, 248, 0.35);
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: #c7d2fe;
  font-size: 0.78rem;
  font-weight: 750;
}

@media (max-width: 520px) {
  .auth-links {
    justify-content: center;
    text-align: center;
  }

  .profile-details > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
