/* ===== Modern Forgot Password Page Styles ===== */

/* Forgot Password Container */
.forgot-password-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  overflow: hidden;
}

/* Background Animation */
.forgot-password-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.floating-shapes {
  position: relative;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  animation: float 7s ease-in-out infinite;
}

.shape-1 {
  width: 90px;
  height: 90px;
  top: 25%;
  left: 12%;
  animation-delay: 0s;
}

.shape-2 {
  width: 110px;
  height: 110px;
  top: 65%;
  right: 18%;
  animation-delay: 2s;
}

.shape-3 {
  width: 70px;
  height: 70px;
  top: 85%;
  left: 25%;
  animation-delay: 4s;
}

.shape-4 {
  width: 130px;
  height: 130px;
  top: 35%;
  right: 35%;
  animation-delay: 1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-25px) rotate(180deg);
  }
}

/* Forgot Password Form Container */
.forgot-password-form-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 450px;
  padding: 2rem;
}

.forgot-password-form {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  padding: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Forgot Password Header */
.forgot-password-header {
  text-align: center;
  margin-bottom: 3rem;
}

.forgot-password-logo {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.3);
}

.forgot-password-title h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #1e293b 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.forgot-password-title p {
  color: #64748b;
  font-size: 1.125rem;
  margin-bottom: 0;
}

/* Form Styles */
.modern-forgot-password-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  position: relative;
}

.form-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #374151;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.form-label i {
  color: #f59e0b;
  width: 16px;
  text-align: center;
}

.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  color: #1e293b;
}

.form-input:focus {
  outline: none;
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
  transform: translateY(-2px);
}

.form-input.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.form-error {
  color: #ef4444;
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 0.25rem;
  display: none;
}

.form-error:not(:empty) {
  display: block;
}

/* Forgot Password Button */
.forgot-password-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.forgot-password-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
}

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

.forgot-password-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Forgot Password Footer */
.forgot-password-footer {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.back-to-login {
  color: #f59e0b;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
}

.back-to-login:hover {
  color: #d97706;
  background: rgba(245, 158, 11, 0.1);
  text-decoration: none;
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .forgot-password-form-container {
    padding: 1rem;
  }

  .forgot-password-form {
    padding: 2rem;
  }

  .forgot-password-title h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .forgot-password-form {
    padding: 1.5rem;
  }

  .forgot-password-title h1 {
    font-size: 1.75rem;
  }

  .forgot-password-logo {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* Focus States */
.form-group.focused .form-input {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
}

.form-group.has-value .form-input {
  border-color: #10b981;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.forgot-password-form {
  animation: fadeInUp 0.8s ease-out;
}

.form-group {
  animation: fadeInUp 0.8s ease-out;
}

.form-group:nth-child(1) {
  animation-delay: 0.1s;
}
.form-group:nth-child(2) {
  animation-delay: 0.2s;
}
.form-group:nth-child(3) {
  animation-delay: 0.3s;
}

/* Print Styles */
@media print {
  .forgot-password-container {
    background: white !important;
  }

  .forgot-password-background {
    display: none;
  }

  .forgot-password-form {
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
  }
}
