/* register page additions (использует базовые .auth-page__* стили авторизации) */

/* сетка имя+фамилия */
.reg-page__row{
  width: 100%;
  max-width: 760px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

/* половинки не должны иметь свой max-width, берут от grid */
.reg-page__field-half{
  max-width: none;
}

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

/* Элемент с ОБОИМИ классами */
.auth-page__decoration--left.register {
  width: auto;
  max-width: 197px;
  max-height: 321px;
  bottom: 0;
  top: 65%;
  transform: none;
  right: 100%;
  margin-right: 60px;
}

.auth-page__decoration--right.register {
  width: auto;
  max-width: 469px;
  max-height: 291px;
  top: -3%;
  transform: translateY(-50%);
  left: 92%;
  margin-left: 60px;
}

.reg-page__decoration--left{ max-height: 321px; }
.reg-page__decoration--right{ max-height: 291px; }

.auth-page__req{
  color:#E61734;
  font-weight:500;
  margin-left:6px;
}

/* ===== Кнопки редактирования профиля ===== */
.auth-page__buttons-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 30px;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 760px;
}

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

/* ===== Profile page title ===== */
.profile-page .auth-page__title {
    margin-bottom: 110px;
}

/* ===== Register Success ===== */
.reg-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    position: relative;
    padding-bottom: 220px;
}

.reg-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;
}

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

/* Рыба сверху по центру на success */
.reg-success__fish {
    width: 300px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
}

/* Мальчик внизу слева на success */
.reg-success__boy {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 140px;
    height: auto;
    object-fit: contain;
    pointer-events: none;
}

/* ===== 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;
}


/* =============================================
   RESPONSIVE
   ============================================= */

/* 1800px */
@media (max-width: 1800px) {
    .auth-page__decoration--right.register {
        width: 400px;
        max-width: 400px;
        margin-left: -40px;
        left: 95%;
    }

    .auth-page__decoration--left.register {
        margin-right: -20px;
    }
}

/* 1400px */
@media (max-width: 1400px) {
    .auth-page__decoration--right.register {
        width: 400px;
        max-width: 400px;
        margin-left: -40px;
        left: 90%;
    }

    .auth-page__decoration--left.register {
        margin-right: -60px;
    }

    .reg-page .auth-page__field {
        padding-bottom: 50px;
    }

    .reg-page .auth-page__field[data-field="password"] {
        padding-bottom: 50px;
    }
}

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

    .auth-page__decoration--left.register {
        width: 160px;
        max-width: 160px;
        margin-right: -100px;
    }

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

    .reg-page .reg-page__row {
        max-width: 560px;
    }

    .reg-page .auth-page__field[data-field="password"] {
        padding-bottom: 50px;
    }
}

/* 1024px — планшет */
@media (max-width: 1024px) {
    .reg-page .auth-page__container {
        position: relative;
        padding-top: 200px;
        padding-left: 40px;
        padding-right: 40px;
    }

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

    .reg-page .reg-page__row {
        max-width: 100%;
    }

    .reg-page .auth-page__field {
        max-width: 100%;
        padding-bottom: 50px;
    }

    .reg-page .auth-page__field[data-field="password"] {
        padding-bottom: 60px;
    }

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

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

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

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

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

    .auth-page__decoration--right.register {
        display: block;
        position: absolute;
        top: -270px;
        left: 80%;
        transform: translateX(-50%);
        right: auto;
        bottom: auto;
        margin: 0;
        width: 300px;
        max-width: 300px;
    }

    .auth-page__decoration--left.register {
        display: block;
        position: absolute;
        top: auto;
        bottom: 0;
        left: 0;
        right: auto;
        transform: none;
        margin: 0;
        width: 140px;
        max-width: 140px;
    }

    .reg-page .auth-page__title {
        margin-bottom: 30px;
    }

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

    .reg-page.auth-page .auth-page__field[data-field="password"] .auth-page__field-error {
        bottom: -10px;
    }

    /* Success на планшете — рыба сверху в зарезервированном месте */
    .reg-success__fish {
        position: absolute;
        top: -270px;
        left: 80%;
        transform: translateX(-50%);
        width: 300px;
        max-width: 300px;
        margin: 0;
    }

    .reg-success__boy {
        width: 140px;
        left: 0;
    }

        .reg-success__text {
        font-size: 20px;
    }
}

