.auth-modal {
  font-family: var(--font-family);
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  color: var(--general-green);
  background: rgba(33, 45, 33, 0.7);
  z-index: 50;
  display: none;
  justify-content: center;
  align-items: center;
}

.auth-modal.--show {
  display: flex;
}

.auth-modal__container {
  display: none;
  margin: 24px;
  max-width: 500px;
  width: 100%;
  border-radius: 24px;
  overflow: clip;
  background-color: var(--interface-colors-white);

  @media (min-width: 430px) {
    padding: 24px 0;
    border-radius: 24px;
    max-height: calc(100vh - 48px);
  }
  @media (max-width: 429px) {
    padding: 16px 0;
    border-radius: 16px;
    max-height: calc(100vh - 32px);
  }
}

.auth-modal__container.--active {
  display: block;
}

.auth-modal__container[data-step="terms_and_privacy"] {
  background-color: transparent;
}

.auth-modal .auth-modal__full-screen {
  @media (min-width: 430px) {
    max-width: 500px;
    height: auto;
    max-height: calc(100vh - 48px);
    border-radius: 24px;
    margin: 24px;
  }

  @media (max-width: 429px) {
    max-width: 100%;
    height: 100%;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }
}

.auth-modal__header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--interface-colors-grey-border);

  @media (min-width: 430px) {
    padding: 0 48px 24px;
  }
  @media (max-width: 429px) {
    padding: 0 40px 20px;
  }
}

.auth-modal__title {
  font-weight: 700;
  color: var(--general-green);
  text-align: center;

  @media (min-width: 430px) {
    font-size: 24px;
    line-height: 36px;
  }
  @media (max-width: 429px) {
    max-width: 226px;
    font-size: 18px;
    line-height: 24px;
  }
}

.auth-modal__title span {
  @media (min-width: 430px) {
    display: inline-block;
  }
  @media (max-width: 429px) {
    display: block;
  }
}

.auth-modal__close {
  position: absolute;
  top: 0;
  display: flex;
  border: none;
  padding: 0;
  background-color: transparent;

  @media (min-width: 430px) {
    right: 24px;
  }
  @media (max-width: 429px) {
    right: 16px;
  }
}

.auth-modal__content {
  overflow-y: auto;

  @media (min-width: 430px) {
    margin: 0 22px;
    padding: 20px 10px;
    max-height: calc(100vh - 48px - 57px - 48px);
  }
  @media (max-width: 429px) {
    margin: 0 10px;
    padding: 16px 6px;
    max-height: calc(100vh - 32px - 57px - 32px);
  }
}

.auth-modal__content::-webkit-scrollbar-track {
  background-color: transparent;
  border-radius: 8px;
}

.auth-modal__content::-webkit-scrollbar {
  width: 6px;
}

.auth-modal__content::-webkit-scrollbar-thumb {
  background-color: #b7b7b7;
  border-radius: 8px;
}

.auth-modal .auth-form__divider {
  @media (min-width: 430px) {
    margin: 20px 0;
  }
  @media (max-width: 429px) {
    margin: 16px 0;
  }
}

.auth-modal__full-screen form {
  @media (min-width: 430px) {
    height: auto;
  }
  @media (max-width: 429px) {
    height: 100%;
  }
}

.auth-modal__wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  @media (min-width: 430px) {
    height: auto;
    max-height: calc(100vh - 48px - 57px - 24px);
  }
  @media (max-width: 429px) {
    height: 100%;
    max-height: calc(100vh - 57px - 16px);
  }
}

.auth-modal__long-title .auth-modal__wrapper {
  @media (min-width: 430px) {
    height: auto;
    max-height: calc(100vh - 48px - 57px - 24px);
  }
  @media (max-width: 429px) {
    height: 100%;
    max-height: calc(100vh - 69px - 32px);
  }
}

.auth-modal__wrapper .auth-modal__content {
  @media (min-width: 430px) {
    max-height: calc(100vh - 48px - 57px - 48px - 88px);
  }
  @media (max-width: 429px) {
    max-height: calc(100vh - 32px - 57px - 32px);
  }
}

.auth-modal__footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--interface-colors-white);
}

.auth-modal__footer hr {
  @media (min-width: 430px) {
    margin: 0 0 20px 0;
  }
  @media (max-width: 429px) {
    margin: 0 0 16px 0;
  }
}

