/* Main content */
.login-page,
.register-page,
.forgot-password-page,
.new-password-page {
  background: var(--white1);
  min-height: 100dvh;
  height: 100%;
  display: flex;
}

.login-page-form,
.register-page-form,
.forgot-password-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  background: var(--white1);
  box-shadow: 0px 2px 16px rgba(31, 31, 31, 0.04);
  border-radius: 20px;
  margin: 32px auto;
  padding: 24px;
  transition: padding 0.4s ease;
}

/* Login page content */
.login-page-form {
  .h3 {
    margin-bottom: 24px;
  }

  .input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
    width: 100%;
  }

  .user-mail {
    width: 100%;
  }

  .user-password {
    width: 100%;
  }

  .password-wrapper {
    position: relative;
    width: 100%;
  }

  .toggle-password {
    position: absolute;
    background: unset;
    border: unset;
    height: 40px;
    width: 40px;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    cursor: pointer;
  }

  .toggle-password img {
    height: 100%;
    width: 100%;
    -o-object-fit: contain;
       object-fit: contain;
    -o-object-position: center;
       object-position: center;
  }

  .forgot-psw-link,
  .no-acc-link {
    color: var(--black3);
    transition: color 0.4s ease;
  }

  .forgot-psw-link {
    margin-bottom: 16px;
    margin-left: auto;
  }

  .forgot-psw-link:hover {
    color: var(--green2);
  }

  .no-acc-link {
    margin-top: 24px;
  }

  .no-acc-link a {
    color: var(--green1);
    transition: color 0.4s ease;
  }

  .no-acc-link a:hover {
    color: var(--green2);
  }

  .btn-component {
    height: 50px;
    border: unset;
    align-items: center;
    cursor: pointer;
  }

  .msg-error {
    margin-top: 0;
  }
}

/* Register page content */
.register-page-form {
  .h3 {
    margin-bottom: 24px;
  }

  .input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin-bottom: 12px;
  }

  .input-wrapper input {
    width: 100%;
  }

  .password-wrapper {
    position: relative;
    width: 100%;
  }

  .toggle-password {
    position: absolute;
    background: unset;
    border: unset;
    height: 40px;
    width: 40px;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    cursor: pointer;
  }

  .toggle-password img {
    height: 100%;
    width: 100%;
    -o-object-fit: contain;
       object-fit: contain;
    -o-object-position: center;
       object-position: center;
  }

  .have-acc-link {
    color: var(--black3);
    margin-top: 24px;
  }

  .have-acc-link a {
    color: var(--green1);
    transition: color 0.4s ease;
  }

  .have-acc-link a:hover {
    color: var(--green2);
  }

  .btn-component {
    height: 50px;
    border: unset;
    align-items: center;
    cursor: pointer;
  }

  .checkbox-input-privacy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin-bottom: 12px;
    color: var(--black);
  }
  .checkbox-input-privacy a,
  .checkbox-input-cookies a {
    color: var(--green1);
    text-decoration: underline;
    -webkit-text-decoration-color: transparent;
            text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: color 0.4s ease, -webkit-text-decoration-color 0.4s ease;
    transition: color 0.4s ease, text-decoration-color 0.4s ease;
    transition: color 0.4s ease, text-decoration-color 0.4s ease, -webkit-text-decoration-color 0.4s ease;
  }
  .checkbox-input-privacy a:hover,
  .checkbox-input-cookies a:hover {
    -webkit-text-decoration-color: var(--green1);
            text-decoration-color: var(--green1);
  }
  .checkbox-input-privacy a span,
  .checkbox-input-cookies a span {
    color: var(--black);
  }
  .checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .checkbox-input-cookies {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    margin-bottom: 16px;
    color: var(--black);
  }
}

/* Forgot-password page */
.forgot-password-form {
  .h3 {
    margin-bottom: 24px;
    text-align: center;
  }

  .forgot-password-content {
    color: var(--black3);
    margin-bottom: 24px;
    text-align: center;
  }

  .input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin-bottom: 12px;
  }

  .input-wrapper input {
    width: 100%;
  }

  .password-wrapper {
    position: relative;
    width: 100%;
  }

  .toggle-password {
    position: absolute;
    background: unset;
    border: unset;
    height: 40px;
    width: 40px;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    cursor: pointer;
  }

  .toggle-password img {
    height: 100%;
    width: 100%;
    -o-object-fit: contain;
       object-fit: contain;
    -o-object-position: center;
       object-position: center;
  }

  .have-acc-link {
    color: var(--black3);
    margin-top: 24px;
  }

  .have-acc-link a {
    color: var(--green1);
    transition: color 0.4s ease;
  }

  .have-acc-link a:hover {
    color: var(--green2);
  }

  .btn-component {
    height: 50px;
    border: unset;
    align-items: center;
    cursor: pointer;
  }
}

/* Forgot password natification */
.forgot-password-notification {
  .h3 {
    margin-bottom: 16px;
  }
  .body4 {
    color: var(--black3);
    text-align: center;
  }
}

/* Registration */
.input-wrapper input.error {
  border: 2px solid var(--red1);
}
.msg-error {
  color: var(--red1);
  font-size: 12px;
  margin-top: 4px;
}

#register-btn.disabled-opacity {
  opacity: 0.5;
  pointer-events: none; /* prevents clicking */
}

/* Responsive */
@media (max-width: 768px) {
  .login-page-form,
  .register-page-form,
  .forgot-password-form {
    padding: 24px 16px;
  }

  .login-page-form {
    .input-wrapper {
      margin-bottom: 8px;
    }

    .btn-component {
      height: 45px;
    }
  }

  .register-page-form {
    .input-wrapper {
      margin-bottom: 8px;
    }

    .btn-component {
      height: 45px;
    }
  }

  .forgot-password-form {
    .input-wrapper {
      margin-bottom: 8px;
    }

    .btn-component {
      height: 45px;
    }
  }
}
