#title{
  font-size: 5rem;
  margin: 0;
  color: var(--font);
}

#login-form{
  color: var(--red);
  padding: 0.75%;
  border-radius: 1vw;
  font-size: 1.35rem;
  border: 0.1vw solid var(--red);
  background-color: var(--red3);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  width: 50%;
  min-height: 40%;
  z-index: 1;
}

input{
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 0.1vw solid #ccc;
  border-radius: 1vw;
  box-sizing: border-box;
}

input::placeholder {
  color: gray;
}

input[type="date"]::-webkit-datetime-edit {
  color: gray;
}
  
input[type=submit]{
  transition: 0.25s ease;
  width: 100%;
  background-color: var(--red);
  color: var(--font);
  padding: 1.5vw 2vw;
  margin: 1vw 0;
  border: none;
  border-radius: 1vw;
  cursor: pointer;
  font-size: 1.5rem;
}

input[type=submit]:hover{
  background-color: var(--bg);
  color: var(--font);
}

#change-type{
  text-align: center;
  color: var(--red);
}

#error{
  color: var(--red1);
  text-align: center;
}

#change-type:hover{
  text-decoration: underline;
}

#remember-me{
  width: 100%;
  display: flex;
  justify-content: start;
  align-items: center;
}

#remember-me > input{
  -webkit-appearance: none; /* for Safari/Chrome */
  appearance: none; /* for Firefox/modern */
  width: 3%;
  aspect-ratio: 1/1;
  margin-right: 1vw;
  background-color: white;
}

#remember-me > input:hover {
  cursor: pointer;
}

#remember-me > input:checked {
  background-color: var(--red);
  position: relative;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: row;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
  flex: 1;
  padding-right: 2.5rem;
}

.toggle-password {
  position: absolute;
  right: 0.5rem;
  top: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  color: #333;
}

@media (max-width: 1024px) {
  #title{
    display: none;
  }

  #main{
    padding: 2vw;
  }

  #login-form{
    width: 100%;
    min-height: unset;
    background-color: var(--bg);
    border: none;
    justify-content: unset;
    gap: 1.5rem;
  }

  #remember-me > input{
    width: 10%;
    aspect-ratio: 1/1;
    margin-right: 1vw;
  }

  input[type="date"]::-webkit-datetime-edit {
    color: white;
  }
}
