/* ============================================================
   SkinnyProject — Forgot Password / Password Reset
   Estilos para forgot-password.html
   ============================================================ */

/* ── Forgot Card Extension ──────────────────────────────── */
.forgot-card {
  max-width: 480px;
  position: relative;
  overflow: hidden;
}

/* ── Step transitions ───────────────────────────────────── */
.forgot-step {
  animation: forgot-fadeIn 0.35s ease-out;
}

@keyframes forgot-fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Forgot Icon ────────────────────────────────────────── */
.forgot-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  color: var(--accent);
  animation: forgot-pulse 2s ease-in-out infinite;
}

.forgot-icon--success {
  background: rgba(34, 211, 165, 0.12);
  border-color: var(--success);
  color: var(--success);
  animation: forgot-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes forgot-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 var(--accent-soft); }
  50% { transform: scale(1.03); box-shadow: 0 0 0 8px transparent; }
}

@keyframes forgot-pop {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ── OTP Input (reused from verify-email) ───────────────── */
.forgot-card .otp-container {
  text-align: center;
}

.forgot-card .otp-label {
  display: block;
  text-align: left;
  margin-bottom: var(--space-3);
}

.forgot-card .otp-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.forgot-card .otp-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  font-family: 'Courier New', monospace;
  background: var(--bg-main);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-main);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.forgot-card .otp-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  outline: none;
  transform: scale(1.05);
}

.forgot-card .otp-input:not(:placeholder-shown) {
  border-color: var(--accent);
}

.forgot-card .otp-separator {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin: 0 var(--space-1);
  user-select: none;
}

/* ── Timer ──────────────────────────────────────────────── */
.forgot-card .verify-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-2);
}

/* ── Actions (resend/back) ──────────────────────────────── */
.forgot-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.forgot-actions .btn--ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--transition), background var(--transition);
}

.forgot-actions .btn--ghost:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.forgot-actions .btn--ghost:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 520px) {
  .forgot-card {
    padding: var(--space-6);
  }

  .forgot-card .otp-input {
    width: 40px;
    height: 48px;
    font-size: var(--text-xl);
  }

  .forgot-icon {
    width: 64px;
    height: 64px;
  }

  .forgot-icon svg {
    width: 36px;
    height: 36px;
  }

  .forgot-actions {
    flex-direction: column;
    gap: var(--space-2);
  }
}
