/* Password Reset & Forgot Password Styles */

/* Container styles */
.reset-password-container,
.forgot-password-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 480px;
  margin: 30px auto;
  text-align: center;
  animation: fadeIn 0.8s ease forwards;
  opacity: 0;
  transform: translateY(20px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.reset-password-container::before,
.forgot-password-container::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, 
    rgba(106, 17, 203, 0.03) 0%, 
    rgba(37, 117, 252, 0.03) 25%, 
    rgba(106, 17, 203, 0.03) 50%, 
    rgba(37, 117, 252, 0.03) 75%, 
    rgba(106, 17, 203, 0.03) 100%);
  z-index: -1;
  transform: rotate(30deg);
  animation: gradientShift 10s linear infinite;
}

.reset-password-container:hover,
.forgot-password-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Title styles */
.reset-password-title,
.forgot-password-title {
  font-size: 32px;
  margin-bottom: 30px;
  position: relative;
  display: inline-block;
  color: #333;
}

.reset-password-title:after,
.forgot-password-title:after {
  content: '';
  position: absolute;
  width: 60%;
  height: 4px;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  bottom: -10px;
  left: 20%;
  border-radius: 2px;
}

/* Alert styles */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 10px;
  font-weight: 500;
  animation: slideIn 0.5s ease forwards;
}

.alert-danger {
  background: linear-gradient(135deg, rgba(255, 65, 108, 0.15), rgba(255, 75, 43, 0.15));
  color: #e74c3c;
  border-left: 4px solid #ff416c;
}

.alert-success {
  background: linear-gradient(135deg, rgba(32, 191, 85, 0.15), rgba(1, 186, 239, 0.15));
  color: #148f77;
  border-left: 4px solid #2ecc71;
}

/* Form styles */
.reset-password-form,
.forgot-password-form {
  margin-top: 30px;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
  text-align: left;
}

/* Input with icon styles */
.input-icon-wrapper {
  position: relative;
  margin-bottom: 25px;
  width: 100%;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 18px;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.input-icon-wrapper input {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border: 2px solid #e6e6e6;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.input-icon-wrapper input:focus {
  border-color: #2575fc;
  outline: none;
  box-shadow: 0 5px 15px rgba(37, 117, 252, 0.15);
  background-color: #fff;
  transform: translateY(-2px);
}

.input-icon-wrapper input:focus + .input-icon {
  color: #2575fc;
}

.focus-border {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  
  transition: width 0.4s ease, left 0.4s ease;
  pointer-events: none;
  border-radius: 2px;
}

.input-icon-wrapper input:focus ~ .focus-border {
  width: 80%;
  left: 10%;
}

.form-group label {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
  color: #444;
  font-weight: 600;
  text-align: left;
  transition: all 0.3s ease;
}



/* Button styles */
button[type="submit"] {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  color: #fff;
  border: none;
  border-radius: 15px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(106, 17, 203, 0.3);
  letter-spacing: 0.5px;
  margin-top: 10px;
}

button[type="submit"]:hover {
  background: linear-gradient(135deg, #2575fc, #6a11cb);
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(106, 17, 203, 0.4);
}

button[type="submit"]:active {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(106, 17, 203, 0.3);
}

button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0), 
    rgba(255, 255, 255, 0.2), 
    rgba(255, 255, 255, 0));
  transition: all 0.8s ease;
}

button[type="submit"]:hover::before {
  left: 100%;
}

/* Back link styles */
.back-link {
  display: inline-block;
  margin-top: 25px;
  color: #2575fc;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 3px;
}

.back-link:hover {
  color: #6a11cb;
}

.back-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, #6a11cb, #2575fc);
  transition: width 0.3s ease;
}

.back-link:hover::after {
  width: 100%;
}

/* Animations */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes gradientShift {
  0% {
    transform: rotate(30deg) translateY(0);
  }
  50% {
    transform: rotate(30deg) translateY(-15px);
  }
  100% {
    transform: rotate(30deg) translateY(0);
  }
}

/* Responsive styles */
@media (max-width: 768px) {
  .reset-password-container,
  .forgot-password-container {
    padding: 30px 25px;
    margin: 20px auto;
  }
  
  .reset-password-title,
  .forgot-password-title {
    font-size: 28px;
  }
  
  .input-icon-wrapper input {
    padding: 14px 16px 14px 45px;
  }
  
  .input-icon {
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .reset-password-container,
  .forgot-password-container {
    padding: 25px 20px;
    margin: 15px auto;
    max-width: 95%;
  }
  
  .reset-password-title,
  .forgot-password-title {
    font-size: 24px;
  }
  
  .form-group input,
  .input-icon-wrapper input {
    padding: 14px 16px 14px 40px;
    font-size: 15px;
  }
  
  .input-icon {
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
  }
  
  button[type="submit"] {
    padding: 14px;
    font-size: 16px;
  }
} 