/* =============================================
   AUTH PAGE — Страница авторизации
   ============================================= */

.auth-page {
  width: 100%;
  padding: 0 0 80px 0;
}

.auth-page__container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 0;
}

.auth-page__title {
  font-family: "PT Astra Serif", serif;
  font-size: 48px;
  font-style: italic;
  font-weight: 700;
  line-height: 1.2;
  color: #005C67;
  margin: 0 0 40px 0;
  text-align: center;
}

/* ===== Form ===== */
.auth-page__form {
  display: flex;
  flex-direction: column;
  align-items: center; /* центрируем контент формы */
}

/* ===== TOP ERROR ===== */
.auth-page__top-error {
  width: 100%;
  max-width: 760px;
  margin-bottom: 30px;
  display: none;
}

.auth-page__top-error.is-active {
  display: block;
}

.auth-page__top-error-inner {
  border: none;
  background: transparent;
  padding: 0 0 0 30px; /* слева 30 как ты хочешь */
  color: #E61734;
  font-family: "tt-commons-pro", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
}

/* убираем голубую заливку автозаполнения Chrome/Safari */
.auth-page__input:-webkit-autofill,
.auth-page__input:-webkit-autofill:hover,
.auth-page__input:-webkit-autofill:focus,
.auth-page__input:-webkit-autofill:active {
  -webkit-text-fill-color: #222322;
  transition: background-color 9999s ease-out 0s;
  -webkit-box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0) inset;
          box-shadow: 0 0 0px 1000px rgba(255, 255, 255, 0) inset;
}


/* ===== Field (max 760, fluid) ===== */
.auth-page__field {
  width: 100%;
  max-width: 760px;
  position: relative;
  padding-bottom: 40px; /* РЕЗЕРВ под ошибку */
}

/* ===== Label ===== */
.auth-page__label {
  display: block;
  font-family: "tt-commons-pro", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #929292;
  margin-bottom: 30px; /* от названия до поля 30px */
  line-height: 120%;
  font-style: normal;
}

/* ===== Input wrap ===== */
.auth-page__input-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid #000;
  border-radius: 4px;
  transition: border-color 0.2s ease;
}

