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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("https://hebbkx1anhila5yf.public.blob.vercel-storage.com/forgot%20password-tGmncEQQNVY7RoZ14ff37GbIdgMyd2.png")
    center/cover;
  filter: blur(3px);
  z-index: -1;
}

body::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

.forgot-password-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  max-width: 450px;
  width: 90%;
  text-align: center;
  position: relative;
  animation: slideUp 0.6s ease-out;
  z-index: 1;
}

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

.step {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

h2 {
  color: #333;
  margin-bottom: 30px;
  font-weight: 600;
  font-size: 28px;
}

.form-label {
  color: #555;
  font-weight: 500;
  margin-bottom: 10px;
  text-align: left;
}

.form-control {
  border: 2px solid #007bff;
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 16px;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.form-control:focus {
  border-color: #0056b3;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(45deg, #007bff, #0056b3);
  border: none;
  border-radius: 25px;
  padding: 12px 40px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 10px 0;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

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

.otp-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.otp-input {
  width: 50px;
  height: 50px;
  text-align: center;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.otp-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  transform: scale(1.05);
}

.timer {
  color: #dc3545;
  font-weight: 600;
  margin: 10px 0;
  font-size: 14px;
}

.resend-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.3s ease;
}

.resend-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.resend-link.disabled {
  color: #6c757d;
  cursor: not-allowed;
  pointer-events: none;
}

.back-link {
  color: #007bff;
  text-decoration: none;
  font-size: 14px;
  margin-top: 20px;
  display: inline-block;
  transition: all 0.3s ease;
}

.back-link:hover {
  color: #0056b3;
  transform: translateX(-5px);
}

.success-message {
  background: linear-gradient(45deg, #28a745, #20c997);
  color: white;
  padding: 15px;
  border-radius: 10px;
  margin: 20px 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}

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

/* Toast Notification */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99999 !important; 
  pointer-events: none;
  isolation: isolate;  
}

.toast {
  background: white;
  border-left: 4px solid #dc3545;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideInRight 0.3s ease-out forwards;
  margin-bottom: 10px;
  pointer-events: auto;
  padding: 15px 20px;
  min-width: 280px;
  opacity: 1;
  position: relative;  
  z-index: 100000;
}

.toast.success {
  border-left-color: #28a745;
}

.toast-body {
  padding: 0;
  color: #333;
  font-weight: 500;
}

.toast-body i {
  font-size: 18px;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* Responsive Design */
@media (max-width: 576px) {
  .forgot-password-container {
    padding: 30px 20px;
    margin: 20px;
  }

  .otp-input {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .otp-container {
    gap: 5px;
  }

  h2 {
    font-size: 24px;
  }
}

.password-strength {
  margin-top: 10px;
  text-align: left;
}

.strength-bar {
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
  margin: 5px 0;
}

.strength-fill {
  height: 100%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.strength-weak {
  background: #dc3545;
  width: 25%;
}
.strength-fair {
  background: #ffc107;
  width: 50%;
}
.strength-good {
  background: #17a2b8;
  width: 75%;
}
.strength-strong {
  background: #28a745;
  width: 100%;
}

/* Additional styles for new features */
.password-input-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  font-size: 16px;
  padding: 5px;
  transition: color 0.3s ease;
  z-index: 10;
}

.password-toggle:hover {
  color: #007bff;
}

.password-requirements {
  margin-top: 8px;
  font-size: 12px;
  padding: 10px;
  background: #f8f9fa;
  border-radius: 6px;
  border-left: 3px solid #dee2e6;
}

.requirement {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
}

.requirement:last-child {
  margin-bottom: 0;
}

.requirement i {
  margin-right: 8px;
  font-size: 12px;
  width: 12px;
}

.requirement.valid {
  color: #28a745;
}

.requirement.invalid {
  color: #dc3545;
}



.paste-indicator {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: #007bff;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.paste-indicator.show {
  opacity: 1;
}

.alert-message {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  animation: slideDown 0.3s ease-out;
}

.alert-message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.alert-message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.alert-message.warning {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeaa7;
}

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