/* ─── Auth shell — shared by all 3 screens ─── */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Nunito Sans', system-ui, sans-serif;
  background: var(--ach-page, #f7faf9);
  color: var(--brand-navy-dark);
  -webkit-font-smoothing: antialiased;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

/* ── Form pane (now full-width, centered) ── */
.auth-form-pane {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 56px;
  background: #fff;
  position: relative;
}

.auth-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: auto;
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.auth-topbar__brand img { height: 48px; display: block; }
.auth-topbar__login {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  color: var(--brand-navy-dark, #003558);
}
.auth-topbar__login a {
  color: var(--brand-coral);
  font-weight: 700;
  text-decoration: none;
  margin-left: 6px;
}
.auth-topbar__login a:hover { text-decoration: underline; }

.auth-form-wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-teal, #007a6c);
  margin-bottom: 14px;
  display: block;
}

.auth-h1 {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--brand-navy-dark, #003558);
  margin: 0 0 14px;
  text-wrap: balance;
}
.auth-h1 .accent {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.auth-h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 10px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'><path d='M2 6 Q 15 1, 30 6 T 60 6 T 98 6' stroke='%23ffa8a6' stroke-width='2.5' fill='none' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
}

.auth-lead {
  font-size: 16px;
  color: var(--fg-2, #4a657d);
  line-height: 1.55;
  margin: 0 0 32px;
}

/* ── Form fields ── */
.auth-form { display: flex; flex-direction: column; gap: 16px; }
.auth-row { display: grid; gap: 16px; }
.auth-row--2 { grid-template-columns: 1fr 1fr; }

.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-navy-dark);
  font-family: 'Manrope', sans-serif;
}
.auth-field input,
.auth-field select {
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid #dde5ec;
  background: #fff;
  font-size: 15px;
  font-family: 'Nunito Sans', sans-serif;
  color: var(--brand-navy-dark);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.auth-field input::placeholder { color: #9aa9b8; }
.auth-field input:focus,
.auth-field select:focus {
  outline: none;
  border-color: var(--brand-coral, #ffa8a6);
  box-shadow: 0 0 0 4px rgba(255, 168, 166, 0.18);
}
.auth-field--with-icon { position: relative; }
.auth-field--with-icon input { padding-left: 42px; }
.auth-field__icon {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: 18px; height: 18px;
  color: #9aa9b8;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-field__icon svg { width: 18px; height: 18px; display: block; }

.auth-field__toggle {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: #6b7e8e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 0;
  transition: color 120ms ease, background 120ms ease;
}
.auth-field__toggle:hover { color: var(--brand-navy-dark); background: #f1f5f8; }
.auth-field__toggle svg { width: 18px; height: 18px; }

.auth-input-wrap { position: relative; width: 100%; }
.auth-input-wrap input { width: 100%; }
.auth-field__hint {
  font-size: 12px;
  color: var(--fg-3, #6b7e8e);
  margin-top: 2px;
}

/* Password strength */
.auth-strength {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}
.auth-strength__bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #e4ebf1;
}
.auth-strength__bar.is-on-1 { background: #ef9a9a; }
.auth-strength__bar.is-on-2 { background: var(--brand-peach); }
.auth-strength__bar.is-on-3 { background: var(--brand-mint, #4aa975); }

/* ── Buttons ── */
.auth-btn {
  height: 50px;
  border: none;
  border-radius: 12px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform 120ms ease, box-shadow 150ms ease, background 150ms ease;
  text-decoration: none;
}
.auth-btn--primary {
  background: var(--brand-navy, #004a79);
  color: #fff;
  box-shadow: 0 6px 16px rgba(0, 74, 121, 0.18);
}
.auth-btn--primary:hover { background: var(--brand-navy-dark, #003558); transform: translateY(-1px); }
.auth-btn--google {
  background: #fff;
  color: var(--brand-navy-dark);
  border: 1.5px solid #dde5ec;
}
.auth-btn--google:hover { border-color: #b8c6d2; }
.auth-btn--google svg { width: 20px; height: 20px; }

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0;
  color: #9aa9b8;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e4ebf1;
}

/* Terms */
.auth-terms {
  font-size: 12px;
  color: var(--fg-3, #6b7e8e);
  text-align: center;
  margin-top: 8px;
  line-height: 1.5;
}
.auth-terms a {
  color: var(--brand-navy);
  font-weight: 600;
  text-decoration: none;
}
.auth-terms a:hover { text-decoration: underline; }

.auth-footer {
  margin-top: auto;
  padding-top: 24px;
  font-size: 12px;
  color: var(--fg-3, #6b7e8e);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}
.auth-footer a { color: inherit; text-decoration: none; }
.auth-footer a:hover { color: var(--brand-navy); }

/* ── Right column: branded visual ── */
.auth-visual-pane {
  position: relative;
  background:
    radial-gradient(circle at 20% 25%, rgba(255, 198, 145, 0.45), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(255, 168, 166, 0.55), transparent 55%),
    linear-gradient(160deg, #fff3e6 0%, #ffe6c9 40%, #ffc6c0 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px;
}
.auth-visual__mark {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  opacity: 0.85;
}
.auth-visual__mark img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(0, 74, 121, 0.18));
}
.auth-visual__quote {
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 14px 32px rgba(0, 74, 121, 0.12);
  border: 1.5px solid rgba(255,255,255,0.9);
  position: relative;
  z-index: 2;
}
.auth-visual__quote-text {
  font-family: 'Manrope', sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--brand-navy-dark);
  margin: 0 0 18px;
}
.auth-visual__quote-author {
  display: flex;
  gap: 12px;
  align-items: center;
}
.auth-visual__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--brand-peach), var(--brand-coral));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
}
.auth-visual__author-name { font-weight: 700; color: var(--brand-navy-dark); font-size: 14px; }
.auth-visual__author-role { font-size: 12px; color: var(--fg-2, #4a657d); }

/* Floating product cards on visual pane */
.auth-visual__card {
  position: absolute;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 74, 121, 0.16);
  border: 1.5px solid rgba(255,255,255,0.9);
  padding: 16px 18px;
  font-family: 'Nunito Sans', sans-serif;
}
.auth-visual__card--xp {
  top: -40px;
  right: -20px;
  width: 200px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.auth-visual__card-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(160deg, #fff3e6, #ffd9c8);
  padding: 6px;
}
.auth-visual__card-icon img { width: 100%; height: 100%; object-fit: contain; }
.auth-visual__card-big {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: var(--brand-navy-dark);
  line-height: 1;
  margin-bottom: 2px;
}
.auth-visual__card-sub { font-size: 11px; color: var(--fg-2, #4a657d); line-height: 1.3; }

.auth-visual__card--quiz {
  bottom: -40px;
  left: -30px;
  width: 260px;
}
.auth-visual__card-head {
  display: flex; gap: 10px; align-items: center; margin-bottom: 10px;
}
.auth-visual__card-eyebrow {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-teal, #007a6c);
}
.auth-visual__card-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--brand-navy-dark);
}
.auth-visual__progress {
  height: 6px;
  background: #e7f1ec;
  border-radius: 3px;
  overflow: hidden;
}
.auth-visual__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-mint, #4aa975), var(--brand-teal, #007a6c));
}
.auth-visual__card-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: var(--fg-2, #4a657d);
}
.auth-visual__pill {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 10px;
  background: rgba(74, 169, 117, 0.15);
  color: var(--brand-mint, #4aa975);
  padding: 3px 8px;
  border-radius: 999px;
}

/* Decorative blob/squiggle behind quote */
.auth-visual__blob {
  position: absolute;
  inset: -20px;
  z-index: 1;
  opacity: 0.5;
}

/* ─── Confirmation screens (revisa correo + email confirmado) ─── */
.auth-confirm {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.auth-confirm__icon {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--brand-peach-light, #fff3e6), var(--brand-coral-light, #ffefee));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  position: relative;
}
.auth-confirm__icon svg {
  width: 44px;
  height: 44px;
  color: var(--brand-coral, #ffa8a6);
}
.auth-confirm__icon--success {
  background: linear-gradient(160deg, #e6f5ec, #cdebd9);
}
.auth-confirm__icon--success svg {
  color: var(--brand-mint, #4aa975);
}
.auth-confirm__icon::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 168, 166, 0.4);
  animation: auth-spin 22s linear infinite;
}
.auth-confirm__icon--success::after {
  border-color: rgba(74, 169, 117, 0.35);
}
@keyframes auth-spin { to { transform: rotate(360deg); } }

.auth-confirm__email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-navy-light, #daeaf7);
  color: var(--brand-navy-dark);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
}
.auth-confirm__list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}
.auth-confirm__list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--fg-2, #4a657d);
  line-height: 1.45;
}
.auth-confirm__list-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-coral-light, #ffefee);
  color: var(--brand-coral, #ffa8a6);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.auth-resend {
  font-size: 13px;
  color: var(--fg-2, #4a657d);
}
.auth-resend a, .auth-resend button {
  background: none;
  border: none;
  color: var(--brand-coral, #ffa8a6);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
}
.auth-resend a:hover, .auth-resend button:hover { text-decoration: underline; }

/* Onboarding step preview (post-confirm) */
.auth-onboard-preview {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.auth-onboard-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid #e4ebf1;
  background: #fff;
  text-align: left;
  transition: border-color 150ms ease, transform 120ms ease;
}
.auth-onboard-step:hover {
  border-color: var(--brand-coral, #ffa8a6);
  transform: translateX(2px);
}
.auth-onboard-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--brand-navy-light, #daeaf7);
  color: var(--brand-navy, #004a79);
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-onboard-title {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-navy-dark);
  margin-bottom: 2px;
}
.auth-onboard-sub {
  font-size: 12px;
  color: var(--fg-2, #4a657d);
}

/* Confetti / celebration on success */
.auth-celebrate {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.auth-celebrate span {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 2px;
  opacity: 0;
  animation: auth-fall 3s ease-in forwards;
}
@keyframes auth-fall {
  0% { transform: translateY(-40px) rotate(0); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translateY(120vh) rotate(720deg); opacity: 0; }
}

/* Responsive */
@media (max-width: 980px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual-pane {
    order: -1;
    min-height: 200px;
    padding: 32px;
  }
  .auth-visual__card--xp { display: none; }
  .auth-visual__card--quiz { display: none; }
  .auth-form-pane { padding: 24px; }
  .auth-form-wrap { padding: 16px 0; max-width: 100%; }
}
@media (max-width: 560px) {
  .auth-h1 { font-size: 28px; }
  .auth-row--2 { grid-template-columns: 1fr; }
  .auth-form-pane { padding: 20px; }
}