/* Hover/Focus */
.auth-page__input-wrap:hover { border-color: #005C67; }
.auth-page__input-wrap:focus-within { border-color: #005C67; }

/* Error state */
.auth-page__input-wrap.has-error { border-color: #e61734; }
.auth-page__input-wrap.has-error:hover,
.auth-page__input-wrap.has-error:focus-within { border-color: #e61734; }

/* ===== Input ===== */
.auth-page__input {
  background: none;
  border: none;
  color: #222322;
  flex: 1 1 auto;
  font-family: "tt-commons-pro", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
  outline: none;
  padding: 17px;
  width: 100%;
}

.auth-page__input::placeholder {
  color: rgba(34, 35, 34, 0.8);
  font-family: "tt-commons-pro", sans-serif;
  font-size: 16px;
  font-weight: 400;
  opacity: 0.5;
}

.auth-page__input:focus::placeholder { opacity: 0; }

/* ===== Eye button ===== */
.auth-page__eye {
  border: 0;
  background: transparent;
  padding: 0 16px 0 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.auth-page__eye img {
  display: block;
}

/* ===== Error slot (absolute pocket, no layout shift) ===== */
.auth-page__field-error {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: 40px;
  display: flex;
  align-items: flex-start;
  padding-left: 30px; /* слева 30px для ошибки */
}

/* ===== Error block ===== */
.auth-page__error {
  backdrop-filter: blur(2px);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 4px;
  color: #E61734;
  display: inline-flex;
  font-family: "tt-commons-pro", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  padding: 6px 10px;
  margin: 0;
   
}

/* ===== CAPTCHA ===== */
.auth-page__captcha-img {
  display: block;
  margin: 0 0 12px 0;
  border-radius: 4px;
}

/* ===== Forgot (same color as labels) ===== */
.auth-page__forgot {
  width: 100%;
  max-width: 760px;
  margin-top: 10px;
  margin-bottom: 20px;
  text-align: left;
}

.auth-page__forgot-link {
  font-family: "tt-commons-pro", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #929292;
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

.auth-page__forgot-link:hover { opacity: 0.75; }
.auth-page__forgot-link:active { text-decoration: none; }

/* ===== Remember (center) ===== */
.auth-page__remember {
  width: 100%;
  max-width: 760px;
  display: flex;
  justify-content: center; /* по центру формы */
  margin-bottom: 24px;
}

.auth-page__remember-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.auth-page__checkbox {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: 1px solid #000;
  border-radius: 4px;
  cursor: pointer;
  height: 20px;
  width: 20px;
  min-width: 20px;
  flex-shrink: 0;
  transition: border-color 0.2s ease;
}

.auth-page__checkbox:hover { border-color: #005C67; }

.auth-page__checkbox:checked {
  background-image: url('/local/templates/my/images/icons/mynaui_check-solid.svg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  border-color: #000;
}

.auth-page__remember-text {
  font-family: "tt-commons-pro", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #929292;
  line-height: 120%;
  font-style: normal;
}

/* ===== Button (358, centered) ===== */
.auth-page__btn {
  width: 358px;
  max-width: 100%;
  padding: 16px 24px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  align-self: center;
  border: 1px solid #005C67;
  background: #005C67;
  color: #fff;
  border-radius: 4px;
  font-family: "tt-commons-pro", sans-serif;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  line-height: 12.6px;
  letter-spacing: 1.12px;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  margin: 24px 0 24px 0;
}

.auth-page__btn:hover {
  background: transparent;
  border-color: #005C67;
  color: #005C67;
}

.auth-page__btn:active {
  background: #F6881B;
  border-color: #F6881B;
  color: #fff;
}

.auth-page__btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ===== Bottom register text ===== */
.auth-page__bottom {
  width: 100%;
  max-width: 760px;
  text-align: center;
}

.auth-page__bottom-text,
.auth-page__bottom-link {
  font-family: "tt-commons-pro", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #929292;
  line-height: 120%;
  font-style: normal;
}

.auth-page__bottom-link {
  text-decoration: underline;
  transition: opacity .2s ease;
}

.auth-page__bottom-link:hover { opacity: .75; }
.auth-page__bottom-link:active { text-decoration: none; }

/* сцена вокруг формы, чтобы от неё считать отступы */
.auth-page__scene{
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

/* сама форма уже у тебя центрится, оставим */
.auth-page__form{
    width: 100%;
  max-width: 760px;
  position: relative;
  z-index: 2; /* форма над декором */
}

/* общие стили декора */
.auth-page__decoration{
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  height: auto;
  pointer-events: none;
  user-select: none;
  z-index: 1;
}

/* ЛЕВАЯ: максимум 261x309 и от формы 60px */
.auth-page__decoration--left{
  width: 261px;
  max-width: 261px;
  right: 100%;
  margin-right: 60px;
}

/* ПРАВАЯ: максимум 325x319 и от формы 120px */
.auth-page__decoration--right{
  width: 325px;
  max-width: 325px;
  left: 100%;
  margin-left: 120px;
}

/* ограничение по высоте (макс), если хочешь строго */
.auth-page__decoration--left{ max-height: 309px; }
.auth-page__decoration--right{ max-height: 319px; }

/* ===== Confirm Page Alert ===== */
.confirm-page .auth-page__scene {
    flex-direction: column;
    align-items: center;
}

.confirm-page__alert {
    width: 100%;
    max-width: 760px;
    padding: 16px 20px;
    border-radius: 4px;
    margin-bottom: 30px;
    font-family: "tt-commons-pro", sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 140%;
    text-align: center;
    order: -1;
}

.confirm-page__alert--success {
    background: #E7F8EE;
    border: 1px solid #BEE9CC;
    color: #0C6B2E;
}

.confirm-page__alert--warning {
    background: #FFF8E6;
    border: 1px solid #FFE0A3;
    color: #856404;
}

.confirm-page__alert--danger {
    background: #FFF3F5;
    border: 1px solid #E61734;
    color: #E61734;
}

/* ===== Confirm Success ===== */
.confirm-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    width: 100%;
    max-width: 760px;
}

.confirm-success__text {
    color: #3B3B3B;
    text-align: center;
    font-family: "PT Astra Serif", serif;
    font-size: 24px;
    font-style: italic;
    font-weight: 500;
    line-height: 130%;
    margin-bottom: 40px;
}

.confirm-success__image {
    width: 406px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-top: 50px;
}

.confirm-success .auth-page__bottom {
    margin-top: 0;
}

.auth-page__field[data-field="password"] .auth-page__field-error {
  bottom: -20px;

}

.auth-page__field[data-field="login"] .auth-page__field-error {
  bottom: -12px;

}

.reg-page .auth-page__btn[type="submit"] {


}

.auth-page__buttons-row .auth-page__btn {
    width: auto;
    flex: 1 1 0;
    min-width: 140px;
    max-width: 358px;
}

.auth-page__buttons-row {
    width: 100%;
    max-width: 760px;
}

/* ===== Profile page title отступы ===== */
.profile-page .auth-page__title {
    margin-bottom: 110px;
}


/* ===== AUTH PAGE — RESPONSIVE ===== */

/* ===== AUTH PAGE — RESPONSIVE ===== */
/* ===== AUTH PAGE — RESPONSIVE ===== */
/* 1600px */
@media (max-width: 1600px) {
    .auth-page__decoration--right {
        margin-left: 60px;
    }
}

/* 1400px */
@media (max-width: 1400px) {
    .auth-page__decoration--left {
        width: 220px;
        right: 100%;
        margin-right: -30px;
    }

    .auth-page__decoration--right {
        width: 260px;
        left: 100%;
        margin-left: -40px;
    }

    .auth-page__form {
        max-width: 680px;
    }

    .auth-page__top-error {
        max-width: 680px;
    }
}

/* 1200px */
@media (max-width: 1200px) {
    .auth-page__decoration--left {
        width: 180px;
        margin-right: -90px;
    }

    .auth-page__decoration--right {
        width: 220px;
        margin-left: -90px;
    }

    .auth-page__form {
        max-width: 560px;
    }

    .auth-page__top-error {
        max-width: 560px;
    }
}
/* 1024px — картинки под форму, форма на всю ширину контейнера */
@media (max-width: 1024px) {
    

    .auth-page__error {

  font-size: 12px;

}
    .auth-page__title {
        font-size: 48px;
    }

    .profile-page .auth-page__title {
        margin-bottom: 80px;
    }

    .auth-page__scene {
        flex-direction: column;
        align-items: center;
        padding-bottom: 220px;
        position: relative;
    }

    .auth-page__form {
        max-width: 100%;
    }

    .auth-page__top-error {
        max-width: 100%;
    }

    .auth-page__field {
        max-width: 100%;
    }

    .auth-page__forgot {
        max-width: 100%;
    }

    .auth-page__remember {
        max-width: 100%;
    }

    .auth-page__bottom {
        max-width: 100%;
    }

    .auth-page__decoration {
        position: absolute;
        top: auto;
        bottom: 0;
        transform: none;
    }

        .auth-page__decoration--left {
        width: 140px;
        left: 10%;
                right: auto;
        margin: 0;
    }

    .auth-page__decoration--right {
        width: 220px;
        right: 10%;
        bottom: -50px;
                left: auto;
        margin: 0;
    }

    
}
/* 768px */
@media (max-width: 768px) {
    .auth-page__title {
        font-size: 48px;
    }

    .auth-page__form {
        max-width: 100%;
    }

    .auth-page__top-error {
        max-width: 100%;
    }

    .auth-page__decoration--left {
        width: 140px;
        left: 10%;
    }

    .auth-page__decoration--right {
        width: 220px;
        right: 10%;
        bottom: -50px;
    }
}

/* 580px */
@media (max-width: 580px) {
    .auth-page {
        padding-bottom: 40px;
    }

    .auth-page__scene {
        padding-bottom: 240px;
    }

    .auth-page__decoration--left {
        width: 180px;
        left: 10%;
        bottom: -10px;
    }

    .auth-page__decoration--right {
        width: 140px;
        right: 10%;
          bottom: 70px;
    }

    .auth-page__field {
        padding-bottom: 30px;
    }

    .auth-page__btn {
        width: 100%;
    }

    .auth-page__bottom-text,
    .auth-page__bottom-link {
        font-size: 14px;
    }

    .auth-page__forgot-link {
        font-size: 14px;
    }

    .auth-page__remember-text {
        font-size: 14px;
    }

    .profile-page .auth-page__title {
        margin-bottom: 60px;
    }

    .auth-page__title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .auth-page__label {
        margin-bottom: 18px;
    }

    .auth-page__top-error {
        margin-bottom: 18px;
    }
}

/* 420px */
@media (max-width: 420px) {
    .auth-page__scene {
        padding-bottom: 240px;
    }
    .auth-page__decoration--left {
        width: 170px;
        left: 2%;
        bottom: -10px;
    }

    .auth-page__decoration--right {
        width: 140px;
        right: 2%;
        bottom: 70px;
    }

    .auth-page__buttons-row .auth-page__btn {
        min-width: 140px;
    }

        .auth-page__buttons-row .auth-page__btn {
        min-width: 170px;
    }
}


/* 420px */
@media (max-width: 380px) {
.reg-page .auth-page__field[data-field="password"] {
        padding-bottom: 105px;
    }
}
