.auth-error__wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

.auth-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  width: 100%;
  max-width: 632px;

  @media (max-width: 500px) {
    gap: 24px;
  }

  @media (max-width: 400px) {
    gap: 20px;
  }
}

.auth-error__title {
  display: inline-flex;
  flex-direction: column;
  width: 100%;
  text-align: center;
  margin: 0;

  @media (max-width: 500px) {
    display: inline;
    max-width: 300px;
    line-height: 100%;
  }

  @media (max-width: 400px) {
    max-width: 236px;
    line-height: 90%;
  }
}

.auth-error__title__text {
  margin-bottom: 0;
  font-size: 24px;
  font-weight: 600;

  @media (max-width: 500px) {
    font-size: 22px;
  }

  @media (max-width: 400px) {
    font-size: 20px;
  }
}

.auth-error__logo {
  display: flex;
  justify-content: center;
  max-width: 130px;
  width: 100%;
  max-height: 130px;

  @media (max-width: 600px) {
    max-width: 100px;
    max-height: 100px;
  }

  @media (max-width: 500px) {
    max-width: 80px;
    max-height: 80px;
  }

  @media (max-width: 400px) {
    max-width: 64px;
    max-height: 64px;
  }
}

.auth-error__logo__img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.auth-error__info {
  width: 100%;
  max-width: 732px;
}

.auth-error__info__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-error__info__list-item {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  font-weight: 400;

  @media (max-width: 400px) {
    padding-left: 16px;
    font-size: 12px;
  }
}

.auth-error__info__list-item::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--auth-error-list-marker-color, #000);

  @media (max-width: 400px) {
    width: 6px;
    height: 6px;
  }
}

.auth-error__buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 10px;

  @media (max-width: 600px) {
    flex-direction: column;
    gap: 10px;

    .auth-error__buttons__button,
    .auth-error__buttons__button--transparent {
      width: 100%;
    }
  }
}

/* Стили для модального окна ошибки авторизации */
#page-login-index {
  .modal-dialog[role="document"][data-region="modal"]:has(.auth-error__wrapper) {
    align-items: center;
    max-width: fit-content;
    height: 100vh;
    margin: 0 auto;

    .modal-header {
      height: 0;
      padding: 0;

      button.close {
        display: none;
      }
    }

    .modal-body {
      padding: 50px;

      @media (max-width: 500px) {
        padding: 30px;
      }

      @media (max-width: 400px) {
        padding: 20px;
      }
    }

    .auth-error__buttons {
      max-width: 632px;
    }

    .auth-error__close {
      position: absolute;
      top: -30px;
      right: -30px;
      width: 24px;
      height: 24px;
      border: 0;
      background: transparent;
      box-shadow: none;
      font-size: 24px;
      line-height: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0;
      cursor: pointer;
      z-index: 2;

      .auth-error__close-icon {
        fill: #919195;
      }

      @media (max-width: 500px) {
        top: -10px;
        right: -10px;
      }

      @media (max-width: 400px) {
        top: 0;
        right: 0;
      }
    }
  }
}

/* Стили для страницы ошибки авторизации (при отключенном JS) */
#page-auth-edu-error-index:has(.auth-error__wrapper) {
  #region-main-box {
    padding-left: 0;

    #region-main {
      display: flex;
      justify-content: center;
      align-items: center;
      max-width: none;
      height: 100%;
      margin: 0 auto;
    }
  }

  #page-footer {
    margin-left: 0;
  }

  .container-fluid {
    max-width: none;
  }

  .auth-error__close {
    display: none;
  }
}
