.login-content {
  height: 100vh;
  height: 100svh;
  display: none;
  align-items: center;
  justify-content: center;
}

.login-card {
  width: 652px;
  height: 493px;
  background-color: white;
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 48px 115px 48px 115px;
  box-shadow: 0px 0px 14px 3px #0000000a;
}

.login-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.login-seperator {
  display: block;
  height: 3px;
  width: 150px;
  background-color: var(--clr-light-blue);
}

.input-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.login-input {
  height: 48px;
  width: 100%;
  padding: 12px 50px 12px 21px;
  border-radius: 10px;
  border: 1px solid #d1d1d1;
  font-family: var(--font-family-inter);
  font-size: 20px;
  line-height: 24px;
}

.login-input::placeholder {
  color: #d1d1d1;
}

.login-input:focus-visible {
  outline: none;
  border: 2px solid var(--clr-light-blue);
}

.login-input-fields {
  position: relative;
}

.login-input-icon {
  position: absolute;
  right: 21px;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  height: 24px;
  width: 24px;
}

.login-input-icon img {
  height: 100%;
  width: 100%;
}

.login-failed-text {
  margin-top: 8px;
  color: #ff8190;
  font-size: 12px;
  line-height: 14.4px;
  visibility: hidden;
}

.login-remember {
  height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding-left: 39px;
}

.login-custom-checkbox {
  appearance: none;
  background-image: url(../assets/icons/uncheckedBox.svg);
  height: 24px;
  width: 24px;
  background-repeat: no-repeat;
  background-position: center center;
  cursor: pointer;
}

.login-custom-checkbox:focus-visible {
  outline: 2px solid var(--clr-light-blue);
}

.login-custom-checkbox:checked {
  background-image: url(../assets/icons/checkedBox.svg);
}

.login-custom-checkbox:hover {
  background-image: url(../assets/icons/uncheckedBoxHover.svg);
}

.login-custom-checkbox:checked:hover {
  background-image: url(../assets/icons/checkedBoxHover.svg);
}

.login-button-container {
  display: flex;
  gap: 35px;
  justify-content: center;
  margin-top: 32px;
}

.login-button-container button {
  height: 48px;
  border-radius: 8px;
  font-size: 21px;
  font-weight: 700;
}

.login-button {
  background-color: var(--clr-main);
  color: white;
  width: 110px;
}

.login-button:hover {
  background-color: var(--clr-light-blue);
  box-shadow: 0px 4px 4px 0px #00000040;
}

.guest-login-button {
  border: 1px solid var(--clr-main);
  width: 177px;
  color: var(--clr-main);
}

.guest-login-button:hover {
  color: var(--clr-light-blue);
  box-shadow: 0px 4px 4px 0px #00000040;
  border: 2px solid var(--clr-light-blue);
}

.sign-up-container {
  display: flex;
  align-items: center;
  gap: 35px;
  position: fixed;
  top: 67px;
  right: 120px;
}

.sign-up-container-mobile {
  display: none;
  align-items: center;
  gap: 35px;
}

.sign-up-text {
  font-size: 20px;
  line-height: 24px;
}

.sign-up-button {
  height: 48px;
  background-color: var(--clr-main);
  color: white;
  font-size: 16px;
  font-weight: 700;
  width: 91px;
  border-radius: 8px;
}

.sign-up-button:hover {
  background-color: var(--clr-light-blue);
  box-shadow: 0px 4px 4px 0px #00000040;
}

.login-legal-links {
  height: 35px;
  position: fixed;
  bottom: 67px;
  display: flex;
  gap: 30px;
  align-items: center;
  width: 100%;
  justify-content: center;
}

.login-legal-link {
  color: var(--clr-dark-gray);
  font-size: 16px;
  line-height: 19.2px;
  font-weight: 400;
}

.login-legal-link:hover {
  color: var(--clr-light-blue);
  font-weight: 700;
}

.login-join-logo {
  background-image: url(../assets/img/joinLogo.svg);
  height: 335px;
  width: 274px;
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  animation: moveLogo 1.5s forwards;
  display: none;
}

.login-join-logo-no-animation {
  background-image: url(../assets/img/joinLogo.svg);
  position: absolute;
  background-size: contain;
  background-repeat: no-repeat;
  top: 80px;
  left: 70px;
  width: 100px;
  height: 122px;
}

@keyframes moveLogo {
  0% {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 274px;
    height: 335px;
  }
  50% {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 274px;
    height: 335px;
  }
  100% {
    top: 80px;
    left: 70px;
    transform: translate(0, 0);
    width: 100px;
    height: 122px;
  }
}

.login-animation-bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  background-color: #f6f7f8;
  animation: fadeOut 1.5s forwards, changeZIndex 0s 1.5s forwards;
  display: none;
}

@keyframes fadeOut {
  0% {
    background-color: #f6f7f8;
    opacity: 1;
  }

  50% {
    background-color: #f6f7f8;
    opacity: 1;
  }

  100% {
    background-color: transparent;
    opacity: 0;
  }
}

@keyframes changeZIndex {
  0% {
    z-index: 1;
  }

  50% {
    z-index: 1;
  }

  100% {
    z-index: -1;
  }
}

.login-email-exists {
  display: none;
  margin-top: 4px;
  color: #ff8190;
  font-size: 12px;
  line-height: 14.4px;
  position: absolute;
}

