/* ====================================
   FORGOT PASSWORD PAGE - CLEAN PROFESSIONAL DESIGN
   PARTSFORM Color Scheme: #2B5278 (primary), #3B82F6 (accent)
   ==================================== */

/* ====================================
   BASE STYLES
   ==================================== */
.forgot-password-section {
  min-height: 100vh;
  background: #f8fafc;
  padding: 7rem 0 3rem;
  position: relative;
}

/* ====================================
   CONTAINER
   ==================================== */
.forgot-container {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ====================================
   PROGRESS STEPS
   ==================================== */
.progress-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2.5rem;
  padding: 0 1rem;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.step-label {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.5rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.progress-step.active .step-number {
  background: #2B5278;
  color: white;
}

.progress-step.active .step-label {
  color: #2B5278;
  font-weight: 600;
}

.progress-step.completed .step-number {
  background: #10b981;
  color: white;
}

.progress-step.completed .step-label {
  color: #10b981;
}

.progress-line {
  width: 60px;
  height: 3px;
  background: #e2e8f0;
  margin: 0 0.75rem;
  margin-bottom: 1.5rem;
  border-radius: 3px;
  transition: background 0.3s ease;
}

.progress-line.completed {
  background: #10b981;
}

/* ====================================
   CARD STYLES
   ==================================== */
.forgot-card {
  background: white;
  border-radius: 16px;
  padding: 2rem 2.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e5e7eb;
}

/* ====================================
   STEP CONTENT
   ==================================== */
.step-content {
  display: none;
}

.step-content.active {
  display: block;
}

/* ====================================
   CARD HEADER
   ==================================== */
.forgot-card-header {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.forgot-card-header .header-logo {
  margin-bottom: 1rem;
}

.forgot-card-header .logo-img {
  height: 32px;
  width: auto;
}

.forgot-card-header .success-icon {
  margin: 1rem 0;
  color: #10b981;
}

.forgot-card-header .success-icon svg {
  width: 48px;
  height: 48px;
}

.header-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f0f9ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: #2B5278;
}

.header-icon svg {
  width: 28px;
  height: 28px;
}

.header-icon.success {
  background: #f0fdf4;
  color: #16a34a;
}

.forgot-card-header h2 {
  font-size: 1.375rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.375rem;
}

.forgot-card-header p {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.5;
  margin: 0;
}

.forgot-card-header p.email-display {
  margin-top: 0.5rem;
}

.forgot-card-header p strong {
  color: #2B5278;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ====================================
   FORM STYLES
   ==================================== */
.forgot-form {
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  width: 20px;
  height: 20px;
  color: #9ca3af;
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-wrapper input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  color: #1f2937;
  background: #fff;
  transition: all 0.2s ease;
}

.input-wrapper input::placeholder {
  color: #9ca3af;
}

.input-wrapper input:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper input:focus ~ .input-icon {
  color: #3B82F6;
}

.input-wrapper input.error {
  border-color: #ef4444;
}

.input-wrapper input.success {
  border-color: #10b981;
}

.field-error {
  display: block;
  font-size: 0.75rem;
  color: #ef4444;
  margin-top: 0.375rem;
  min-height: 1rem;
}

/* ====================================
   PASSWORD INPUT
   ==================================== */
.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: #2B5278;
}

.password-wrapper input {
  padding-right: 3.5rem;
}

/* ====================================
   PASSWORD STRENGTH
   ==================================== */
.password-strength {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.strength-bars {
  display: flex;
  gap: 4px;
}

.strength-bar {
  width: 32px;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

.strength-text {
  font-size: 0.75rem;
  color: #64748b;
  transition: color 0.3s ease;
}

.password-match {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.375rem;
  min-height: 1rem;
}

/* ====================================
   PASSWORD REQUIREMENTS
   ==================================== */
.password-requirements {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
}

.password-requirements p {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  margin: 0 0 0.75rem;
}

.password-requirements ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.password-requirements li {
  font-size: 0.75rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

.password-requirements li svg {
  width: 14px;
  height: 14px;
}

.password-requirements li.met {
  color: #10b981;
}

/* ====================================
   CODE INPUT
   ==================================== */
.code-input-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.code-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2B5278;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  transition: all 0.2s ease;
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
}

.code-input:focus {
  outline: none;
  border-color: #3B82F6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.code-separator {
  font-size: 1.5rem;
  color: #cbd5e1;
  font-weight: 300;
  margin: 0 0.25rem;
}

/* ====================================
   TIMER
   ==================================== */
.timer-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  background: #f1f5f9;
  border-radius: 8px;
}

.timer-wrapper svg {
  width: 16px;
  height: 16px;
}

.timer-wrapper strong {
  font-family: 'SF Mono', Monaco, 'Courier New', monospace;
  color: #6b7280;
}

/* ====================================
   BUTTONS
   ==================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: #2B5278;
  color: white;
}

.btn-primary:hover {
  background: #1e3f5a;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: white;
  color: #374151;
  border: 2px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-top: 0.75rem;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.btn-icon,
.btn-icon-left {
  width: 20px;
  height: 20px;
}

.btn-loader {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ====================================
   FORM MESSAGES
   ==================================== */
.form-message {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.form-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

.form-message svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ====================================
   FOOTER LINKS
   ==================================== */
.forgot-footer {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.forgot-footer p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

.forgot-footer a {
  color: #3B82F6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.forgot-footer a:hover {
  color: #2B5278;
  text-decoration: underline;
}

.forgot-footer .mt-2 {
  margin-top: 0.75rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.back-link svg {
  width: 16px;
  height: 16px;
}

.resend-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ====================================
   SUCCESS STATE
   ==================================== */
.success-header {
  margin-bottom: 2.5rem;
}

.success-animation {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 1.5rem;
}

.success-checkmark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 2;
  animation: checkmarkPop 0.5s ease-out;
}

.success-checkmark svg {
  width: 40px;
  height: 40px;
}

@keyframes checkmarkPop {
  0% { transform: translate(-50%, -50%) scale(0); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.success-rings {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.3);
  animation: ringExpand 1.5s ease-out infinite;
}

.ring-1 { animation-delay: 0s; }
.ring-2 { animation-delay: 0.3s; }
.ring-3 { animation-delay: 0.6s; }

@keyframes ringExpand {
  0% {
    width: 80px;
    height: 80px;
    opacity: 1;
  }
  100% {
    width: 140px;
    height: 140px;
    opacity: 0;
  }
}

.success-actions {
  margin-bottom: 1.5rem;
}

.security-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: #f1f5f9;
  border-radius: 12px;
  font-size: 0.8rem;
  color: #64748b;
}

.security-notice svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #2B5278;
}

.security-notice p {
  margin: 0;
  line-height: 1.5;
}

/* ====================================
   HELP SECTION
   ==================================== */
.help-section {
  text-align: center;
  margin-top: 2rem;
}

.help-section p {
  font-size: 0.875rem;
  color: #94a3b8;
}

.help-section a {
  color: #3B82F6;
  text-decoration: none;
  font-weight: 500;
}

.help-section a:hover {
  text-decoration: underline;
}

/* ====================================
   NOTIFICATIONS
   ==================================== */
.notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  font-size: 0.875rem;
  font-weight: 500;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.notification.show {
  transform: translateX(-50%) translateY(0);
}

.notification svg {
  width: 20px;
  height: 20px;
}

.notification-success {
  border-left: 4px solid #10b981;
  color: #10b981;
}

.notification-error {
  border-left: 4px solid #ef4444;
  color: #ef4444;
}

.notification-warning {
  border-left: 4px solid #f59e0b;
  color: #f59e0b;
}

.notification-info {
  border-left: 4px solid #3b82f6;
  color: #3b82f6;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */
@media (max-width: 640px) {
  .forgot-password-section {
    padding: 6rem 0 3rem;
  }

  .forgot-card {
    padding: 1.5rem;
  }

  .forgot-card-header h2 {
    font-size: 1.5rem;
  }

  .progress-steps {
    padding: 0;
  }

  .progress-line {
    width: 30px;
    margin: 0 0.375rem;
  }

  .step-number {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }

  .step-label {
    font-size: 0.65rem;
  }

  .code-input {
    width: 40px;
    height: 48px;
    font-size: 1.25rem;
  }

  .code-separator {
    margin: 0 0.125rem;
  }

  .password-requirements ul {
    grid-template-columns: 1fr;
  }

  .header-icon {
    width: 60px;
    height: 60px;
  }

  .header-icon svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 400px) {
  .code-input {
    width: 36px;
    height: 44px;
    font-size: 1.125rem;
  }

  .code-input-wrapper {
    gap: 0.25rem;
  }
}

/* ====================================
   DARK MODE SUPPORT (optional)
   ==================================== */
@media (prefers-color-scheme: dark) {
  /* Add dark mode styles if needed */
}
