/* ─── Forgot / Reset Password — Estilos adicionales ──────────────────────── */
/* Complementa login-wp.css — mismo layout split-screen                      */

/* ── Sin animacion de entrada al navegar desde login ──────────────────────── */
/* formIn del login se ve como flasheo al venir de otra página auth.          */
/* Solo se conserva la animación en la transición entre pasos (confirmation). */

[data-forgot-password] .login-form-inner,
[data-reset-password] .login-form-inner {
  animation: none;
}

/* ── Micro-interacción: campo de email ─────────────────────────────────────── */

.fp-email-field {
  position: relative;
  display: flex;
  align-items: center;
}

/* Underline animado que se expande desde el centro al focus */
.fp-email-field::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #0b1220;
  border-radius: 1px;
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), left 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.fp-email-field:focus-within::after {
  width: 100%;
  left: 0;
}

.fp-email-field.is-valid::after {
  background: #38a169;
  width: 100%;
  left: 0;
}

.fp-email-field.is-error::after {
  background: #e53e3e;
  width: 100%;
  left: 0;
}

.fp-email-field__icon {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(11, 18, 32, 0.28);
  transition: color 0.25s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 1;
}

.fp-email-field__input {
  padding-left: 42px !important;
  padding-right: 42px !important;
}

/* Input: glow suave al focus */
.fp-email-field__input:focus {
  box-shadow: 0 0 0 3px rgba(11, 18, 32, 0.06), 0 2px 8px rgba(11, 18, 32, 0.04);
}

.fp-email-field.is-valid .fp-email-field__input:focus {
  box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.12), 0 2px 8px rgba(56, 161, 105, 0.06);
}

.fp-email-field.is-error .fp-email-field__input:focus {
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.12), 0 2px 8px rgba(229, 62, 62, 0.06);
}

.fp-email-field__status {
  position: absolute;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.fp-email-field__check {
  color: #38a169;
  opacity: 0;
  transform: scale(0.5) rotate(-45deg);
  transition: opacity 0.25s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Focus: icono sube y se colorea ─── */

.fp-email-field:focus-within .fp-email-field__icon {
  color: #0b1220;
  transform: translateY(-1px);
}

/* ── Valido: check aparece con spring, icono se pone verde ─── */

.fp-email-field.is-valid .fp-email-field__icon {
  color: #38a169;
  transform: translateY(-1px) scale(1.1);
}

.fp-email-field.is-valid .fp-email-field__check {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* ── Error: icono rojo + shake ─── */

.fp-email-field.is-error .fp-email-field__icon {
  color: #e53e3e;
}

.fp-email-field.is-shake {
  animation: fpShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes fpShake {
  10%, 90%  { transform: translateX(-1px); }
  20%, 80%  { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60%  { transform: translateX(3px); }
}

/* ── Typewriter: atracción al input ───────────────────────────────────────── */

/* Icono respira suavemente mientras el typewriter escribe */
.fp-email-field__icon.is-breathing {
  animation: fpBreathe 1.8s ease-in-out infinite;
}

@keyframes fpBreathe {
  0%, 100% { color: rgba(11, 18, 32, 0.28); transform: scale(1); }
  50%      { color: rgba(11, 18, 32, 0.55); transform: scale(1.12); }
}

/* Borde del input pulsa suavemente para llamar la atención */
.fp-email-field.is-attracting .fp-email-field__input {
  animation: fpPulse 2s ease-in-out infinite;
}

@keyframes fpPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(11, 18, 32, 0); }
  50%      { box-shadow: 0 0 0 4px rgba(11, 18, 32, 0.06); }
}

/* ── Confirmacion (paso 2) ────────────────────────────────────────────────── */

.fp-confirmation {
  animation: formIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fp-confirmation__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f0f4ff;
  color: #4a6cf7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  margin: 0 auto 28px;
}

.fp-confirmation__icon--success {
  background: #f0fff4;
  color: #38a169;
}

/* ── Reenviar enlace ──────────────────────────────────────────────────────── */

.fp-resend {
  margin-top: 18px;
}

.fp-resend__btn {
  background: none;
  border: none;
  color: #0b1220;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  padding: 0;
  margin-left: 4px;
  transition: color 0.15s ease;
}

.fp-resend__btn:hover {
  color: #b89214;
}

.fp-resend__btn:disabled {
  color: rgba(11, 18, 32, 0.3);
  cursor: not-allowed;
}

.fp-resend__cooldown {
  font-size: 13px;
  color: rgba(11, 18, 32, 0.4);
  margin-left: 4px;
}

/* ── Indicador de fortaleza ───────────────────────────────────────────────── */

.rp-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -8px 0 18px;
}

.rp-strength__bar {
  flex: 1;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}

.rp-strength__fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.rp-strength__label {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  min-width: 50px;
}

/* Strength levels */
.rp-strength[data-level="weak"] .rp-strength__fill {
  width: 25%;
  background: #e53e3e;
}
.rp-strength[data-level="weak"] .rp-strength__label {
  color: #e53e3e;
}

.rp-strength[data-level="fair"] .rp-strength__fill {
  width: 50%;
  background: #dd6b20;
}
.rp-strength[data-level="fair"] .rp-strength__label {
  color: #dd6b20;
}

.rp-strength[data-level="good"] .rp-strength__fill {
  width: 75%;
  background: #38a169;
}
.rp-strength[data-level="good"] .rp-strength__label {
  color: #38a169;
}

.rp-strength[data-level="strong"] .rp-strength__fill {
  width: 100%;
  background: #2f855a;
}
.rp-strength[data-level="strong"] .rp-strength__label {
  color: #2f855a;
}

/* ── Step transition ──────────────────────────────────────────────────────── */

[data-step] {
  transition: opacity 0.25s ease;
}
