* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.outer {
  background-image: url(images/backdrop.jpg);
  background-repeat: no-repeat;
  background-size: 70% 100vh;
  background-position: center top;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

#login-form {
  border: 1px solid black;
  border-radius: 12px;
  padding: 3%;
  background-color: white;
  width: 100%;
  max-width: 400px;

  /* Glassmorphism */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.25),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
  color: white;

  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

#login-form-inner {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

input {
  padding: 2.5%;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  width: 100%;
  padding-right: 2.5rem;
}

.password-eye-btn {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #333;
  padding: 0;
}

#login-btn {
  padding: 2.5% 8%;
  align-self: center;
  cursor: pointer;
}

.forgot-text {
  margin: 0.5rem 0 0 0;
  text-align: center;
}

.forgot-text a {
  text-decoration: none;
  color: white;
  text-shadow:
    1px 1px 0 #b026ff,
    2px 2px 0 #a020f0;
  font-size: 1.5rem;
  font-weight: 600;
}

.login-error {
  color: red;
  text-align: center;
  margin-top: 1.5rem;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .outer {
    background-size: 100% 100vh;
  }

  #login-form {
    padding: 4%;
    width: 70%;
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  #login-form h3 {
    font-size: 1.5rem;
  }
}

@media (max-width: 501px) {
  #login-form {
    padding: 5%;
    width: 70%;
    max-width: 400px;
  }

  .forgot-text a {
    font-size: 1.2rem;
  }
}
