.auth-page {
  min-height: calc(100vh - 260px);
}

.auth-success-box {
  position: relative;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.28);
}

.auth-success-shell {
  max-width: 980px;
}

.auth-success-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top center, rgba(99, 102, 241, 0.2), transparent 34%),
    linear-gradient(180deg, rgba(99, 102, 241, 0.08), transparent 44%);
  pointer-events: none;
}

.auth-success-hero,
.auth-success-layout,
.auth-actions,
.auth-header {
  position: relative;
  z-index: 1;
}

.auth-success-layout {
  display: grid;
  gap: 2.5rem;
}

.auth-success-main,
.auth-success-side {
  min-width: 0;
}

.auth-success-hero {
  display: flex;
  justify-content: center;
  margin: -0.35rem 0 1.15rem;
}

.auth-success-orb {
  position: absolute;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.32), transparent 68%);
  filter: blur(2px);
}

.auth-success-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border: 1px solid rgba(129, 140, 248, 0.38);
  border-radius: 1.2rem;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.2), rgba(15, 23, 42, 0.3));
  box-shadow: 0 16px 34px rgba(79, 70, 229, 0.22);
  color: #e0e7ff;
  font-size: 1.7rem;
}

.auth-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid rgba(129, 140, 248, 0.32);
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: #c7d2fe;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.auth-errors,
.auth-field-error,
.auth-note {
  border-radius: 0.375rem;
  font-size: 0.92rem;
}

.auth-errors,
.auth-field-error {
  border: 1px solid rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
}

.auth-errors {
  margin-bottom: 1rem;
  padding: 0.65rem 0.8rem;
}

.auth-field-error {
  margin-top: 0.55rem;
  padding: 0.65rem 0.8rem;
}

.auth-field-note {
  margin-top: 0.55rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.375rem;
  border: 1px solid rgba(99, 102, 241, 0.32);
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.auth-note {
  border: 1px solid rgba(99, 102, 241, 0.32);
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-secondary);
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
}

.auth-success-lead {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.auth-side-section {
  padding-top: 1.35rem;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.auth-side-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.auth-side-section h2 {
  margin-bottom: 1rem;
  font-size: 1rem;
}

.auth-steps-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.auth-steps-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.auth-steps-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.auth-steps-list strong {
  display: block;
  margin-bottom: 0.18rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.auth-steps-list p,
.auth-side-meta p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-step-number {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.22), rgba(79, 70, 229, 0.12));
  border: 1px solid rgba(129, 140, 248, 0.24);
  color: #e0e7ff;
  font-size: 0.88rem;
  font-weight: 700;
}

.auth-side-meta {
  display: grid;
  gap: 1rem;
}

.auth-policy-warning {
  border-top-color: rgba(248, 113, 113, 0.24);
}

.auth-policy-warning p {
  margin: 0;
  padding-left: 0.95rem;
  border-left: 2px solid rgba(248, 113, 113, 0.45);
  color: #fca5a5;
}

.auth-tip-label {
  display: inline-block;
  margin-bottom: 0.42rem;
  color: var(--text-primary);
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.auth-muted,
.auth-link {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.auth-muted {
  margin-top: 0.8rem;
  text-align: right;
}

.auth-link {
  text-align: center;
}

.auth-link-muted {
  margin: 0;
  padding-top: 0.55rem;
}

.auth-link-left {
  text-align: left;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
}

.auth-actions-inline {
  gap: 1rem;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.auth-check-start {
  align-items: flex-start;
  line-height: 1.4;
}

.auth-hidden {
  display: none;
}

.auth-social-spotlight {
  margin-bottom: 1.2rem;
  padding: 0.95rem;
  border: 1px solid rgba(99, 102, 241, 0.45);
  border-radius: 0.55rem;
  background: linear-gradient(
    140deg,
    rgba(99, 102, 241, 0.16),
    rgba(79, 70, 229, 0.08)
  );
}

.auth-social-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #c7d2fe;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.auth-divider {
  position: relative;
  margin: 1.1rem 0 1rem;
  color: var(--text-tertiary);
  font-size: 0.85rem;
  text-align: center;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--border);
  z-index: 0;
}

.auth-divider span {
  position: relative;
  z-index: 1;
  background: var(--bg-secondary);
  padding: 0 0.65rem;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.72rem 1rem;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    border-color 0.2s ease;
}

.btn-google:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.26);
}

.btn-google-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #ffffff;
  color: #1f2937;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

@media (min-width: 640px) {
  .auth-success-box {
    padding: 2.75rem;
  }

  .auth-actions-inline {
    flex-direction: row;
  }

  .auth-actions-inline .btn-block {
    width: auto;
  }
}

@media (min-width: 900px) {
  .auth-success-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: start;
  }

  .auth-success-side {
    padding-left: 2rem;
    border-left: 1px solid rgba(148, 163, 184, 0.18);
  }
}

@media (max-width: 639px) {
  .auth-success-box {
    padding: 2rem 1.2rem;
  }

  .auth-success-icon {
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.45rem;
  }

  .auth-link-left {
    text-align: center;
  }
}

/* ── Desktop improvements ────────────────────────────────── */

@media (min-width: 768px) {
  .auth-container {
    max-width: 500px;
  }
}

/* Signup two-column layout */
.auth-box--wide {
  display: flex;
  flex-direction: column;
}

.auth-box-side {
  order: -1;
  margin-bottom: 1.25rem;
}

@media (min-width: 1024px) {
  .auth-container--wide {
    max-width: 880px;
  }

  .auth-box--wide {
    flex-direction: row;
    align-items: start;
  }

  .auth-box-form {
    flex: 1;
    min-width: 0;
  }

  .auth-box-side {
    order: 0;
    margin-bottom: 0;
    width: 300px;
    flex-shrink: 0;
    padding-left: 2rem;
    border-left: 1px solid var(--border);
  }

  .auth-box-side .auth-note {
    margin-bottom: 0;
  }
}