/* Forget Password Page Styles */

/* Enhanced Error Display */
.alert {
  border-left: 4px solid;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-danger {
  border-left-color: #dc3545;
  background-color: #f8d7da;
}

.alert-success {
  border-left-color: #28a745;
  background-color: #d4edda;
}

.invalid-feedback {
  display: block !important;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 8px 12px;
  margin-top: 5px;
  font-size: 14px;
  color: #721c24;
}

/* Main Container */
.forgot-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  margin: 20px auto;
  background: white;
}

.image-section {
  background: url("https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1000&q=80")
    center/cover;
  height: 100%;
  border-radius: 20px 0 0 20px;
  position: relative;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 123, 255, 0.8),
    rgba(0, 86, 179, 0.9)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  text-align: center;
  padding: 40px;
}

.question-mark {
  font-size: 120px;
  color: white;
  margin-bottom: 20px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.form-section {
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.forgot-title {
  font-size: 28px;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
}

.forgot-subtitle {
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
}

.form-label {
  font-weight: 500;
  color: #666;
  margin-bottom: 8px;
  font-size: 14px;
}

/* Form Control Styles */
.form-control {
  height: 50px;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  padding: 0 12px !important;
  font-size: 16px !important;
  background-color: white !important;
  margin-bottom: 0 !important;
}

.form-control:focus {
  border-color: #007bff !important;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25) !important;
  outline: none !important;
}

.form-control::placeholder {
  color: #999 !important;
}

/* Password Input Container */
.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  height: 50px;
  background-color: white;
}

.password-input-container:focus-within {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.password-input-container input {
  flex: 1;
  border: none !important;
  outline: none !important;
  padding: 0 12px !important;
  height: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
}

.password-toggle {
  padding: 0 12px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  height: 100%;
}

.password-toggle:hover {
  color: #007bff;
}

/* Button Styles */
.continue-btn {
  height: 50px;
  background-color: #007bff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 20px;
  margin-top: 10px;
}

.continue-btn:hover {
  background-color: #0056b3;
}

/* Email Display */
.email-display {
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.email-display span {
  font-weight: 500;
  color: #333;
}

.edit-link {
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.edit-link:hover {
  text-decoration: underline;
}

/* OTP Input Styles */
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.otp-input {
  width: 50px;
  height: 50px;
  border: 2px solid #ddd;
  border-radius: 8px;
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  background-color: white;
}

.otp-input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Links */
.back-link {
  text-align: center;
  margin-top: 20px;
}

.back-link a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.back-link a:hover {
  color: #007bff;
}

.resend-link {
  text-align: center;
  font-size: 14px;
  color: #666;
  margin: 20px 0;
}

.resend-link a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.resend-link a:hover {
  text-decoration: underline;
}

/* Form Switching */
.forgot-form {
  display: none;
}

.forgot-form.active {
  display: block;
}

/* Success Modal Styles */
.success-modal .modal-content {
  border-radius: 20px;
  padding: 10px 20px 30px;
  max-width: 400px;
  margin: 0 auto;
}

.success-icon {
  font-size: 64px;
  color: #28a745;
  margin-bottom: 20px;
}

.success-title {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
}

.success-subtitle {
  font-size: 16px;
  color: #666;
  margin: 20px 0;
}

/* Loading State */
.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
  z-index: 1000;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Form Validation Styles */
.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.is-valid {
  border-color: #28a745 !important;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
}

.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #dc3545;
}

.valid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: #28a745;
}

/* Password Strength Indicator */
.password-strength {
  margin-top: 5px;
  font-size: 12px;
}

.password-strength.weak {
  color: #dc3545;
}

.password-strength.medium {
  color: #ffc107;
}

.password-strength.strong {
  color: #28a745;
}

/* Responsive Design */
@media (max-width: 768px) {
  .forgot-container {
    margin: 0;
    border-radius: 0;
    height: 100vh;
  }

  .image-section {
    display: none;
  }

  .form-section {
    padding: 40px 30px;
  }
  
  .otp-inputs {
    gap: 8px;
  }
  
  .otp-input {
    width: 45px;
    height: 45px;
  }
  
  .question-mark {
    font-size: 80px;
  }
}

@media (max-width: 576px) {
  .form-section {
    padding: 30px 20px;
  }
  
  .forgot-title {
    font-size: 24px;
  }
  
  .otp-input {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}
