/* === Auth pages (login / registro / recuperar) === */

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  background: var(--cream-50);
}

.auth-side {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-600) 45%, oklch(0.5 0.22 295) 100%);
  color: #fff;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-side::before {
  content: '';
  position: absolute;
  top: -30%; right: -30%;
  width: 90%; height: 160%;
  background: radial-gradient(circle, rgba(255,255,255,0.10) 0%, transparent 55%);
  pointer-events: none;
}
.auth-side::after {
  content: '';
  position: absolute;
  bottom: -20%; left: -10%;
  width: 70%; height: 60%;
  background: radial-gradient(circle, rgba(139,126,255,0.25) 0%, transparent 60%);
  pointer-events: none;
}
.auth-side__brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px;
  color: #fff;
  position: relative; z-index: 2;
}
.auth-side__content {
  position: relative; z-index: 2;
  max-width: 460px;
}
.auth-side__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}
.auth-side__eyebrow-dot {
  width: 8px; height: 8px;
  background: oklch(0.8 0.18 145);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}
.auth-side__headline {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 16px;
}
.auth-side__headline em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: oklch(0.85 0.14 70);
}
.auth-side__sub {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,0.8);
  margin: 0 0 32px;
}
.auth-side__bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.auth-side__bullet {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: rgba(255,255,255,0.92);
}
.auth-side__bullet-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Floating proof card bottom-left */
.auth-side__proof {
  position: relative; z-index: 2;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 380px;
}
.auth-side__proof-avatars {
  display: flex;
}
.auth-side__proof-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--brand-600);
  margin-left: -8px;
  background: linear-gradient(135deg, var(--warm-coral), var(--warm-amber));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 700;
}
.auth-side__proof-avatar:first-child { margin-left: 0; }
.auth-side__proof-text { font-size: 13px; line-height: 1.4; }
.auth-side__proof-text strong { display: block; color: #fff; font-weight: 700; }
.auth-side__proof-text span { color: rgba(255,255,255,0.7); }

/* Right side — form */
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
  position: relative;
}
.auth-form-side__back {
  position: absolute;
  top: 32px; left: 48px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-500);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: all 0.2s;
}
.auth-form-side__back:hover { color: var(--ink-900); background: var(--cream-100); }

.auth-form {
  width: 100%;
  max-width: 440px;
}
.auth-form__title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 10px;
  color: var(--ink-900);
}
.auth-form__title em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--brand-600); }
.auth-form__sub {
  font-size: 15px;
  color: var(--ink-500);
  margin: 0 0 32px;
}

/* Segmented switch (login / register) */
.auth-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--cream-100);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 28px;
  position: relative;
}
.auth-seg__btn {
  padding: 11px 18px;
  background: transparent;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-500);
  border-radius: var(--radius-pill);
  z-index: 1;
  transition: color 0.2s;
}
.auth-seg__btn--active { color: #fff; }
.auth-seg__indicator {
  position: absolute;
  top: 4px; bottom: 4px;
  width: calc(50% - 4px);
  background: var(--brand-600);
  border-radius: var(--radius-pill);
  transition: left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 4px 12px rgba(79,61,245,0.3);
}

/* Social buttons */
.auth-social {
  padding: 13px 18px;
  background: #fff;
  border: 1.5px solid var(--cream-200);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-900);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.2s;
  cursor: pointer;
}
.auth-social:hover:not(:disabled) {
  border-color: #4285F4;
  background: #f8faff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(66,133,244,.12);
}
.auth-social:disabled { cursor: not-allowed; }
.auth-social svg { flex-shrink: 0; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 12px;
  color: var(--ink-300);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--cream-200);
}

