/* ── forgot_password.css ──────────────────────────────────────────────────── */

#forgotModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

#forgotModal.active {
  display: flex;
}

.forgot-modal-box {
  background: #ffffff;
  border-radius: 14px;
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
  position: relative;
  animation: forgotFadeIn 0.3s ease;
}

@keyframes forgotFadeIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.forgot-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color 0.15s;
}

.forgot-close:hover {
  color: #1a2332;
}

.forgot-step {
  display: none;
}

.forgot-step.active {
  display: block;
}

.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e5e7eb;
  transition: background 0.25s;
}

.step-dot.active {
  background: #ff6b35;
}

.forgot-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a2332;
  margin: 0 0 6px;
}

.forgot-subtitle {
  font-size: 0.88rem;
  color: #6b7280;
  margin: 0 0 22px;
  line-height: 1.5;
}

.forgot-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.95rem;
  box-sizing: border-box;
  margin-bottom: 14px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  font-family: inherit;
}

.forgot-input:focus {
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.forgot-btn {
  width: 100%;
  padding: 12px;
  background: #ff6b35;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 0.97rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.forgot-btn:hover {
  background: #e85520;
}

.forgot-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.forgot-error {
  background: #fee2e2;
  color: #991b1b;
  border-left: 4px solid #ef4444;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.forgot-success-msg {
  background: #d1fae5;
  color: #065f46;
  border-left: 4px solid #10b981;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.channel-btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 12px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s;
  font-family: inherit;
  box-sizing: border-box;
}

.channel-btn:hover {
  border-color: #ff6b35;
  background: #fff7f4;
}

.channel-btn strong {
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
  color: #1a2332;
}

.channel-btn span {
  color: #6b7280;
  font-size: 0.82rem;
}

.otp-field {
  width: 100%;
  padding: 14px;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 10px;
  text-align: center;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-family: monospace;
  box-sizing: border-box;
  margin-bottom: 12px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.otp-field:focus {
  border-color: #ff6b35;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.otp-countdown {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 12px;
}

#otpTimer {
  font-weight: 700;
  color: #ff6b35;
}

#otpTimer.expired {
  color: #ef4444;
}

.resend-link {
  background: none;
  border: none;
  color: #ff6b35;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  display: block;
  margin: 8px auto 0;
  font-family: inherit;
}

.resend-link:hover {
  color: #e85520;
}
