@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');

* {
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: 'Montserrat', sans-serif;
}
.wrapper {
  display:flex;
  justify-content:center;
  align-items: center;
  height:100vh;
  width:100%;
  background:url('https://codingstella.com/wp-content/uploads/2024/01/download-7.jpeg') no-repeat;
  background-size:cover;
  background-position:center;
}

.login-box {
  position: relative;
  width: 407px;
  min-height: 455px;
  background: transparent;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,.5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
  box-shadow: 0 0 10 rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(8px);

}
h2 {
  font-size:2em;
  color:#fff;
  text-align:center;
}
.input-box {
  position:relative;
  width:310px;
  margin:30px 0;
  border-bottom:1px solid #fff;
}
.input-box label {
  position:absolute;
  top:50%;
  left:5px;
  transform:translateY(-50%);
  font-size:1em;
  color:#fff;
  pointer-events:none;
  transition:.5s;
}
.input-box input:focus  ~ label,
.input-box input:valid  ~ label {
  top:-5px;
}
.input-box input {
  width:100%;
  height:50px;
  background:transparent;
  border:none;
  outline:none;
  font-size:1em;
  color:#fff;
  padding:0 35px 0 5px;
}
.input-box .icon {
  position:absolute;
  right:8px;
  top:50%;
  color: #fff;
  transform: translateY(-50%);
}
.remember-forgot {
  margin:-15px 0 15px;
  font-size:.9em;
  color:#fff;
  display:flex;
  justify-content:space-between;
}
.remember-forgot label input {
  margin-right:3px;
}
.remember-forgot a {
  color:#fff;
  text-decoration:none;
}
.remember-forgot a:hover {
  text-decoration:underline;
}
button {
  width:100%;
  height:40px;
  background-color:#fff;
  border:none;
  border-radius:40px;
  cursor:pointer;
  font-size:1em;
  color:#000;
  font-weight:500;
}
.register-link {
  font-size:.9em;
  color:#fff;
  text-align:center;
  margin:25px 0 10px;
}
.register-link p a {
  color:#fff;
  text-decoration:none;
  font-weight:600;
}
.register-link p a:hover {
  text-decoration:underline;
}
@media (max-width:500px) {
  .login-box {
    width: 90%;
    min-height: auto;
    padding: 40px 0;
    border-radius: 10px;
  }

  .input-box {
    width: 260px;
  }
}
body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
.input-box input:focus {
  box-shadow: 0 0 15px rgba(0, 195, 255, 0.8);
  transition: 0.3s ease;
}
button:active {
  transform: scale(0.95);
  transition: 0.1s;
}


.reset-container .login-box {
  min-height: 350px !important;
  padding: 40px 20px !important;
}

.reset-container .login-box button {
  width: 260px !important;
  margin-top: 20px !important;
}

.reset-container .register-link {
  margin-top: 15px !important;
}

.reset-container .register-link a {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 0.9em !important;
  font-weight: 500 !important;
  opacity: 0.9;
}

.reset-container .register-link a:hover {
  text-decoration: underline !important;
  color: white;
}
/* -------- RESET PAGE UPGRADES -------- */

.reset-container .login-box {
  min-height: 360px !important;
  padding: 40px 20px !important;
}

/* Neon glowing button */
.reset-container button {
  width: 260px;
  margin-top: 25px;
  transition: 0.3s ease;
  box-shadow: 0 0 0px rgba(0, 195, 255, 0.0);
}

.reset-container button:hover {
  box-shadow: 0 0 15px rgba(0, 195, 255, 0.8);
  transform: scale(1.03);
}

/* Loading spinner */
.reset-container button.loading {
  position: relative;
  color: transparent;
}

.reset-container button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  border: 3px solid white;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Shake animation */
.shake {
  animation: shakeAnim 0.3s linear;
}

@keyframes shakeAnim {
  0% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
  100% { transform: translateX(0); }
}

/* Back to login link same as forgot password */
.reset-container .register-link a {
  color: #fff !important;
  opacity: 0.9;
  text-decoration: none;
  font-weight: 600;
}

.reset-container .register-link a:hover {
  text-decoration: underline;
}