* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #942ce4, #9d4edd, #d1acf2, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.forgot-container {
  width: 100%;
  max-width: 420px;
  padding: 28px 26px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  border-radius: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  color: #fff;
}

.forgot-container h2 {
  text-align: center;
  margin-bottom: 18px;
  font-size: 28px;
  font-weight: 600;
}

.forgot-container label {
  font-size: 17px;
  margin-bottom: 6px;
  display: block;
}

.forgot-container input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 10px;
  font-size: 16px;
  margin-bottom: 6px;
  border: 1px solid transparent;
  outline: none;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  transition: all 0.25s ease;
}

.forgot-container input:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 15px rgba(199, 125, 255, 0.35);
}

.forgot-container input:focus {
  transform: scale(1.03);
  border-color: #c77dff;
  box-shadow: 0 0 0 3px rgba(199, 125, 255, 0.45);
}

.forgot-container input::placeholder {
  color: #aaa;
}

.forgot-container button {
  width: 100%;
  margin-top: 12px;
  padding: 13px;
  border-radius: 10px;
  border: none;
  background: #7b2cbf;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.forgot-container button:hover {
  background: #5a189a;
  transform: translateY(-2px);
}

.error-text {
  margin-top: 4px;
  background: rgba(255, 60, 60, 0.2);
  color: #7b1020;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  text-align: left;
  border: 1px solid rgba(255, 60, 60, 0.35);
  box-shadow: 0 4px 10px rgba(255, 60, 60, 0.2);
}

.success-text {
  margin-top: 10px;
  background: rgba(0, 255, 100, 0.15);
  color: #0f5132;
  padding: 10px;
  border-radius: 8px;
  font-size: 15px;
  text-align: center;
}

.back-link {
  margin-top: 14px;
  text-align: center;
  font-size: 16px;
}
.success-text {
  margin-top: 10px;
  background: rgba(0, 123, 255, 0.15);
  color: #0f5132;
  padding: 10px 15px;
  border-radius: 8px;
  font-size: 15px;
  text-align: center;
}

.success-link {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 16px;
  background-color: #0d6efd;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.25s ease;
}

.success-link:hover {
  background-color: #0b5ed7;
}

.back-link a {
  color: #f1e1ff;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease;
}

.back-link a:hover {
  color: #5a189a;
  letter-spacing: 0.5px;
}

.input-error {
  border: 2px solid #e63946 !important;
  animation: shake 0.3s;
}

@keyframes shake {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(4px);
  }
  75% {
    transform: translateX(-4px);
  }
  100% {
    transform: translateX(0);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .forgot-container {
    max-width: 90%;
    padding: 22px 18px;
  }

  .forgot-container h2 {
    font-size: 23px;
  }

  .forgot-container label {
    font-size: 14px;
  }

  .forgot-container input {
    font-size: 14px;
    padding: 10px 12px;
  }

  .forgot-container button {
    font-size: 15px;
    padding: 11px;
  }

  .back-link {
    font-size: 13px;
  }
}