.login-input-error {
  border: 2px solid #ff203b;
}

.login-input-error:focus-visible {
  border: 2px solid #ff203b;
}

.cursor-pointer {
  cursor: pointer;
}

@media (max-width: 950px) {
  .sign-up-container {
    gap: 35px;
    right: 70px;
  }
}
@media (max-width: 850px) {
  .login-content {
    padding: 0 16px 0 16px;
    flex-direction: column;
  }
  .sign-up-container {
    display: none;
  }
  .sign-up-container-mobile {
    display: flex;
    margin-top: 80px;
    gap: 24px;
  }
  @keyframes fadeOut {
    0% {
      background-color: var(--clr-main);
      opacity: 1;
    }

    50% {
      background-color: var(--clr-main);
      opacity: 1;
    }

    100% {
      background-color: transparent;
      opacity: 0;
    }
  }
  .login-join-logo-no-animation {
    top: 37px;
    left: 38px;
    width: 64px;
    height: 78px;
  }
  @keyframes moveLogo {
    0% {
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 100px;
      height: 122px;
      background-image: url(../assets/img/JoinLogoWhite.svg);
    }
    50% {
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 100px;
      height: 122px;
      background-image: url(../assets/img/JoinLogoWhite.svg);
    }
    100% {
      top: 37px;
      left: 38px;
      transform: translate(0, 0);
      width: 64px;
      height: 78px;
      background-image: url(../assets/img/joinLogo.svg);
    }
  }
  .login-card {
    max-width: 396px;
    width: 100%;
    height: 515px;
    min-height: 500px;
    background-color: white;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 32px 16px 32px 16px;
    box-shadow: 0px 0px 14px 3px #0000000a;
  }
  .login-seperator {
    width: 88px;
  }
  h1 {
    font-size: 47px;
    line-height: 56.4px;
  }
  .login-button-container {
    display: flex;
    gap: 21px;
    justify-content: center;
    margin-top: 32px;
    flex-direction: column;
    align-items: center;
  }
  .login-button-container button {
    height: 51px;
    font-size: 16px;
    width: 180px;
  }
  .sign-up-button {
    height: 49px;
    width: 104px;
  }
  .login-remember {
    padding-left: 16px;
  }
}

@media (max-width: 850px) and (max-height: 950px) {
  .sign-up-container-mobile {
    margin-top: 40px;
  }
}

@media (max-width: 850px) and (max-height: 900px) {
  .login-content {
    justify-content: unset;
    padding: 130px 16px 16px 16px;
  }
  .login-legal-links {
    bottom: 37px;
  }
}

@media (max-width: 850px) and (max-height: 820px) {
  .sign-up-container-mobile {
    margin-top: 20px;
  }
  .login-legal-links {
    position: static;
    margin-top: 20px;
  }
  .login-button-container {
    margin-top: 24px;
  }
  .login-remember {
    margin-top: 16px;
  }
}

@media (max-width: 650px) and (max-height: 775px) {
  .login-content {
    height: 100svh;
  }

  .login-input {
    height: 40px;
  }

  .input-container {
    gap: 24px;
  }

  .login-card {
    padding: 24px 16px 24px 16px;
    min-height: fit-content;
    height: fit-content;
  }

  .login-button-container {
    flex-direction: row;
    margin-top: 20px;
  }
  .login-button {
    width: 104px !important;
  }
  .guest-login-button {
    width: 160px !important;
  }

  .sign-up-container-mobile {
    margin-top: 40px;
  }

  .login-legal-links {
    margin-top: auto;
  }
}

@media (max-width: 650px) and (max-height: 700px) {
  .login-content {
    min-height: 650px;
  }
  .sign-up-container-mobile {
    margin-top: 20px;
  }
  .login-content {
    padding: 124px 16px 16px 16px;
  }
  .login-legal-links {
    height: 24px;
  }
  .login-button-container button {
    height: 49px;
  }
  .sign-up-button {
    height: 47px;
  }
  @keyframes moveLogo {
    0% {
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 100px;
      height: 122px;
      background-image: url(../assets/img/JoinLogoWhite.svg);
    }
    50% {
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 100px;
      height: 122px;
      background-image: url(../assets/img/JoinLogoWhite.svg);
    }
    100% {
      top: 16px;
      left: 38px;
      transform: translate(0, 0);
      width: 64px;
      height: 78px;
      background-image: url(../assets/img/joinLogo.svg);
    }
  }
  .login-join-logo-no-animation {
    top: 16px;
  }
  .login-content {
    padding: 110px 16px 16px 16px;
  }
}

@media (max-width: 430px) and (max-height: 700px) {
  .login-join-logo-no-animation {
    top: 16px;
    left: 16px;
    width: 64px;
    height: 78px;
  }
  .login-content {
    padding: 110px 16px 16px 16px;
  }
  @keyframes moveLogo {
    0% {
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 100px;
      height: 122px;
      background-image: url(../assets/img/JoinLogoWhite.svg);
    }
    50% {
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 100px;
      height: 122px;
      background-image: url(../assets/img/JoinLogoWhite.svg);
    }
    100% {
      top: 16px;
      left: 16px;
      transform: translate(0, 0);
      width: 64px;
      height: 78px;
      background-image: url(../assets/img/joinLogo.svg);
    }
  }
}