.auth-modal :is(.auth-form__buttons, .auth-form__submit) :is(a, button) {
  @media (min-width: 430px) {
    height: 44px;
  }
  @media (max-width: 429px) {
    height: 40px;
  }

  @media (min-width: 2100px) {
    font-size: 16px;
    line-height: 24px;
  }
  @media (min-width: 430px) and (max-width: 2099px) {
    font-size: 14px;
    line-height: 21px;
  }
  @media (max-width: 429px) {
    font-size: 12px;
    line-height: 18px;
  }
}

.auth-modal .auth-form__text-description {
  font-weight: 600;

  @media (min-width: 2100px) {
    font-size: 16px;
    line-height: 24px;
  }
  @media (min-width: 430px) and (max-width: 2099px) {
    font-size: 14px;
    line-height: 21px;
  }
  @media (max-width: 429px) {
    font-size: 12px;
    line-height: 18px;
  }
}

.auth-modal #verify_email_form .auth-form__info-block {
  @media (min-width: 430px) {
    margin: 32px 0;
  }
  @media (max-width: 429px) {
    margin: 24px 0;
  }
}

.auth-modal #complete_email_form .auth-form__info-block {
  @media (min-width: 430px) {
    margin: 32px 0 0;
  }
  @media (max-width: 429px) {
    margin: 16px 0;
  }
}

.auth-modal .auth-form__confirm-email {
  @media (min-width: 430px) {
    margin: 32px 0;
  }
  @media (max-width: 429px) {
    margin: 16px 0;
  }
}

.auth-modal__group-one .auth-modal__header {
  border-bottom: none;
}

.auth-modal__group-one .auth-modal__content {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;

  @media (min-width: 430px) {
    padding: 0 48px 20px;
  }
  @media (max-width: 429px) {
    padding: 0 32px 20px;
  }
}

.auth-modal__group-one .auth-notification__image svg {
  @media (min-width: 430px) {
    width: 84px;
    height: 68px;
  }
  @media (max-width: 429px) {
    width: 60px;
    height: 48px;
  }
}

.auth-modal__group-one .auth-notification__message {
  text-align: center;
  font-weight: 450;

  @media (min-width: 2100px) {
    font-size: 16px;
    line-height: 24px;
  }
  @media (min-width: 430px) and (max-width: 2099px) {
    font-size: 14px;
    line-height: 21px;
  }
  @media (max-width: 429px) {
    font-size: 12px;
    line-height: 18px;
  }
}

.auth-modal__group-one .auth-notification__title {
  font-weight: 700;
  margin-bottom: 12px;

  @media (min-width: 2100px) {
    font-size: 28px;
    line-height: 38px;
  }
  @media (min-width: 430px) and (max-width: 2099px) {
    font-size: 24px;
    line-height: 36px;
  }
  @media (max-width: 429px) {
    font-size: 18px;
    line-height: 27px;
  }
}

.auth-modal__group-one[data-step="auth_reset_password"] .auth-notification__title {
  margin-bottom: 0;
}

.auth-modal__group-one .auth-notification__btn a {
  display: inline-block;
  border: none;
}

#verification_failed_email_form .auth-form__info-block p {
  font-weight: 600;

  @media (min-width: 2100px) {
    font-size: 16px;
    line-height: 24px;
  }
  @media (min-width: 430px) and (max-width: 2099px) {
    font-size: 14px;
    line-height: 21px;
  }
  @media (max-width: 429px) {
    font-size: 12px;
    line-height: 18px;
  }
}

.auth-modal .my-32 {
  @media (min-width: 430px) {
    margin: 32px 0;
  }
  @media (max-width: 429px) {
    margin: 24px 0;
  }
}

.auth-modal .mt-32 {
  @media (min-width: 430px) {
    margin-top: 32px;
  }
  @media (max-width: 429px) {
    margin-top: 24px;
  }
}

.auth-form__resent-password-buttons,
.auth-form__resent-password-text {
  font-weight: 600;
  color: var(--general-green);

  @media (min-width: 2100px) {
    font-size: 16px;
    line-height: 24px;
  }
  @media (min-width: 430px) and (max-width: 2099px) {
    font-size: 14px;
    line-height: 21px;
  }
  @media (max-width: 429px) {
    font-size: 12px;
    line-height: 18px;
  }
}

.auth-form__resent-password-email {
  background-color: transparent;
  border: none;
  font-weight: 700;
  transition: color 0.3s;
}

.auth-form__resent-password-email:hover {
  color: var(--interface-colors-tags-green);
}

.auth-modal__container[data-step="auth_reset_password"] .auth-form__hint {
  margin-top: 0;
}