/* Field with icon */
.auth-field {
  margin-bottom: 14px;
}
.auth-field__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 6px;
}
.auth-field__label a { color: var(--brand-600); font-size: 12px; font-weight: 600; }
.auth-field__label a:hover { color: var(--brand-700); }
.auth-input-wrap {
  display: flex;
  align-items: center;
  background: var(--cream-50);
  border: 1.5px solid var(--cream-200);
  border-radius: var(--radius-md);
  padding: 0 14px;
  transition: all 0.2s;
}
.auth-input-wrap:focus-within {
  border-color: var(--brand-600);
  background: #fff;
  box-shadow: 0 0 0 4px var(--brand-50);
}
.auth-input-wrap svg { color: var(--ink-300); flex-shrink: 0; }
.auth-input-wrap:focus-within svg { color: var(--brand-600); }
.auth-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 14px 12px;
  font-size: 15px;
  color: var(--ink-900);
  outline: none;
  font-weight: 500;
}
.auth-input::placeholder { color: var(--ink-300); font-weight: 400; }
.auth-input-toggle {
  background: transparent;
  color: var(--ink-500);
  padding: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.auth-input-toggle:hover { color: var(--brand-600); }

/* Password strength */
.auth-strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 8px;
}
.auth-strength__bar {
  height: 4px;
  background: var(--cream-200);
  border-radius: 2px;
  transition: background 0.25s;
}
.auth-strength__bar.is-1 { background: oklch(0.7 0.2 25); }
.auth-strength__bar.is-2 { background: oklch(0.75 0.18 55); }
.auth-strength__bar.is-3 { background: oklch(0.78 0.15 90); }
.auth-strength__bar.is-4 { background: oklch(0.7 0.15 145); }
.auth-strength__label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-500);
  margin-top: 6px;
  font-weight: 500;
}

/* Check rules list */
.auth-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--cream-50);
  border-radius: var(--radius-md);
}
.auth-rule {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: var(--ink-500);
  transition: color 0.2s;
}
.auth-rule__dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--cream-200);
  color: transparent;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.auth-rule--ok { color: oklch(0.4 0.12 145); }
.auth-rule--ok .auth-rule__dot {
  background: oklch(0.72 0.15 145);
  color: #fff;
}

/* Remember + submit */
.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 22px;
}
.auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-700);
  cursor: pointer;
  user-select: none;
}
.auth-check__box {
  width: 18px; height: 18px;
  border: 1.5px solid var(--cream-200);
  border-radius: 5px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  color: transparent;
  transition: all 0.2s;
}
.auth-check input { display: none; }
.auth-check input:checked + .auth-check__box {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
}

.auth-submit {
  width: 100%;
  padding: 15px;
  background: var(--brand-600);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-brand);
  transition: all 0.2s;
}
.auth-submit:hover {
  background: var(--brand-700);
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(79,61,245,0.35);
}

.auth-terms {
  font-size: 12px;
  color: var(--ink-500);
  line-height: 1.5;
  margin-top: 18px;
  text-align: center;
}
.auth-terms a { color: var(--brand-600); font-weight: 600; }

.auth-swap {
  font-size: 14px;
  color: var(--ink-500);
  text-align: center;
  margin-top: 24px;
}
.auth-swap a { color: var(--brand-600); font-weight: 700; }

/* OTP (verify) — 6 digit boxes */
.auth-otp {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 24px 0 8px;
}
.auth-otp__box {
  width: 56px; height: 64px;
  border: 1.5px solid var(--cream-200);
  border-radius: var(--radius-md);
  background: var(--cream-50);
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink-900);
  outline: none;
  transition: all 0.2s;
}
.auth-otp__box:focus,
.auth-otp__box--filled {
  border-color: var(--brand-600);
  background: #fff;
}
.auth-otp__box--filled { box-shadow: 0 4px 12px rgba(79,61,245,0.12); }

/* Responsive */
@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { padding: 32px 24px; min-height: 280px; }
  .auth-side__headline { font-size: 32px; }
  .auth-side__sub { font-size: 15px; margin-bottom: 20px; }
  .auth-side__bullets { display: none; }
  .auth-side__proof { display: none; }
  .auth-form-side { padding: 40px 24px; }
  .auth-form-side__back { top: 16px; left: 16px; }
  .auth-form__title { font-size: 28px; }
  /* .auth-socials — single Google button, no grid needed */
  .auth-otp__box { width: 44px; height: 54px; font-size: 20px; }
}

@media (max-width: 520px) {
  .sm-grid-2 { grid-template-columns: 1fr !important; }
  .auth-form { padding: 0 4px; }
  .auth-form__title { font-size: 24px; }
  .auth-form-side { padding: 32px 16px; }
  .auth-side { padding: 24px 16px; min-height: 200px; }
}
