#login {
  position: relative;
  width: 100vw;
  height: 100vh;
  font-size: 2rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.login-form {
  position: relative;
  bottom: -50%;
  width: min(80%, 40rem);
  height: clamp(300px, 30rem, 1000px);
  padding: 2rem 0;
  background-color: var(--clr-blu-1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  box-sizing: content-box;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  animation: fi-from-btm 1s forwards;
}

.register-form {
  position: relative;
  margin-top: 3rem;
  bottom: -50%;
  width: min(80%, 40rem);
  height: min(40rem, 80vh);
  padding: 2rem 0;
  background-color: var(--clr-blu-1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  box-sizing: content-box;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-direction: column;
  opacity: 0;
  animation: fi-from-btm 1s forwards;
}

@keyframes fi-from-btm {
  from {
    opacity: 0;
    bottom: -50%;
  }
  to {
    opacity: 1;
    bottom: 0;
  }
}

@media (max-height: 450px) {
  .login-form {
    margin-top: 3rem;
    height: calc(100vh - 10rem);
    width: 80vw;
  }
  .register-form {
    margin-top: 3rem;
    height: 100%;
    width: 100vw;
  }
}

.login-form h2 {
  text-align: center;
}

.form-input-wrapper {
  position: relative;
  width: 80%;
  margin: 0.7rem 0;
}
.form-input-wrapper > * {
  color: var(--clr-ylw-1);
  font-size: var(--login-fnt-sz);
}
.form-input {
  position: relative;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(241, 211, 2, 0.7);
  outline: 0;
  transition: border 0.3s;
}
.form-input-wrapper p {
  text-align: center;
  font-size: 1.3rem;
  margin: 1rem 0;
}
.form-input-wrapper a {
  color: var(--clr-ylw-1);
}
.form-input-wrapper label {
  width: 100%;
  position: absolute;
  left: 0;
  bottom: 0;
  transition: 0.3s;
  opacity: 0.7;
  pointer-events: none;
}

.errorMessage {
  position: relative;
  top: 0.5rem;
  font-size: 1rem;
  color: #fff;
}

.signupsuccess {
  color: white;
  border-bottom: 1px solid white;
}

.form-input:focus ~ label,
.form-input:valid ~ label {
  transform: translate(-15%,-2rem) scale(0.7);
  opacity: 1;
  filter: brightness(1.1);
}
.form-input:focus, 
.form-input:valid {
  border-bottom: 1.5px solid var(--clr-ylw-1);
  filter: brightness(1.1);
}

.form-btns {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
}
.form-btn {
  position: relative;
  padding: 0.5rem 2.5rem;
  border: none;
  border-radius: 2rem;
  outline: 0;
  font-size: 1.2rem;
  color: var(--clr-blu-1);
  background-image: linear-gradient(120deg, #fef4af 30%, var(--clr-ylw-1));
  box-shadow: 0 0 2px var(--clr-ylw-1);
  cursor: pointer;
  transition: 0.4s;
}
.form-btn:hover,
.google-btn:hover {
  filter: brightness(1.35);
}
.google-btn {
  position: relative;
  padding: 0.5rem 2rem;
  border: none;
  border-radius: 2rem;
  outline: 0;
  font-size: 1.2rem;
  color:white;
  background-image: linear-gradient(120deg, #f55 30%, #f00);
  box-shadow: 0 0 2px #f00;
  cursor: pointer;
  transition: 0.4s;
  display: flex;
  align-items: center;
}
.google-btn svg {
  margin-right: 1rem;
}

@media (max-width: 600px) {
  .form-btn {
    margin: 1rem;
    padding: 0.5rem 2rem;
    width: 300px;
    height: 33px;
  }
  .google-btn {
    width: 300px;
    height: 33px;
    justify-content: space-around;
  }
}