* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* Background Image with Blur */
.forgot-password-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(74, 95, 193, 0.85) 0%, rgba(99, 102, 241, 0.85) 50%, rgba(124, 58, 237, 0.85) 100%),
              url('dist/img/boxed-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(0px);
  z-index: 0;
}

.forgot-password-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(3px);
}

/* Main Container */
.forgot-password-container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

/* Card */
.forgot-password-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 48px 60px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.forgot-password-header {
  text-align: center;
  margin-bottom: 12px;
}

.forgot-password-title {
  font-size: 32px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.forgot-password-subtitle {
  font-size: 15px;
  font-weight: 400;
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Notification Styles */
.notification {
  text-align: center;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  display: none;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.notification.error {
  background-color: #fee2e2;
  color: #dc2626;
  border-left: 4px solid #dc2626;
  display: block;
}

.notification.success {
  background-color: #d1fae5;
  color: #059669;
  border-left: 4px solid #059669;
  display: block;
}

/* Form Styles */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.email-input-wrapper {
  position: relative;
}

.email-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 18px;
}

.form-input {
  width: 100%;
  padding: 14px 16px 14px 48px;
  font-size: 15px;
  color: #1f2937;
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
}

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

.form-input:focus {
  border-color: #4f46e5;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: #4f46e5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
  margin-bottom: 20px;
}

.btn-submit:hover {
  background: #4338ca;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
  transform: translateY(-1px);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-submit.loading {
  background: #6366f1;
  cursor: wait;
}

.btn-submit.success {
  background: #10b981;
  cursor: default;
}

.btn-submit.success:hover {
  background: #059669;
  transform: none;
}

/* Spinner animation */
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #ffffff;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

.back-to-login {
  text-align: center;
  margin-top: 20px;
}

.back-to-login a {
  font-size: 15px;
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.back-to-login a:hover {
  color: #4338ca;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .forgot-password-card {
    padding: 40px 32px;
    max-width: 480px;
  }
  
  .forgot-password-title {
    font-size: 28px;
  }

  .forgot-password-subtitle {
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .forgot-password-container {
    padding: 16px;
  }

  .forgot-password-card {
    padding: 32px 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  }
  
  .forgot-password-title {
    font-size: 26px;
  }

  .forgot-password-subtitle {
    font-size: 14px;
    margin-bottom: 28px;
  }

  .form-input {
    padding: 12px 14px 12px 46px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .btn-submit {
    padding: 12px 20px;
    font-size: 15px;
  }

  .form-label {
    font-size: 13px;
  }

  .back-to-login a {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .forgot-password-card {
    padding: 28px 24px;
    border-radius: 12px;
  }
  
  .forgot-password-title {
    font-size: 24px;
  }

  .forgot-password-subtitle {
    font-size: 13px;
    margin-bottom: 24px;
  }

  .forgot-password-header {
    margin-bottom: 8px;
  }

  .form-group {
    margin-bottom: 20px;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 896px) and (max-height: 414px) and (orientation: landscape) {
  body {
    overflow-y: auto;
  }

  .forgot-password-container {
    min-height: 100vh;
    padding: 16px;
  }

  .forgot-password-card {
    padding: 24px 32px;
    margin: 16px 0;
  }
}

