.login-section {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100vw;
  height: 100vh;

  background: url("https://images.unsplash.com/photo-1432821596592-e2c18b78144f?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1170&q=80")
    no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}
.login-form-box {
  position: relative;
  width: 400px;
  height: 450px;
  background: rgb(255, 255, 255, 0.9);
  border: 2px solid var(--primary);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
}
.login-h2 {
  font-size: 32px;
  text-align: center;
}
.login-inputbox {
  position: relative;
  margin: 30px 0;
  width: 320px;
  border-bottom: 2px solid var(--primary);
}
.login-inputbox label {
  position: absolute;
  top: 50%;
  left: 5px;
  transform: translateY(-50%);
  font-size: 1em;
  pointer-events: none;
  transition: 0.5s;
}
input:focus ~ label,
input:valid ~ label {
  top: -5px;
  font-size: 0.75em;
}
.login-inputbox input {
  width: 100%;
  height: 50px;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1em;
  padding: 0 35px 0 5px;
}
.login-inputbox ion-icon {
  position: absolute;
  right: 8px;
  color: var(--red);
  font-size: 1.2em;
  top: 20px;
}
.login-forget {
  margin: -5px 0 25px;
  font-size: 0.8em;
  display: flex;
  justify-content: space-between;
}
.login-forget label input {
  margin-right: 3px;
}
.login-forget label a {
  color: var(--red);
  text-decoration: none;
}
.login-forget label a:hover {
  text-decoration: underline;
}
.login-button {
  width: 100%;
  height: 40px;
  border-radius: 40px;
  background: var(--red);
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  color: white;
  margin: 10px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}
.login-register {
  font-size: 0.8em;
  text-align: center;
  margin: 25px 0 0 0;
}
.login-register p a {
  text-decoration: none;
  color: var(--red);
  font-weight: bold;
}
.login-register p a:hover {
  text-decoration: underline;
}
@media (max-width: 1000px) {
  #pagecontent {
    margin-top: max(5vw, 25px);
  }
  .login-section {
    height: calc(100vh - max(5vw, 25px));
    height: calc(100svh - max(5vw, 25px));
  }
}
@media (max-width: 444px) {
  .login-form-box {
    width: 90vw;
  }
  .login-inputbox {
    width: 72vw;
  }
}
@media (max-height: 600px) {
  .login-section {
    height: 600px;
  }
}