/* 768px */
@media (max-width: 768px) {
    .reg-page .auth-page__container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .auth-page__decoration--right.register {
        width: 250px;
        max-width: 250px;
    }

    .auth-page__decoration--left.register {
        width: 120px;
        max-width: 120px;
    }

    .reg-success__fish {
        width: 250px;
        max-width: 250px;
    }

    .reg-success__boy {
        width: 120px;
    }
}

/* 580px — мобилка */
@media (max-width: 580px) {
    .reg-page .auth-page__container {
        padding-left: 16px;
        padding-right: 16px;
        padding-top: 0;
    }

    .reg-page .auth-page__scene {
        padding-bottom: 280px;
    }

    .reg-page .auth-page__field {
        padding-bottom: 45px;
    }

    .reg-page .auth-page__field[data-field="password"] {
        padding-bottom: 70px;
    }

    .auth-page__decoration--right.register {
        position: absolute;
        top: auto;
        bottom: 80px;
        right: 5%;
        left: auto;
        transform: none;
        margin: 0;
        width: 250px;
        max-width: 250px;
        order: unset;
        align-self: auto;
    }

    .auth-page__decoration--left.register {
        position: absolute;
        bottom: 0;
        left: 5%;
        width: 100px;
        max-width: 100px;
    }

    .reg-page .reg-page__row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .reg-page .auth-page__title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .reg-page .auth-page__btn {
        width: 100%;
    }

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

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

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

    .reg-page .auth-page__buttons-row .auth-page__btn {
        min-width: 140px;
        padding: 14px 12px;
    }

    /* Success на мобилке — обе картинки внизу */
    .reg-success {
        padding-bottom: 280px;
    }

    .reg-success__fish {
        position: absolute;
        top: auto;
        bottom: 80px;
        right: 5%;
        left: auto;
        transform: none;
        width: 250px;
        max-width: 250px;
    }

    .reg-success__boy {
        width: 100px;
        left: 5%;
    }

    .reg-success__text {
        font-size: 16px;
        margin-bottom: 30px;
    }
}

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

/* 420px */
@media (max-width: 420px) {
    .reg-page .auth-page__scene {
        padding-bottom: 240px;
    }

    .auth-page__decoration--right.register {
        width: 200px;
        max-width: 200px;
        bottom: 60px;
    }

    .auth-page__decoration--left.register {
        width: 80px;
        max-width: 80px;
    }

    .reg-page .auth-page__buttons-row .auth-page__btn {
        min-width: 140px;
        padding: 14px 12px;
    }

    .reg-success {
        padding-bottom: 240px;
    }

    .reg-success__fish {
        width: 200px;
        max-width: 200px;
        bottom: 60px;
    }

    .reg-success__boy {
        width: 80px;
    }
}

/* 360px */
@media (max-width: 360px) {
    .reg-page .auth-page__container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .reg-page .auth-page__scene {
        padding-bottom: 200px;
    }

    .auth-page__decoration--right.register {
        width: 170px;
        max-width: 170px;
        bottom: 50px;
    }

    .auth-page__decoration--left.register {
        width: 70px;
        max-width: 70px;
    }

    .reg-page .auth-page__buttons-row .auth-page__btn {
        min-width: 120px;
        padding: 12px 10px;
        letter-spacing: 0.8px;
    }

    .reg-success {
        padding-bottom: 200px;
    }

    .reg-success__fish {
        width: 170px;
        max-width: 170px;
        bottom: 50px;
    }

    .reg-success__boy {
        width: 70px;
    }
}

/* min-width для кнопок профиля */
@media (min-width: 420px) {
    .reg-page .auth-page__buttons-row .auth-page__btn {
        min-width: 170px;
    }
}