﻿/* ==================== FORGOT PASSWORD MODAL ==================== */

.fp-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.fp-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.fp-modal {
  background: linear-gradient(160deg, rgba(30, 20, 60, 0.98), rgba(15, 15, 35, 0.98));
  border: 1px solid rgba(168, 85, 247, 0.25);
  border-radius: 28px;
  padding: 1.75rem;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 30px 90px rgba(168, 85, 247, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #fff;
}

.fp-backdrop.active .fp-modal {
  transform: translateY(0) scale(1);
}

.fp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.fp-close {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.fp-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
}

/* Step progress dots */
.fp-steps {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.fp-step-dot {
  width: 32px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  transition: all 0.3s;
}

.fp-step-dot.active {
  background: linear-gradient(90deg, #a855f7, #06b6d4);
  width: 48px;
}

.fp-step-dot.done {
  background: linear-gradient(90deg, #a855f7, #06b6d4);
}

/* Step panes */
.fp-step { display: none; animation: fpFade 0.3s ease; }
.fp-step.active { display: block; }

@keyframes fpFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.fp-step h3 {
  font-size: 1.25rem;
  font-weight: 900;
  margin: 0 0 0.5rem;
}

.fp-step p.hint {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 1.25rem;
}

/* Inputs */
.fp-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s;
  box-sizing: border-box;
}

.fp-input:focus {
  outline: none;
  border-color: #a855f7;
  background: rgba(168, 85, 247, 0.08);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.15);
}

.fp-input.code {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 12px;
  font-family: monospace;
  font-weight: 900;
  padding-left: 1.5rem;
}

/* CTA */
.fp-cta {
  width: 100%;
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #a855f7, #06b6d4);
  border: none;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.35);
  margin-top: 1rem;
}

.fp-cta:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(168, 85, 247, 0.5);
}

.fp-cta:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.fp-secondary {
  width: 100%;
  padding: 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  margin-top: 0.5rem;
}

.fp-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Messages */
.fp-msg {
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-top: 0.75rem;
  display: none;
}

.fp-msg.show { display: block; }
.fp-msg.success { background: rgba(34, 197, 94, 0.15); border: 1px solid rgba(34, 197, 94, 0.4); color: #4ade80; }
.fp-msg.error { background: rgba(239, 68, 68, 0.15); border: 1px solid rgba(239, 68, 68, 0.4); color: #f87171; }
.fp-msg.info { background: rgba(59, 130, 246, 0.15); border: 1px solid rgba(59, 130, 246, 0.4); color: #60a5fa; }

/* Success screen */
.fp-success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #06b6d4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  box-shadow: 0 12px 40px rgba(34, 197, 94, 0.4);
}
