[x-cloak] { display: none !important; }

/* ============================================================
   Рядышком — auth_v2 (login / register, белая версия).
   Split-panel layout: слева зелёная панель с фото, справа форма.
   ============================================================ */

.auth-v2 {
    --v2-green:        #1F9D55;
    --v2-green-hover:  #1A8B4A;
    --v2-green-soft:   #E7F4ED;
    --v2-green-pale:   #D6EEDC;
    --v2-text:         #111827;
    --v2-text-muted:   #6B7280;
    --v2-text-soft:    #9CA3AF;
    --v2-bg:           #F4F8FC;
    --v2-border:       #E5E7EB;
    --v2-input-bg:     #FDECEC;
    --v2-radius-md:    16px;

    margin: 0;
    background: #FFFFFF;
    color: var(--v2-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* убрать унаследованный декоративный blob и стандартные обёртки */
.auth-v2.landing:before { display: none; }
.auth-v2 main { padding: 0; margin: 0; min-height: auto; }

.auth-v2__wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background: #FFFFFF;
}

/* ----------------- Left: green panel with photo ----------------- */
.auth-v2__left {
    position: relative;
    overflow: hidden;
    background-color: #1F9D55;
    min-height: 100vh;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.auth-v2__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #FFF;
    font-size: 16px;
    text-transform: uppercase;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    gap: 8px;
}

.auth-v2__logo img {
    max-width: 34px;
}
.auth-v2__text {
    position: relative;
    z-index: 3;
    color: #FFF;
    font-size: 32px;
    font-style: normal;
    z-index: 3;
    font-weight: 700;
    line-height: 125%; /* 40px */
}

.auth-v2__logo {
    position: relative;
    z-index: 3;
}

.auth-v2__bg {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    overflow: hidden;
}

.auth-v2__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ----------------- Right: white form panel ----------------- */
.auth-v2__right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 56px 40px;
    background: #FFFFFF;
}

.auth-v2__form {
    width: 100%;
    max-width: 426px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-v2__title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #0F1710;
    text-align: center;
    margin: 0;
    margin-bottom: 0;
}

.auth-v2__subtitle {
    font-size: 15px;
    line-height: 1.5;
    color: #758194;
    margin-bottom: 4px;
    text-align: center;
    
    margin: -4px 0 0;
}

/* tabs (Email / Phone) */
.auth-v2__tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 4px;
    margin-top: 16px;
}
.auth-v2__tab {
    padding-bottom: 3px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    color: #0F1710;
    border-bottom: 2px solid #0F1710;
    opacity: .2;
    position: relative;
    transition: color 0.15s ease;
}

.auth-v2__tab.is-active {
    color: #0F1710;
    opacity: 1;
    border-color: #16A34A;
}
.auth-v2__tab:hover:not(.is-active) {
    color: var(--v2-text);
}

/* fields */
.auth-v2__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
}
.auth-v2__label {
    font-size: 16px;
    color: #0F1710;
    font-weight: 500;
    margin-bottom: 12px;
    text-align: center;
}
.auth-v2__input {
    height: 49px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid rgba(34, 197, 94, 0.25);
    background: #F7FCFA;
    font-size: 16px;
    color: var(--v2-text);
    transition: border-color 0.15s ease, background 0.15s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
}
.auth-v2__input.has_error {
    border-color: #FF9191;
    background: #FCF7F7;
}
.auth-v2__input::placeholder { color: rgba(117, 129, 148, 0.50); }
.auth-v2__input:focus {
    border-color: var(--v2-green);
    background: #FFF;
}

/* button */
.auth-v2__submit {
    height: 52px;
    width: 100%;
    padding: 0 28px;
    border-radius: 12px;
    background: #16A34A;
    box-shadow: 0 8px 13px -2px rgba(22, 128, 61, 0.35);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    transition: background 0.15s ease;
    font-family: inherit;
}
.auth-v2__submit:hover { background: #16A34A; }
.auth-v2__submit[disabled] { opacity: 0.55; cursor: not-allowed; }
.auth-v2__submit[disabled]:hover {
    background: #16A34A;
}
/* checkboxes */
.auth-v2__checkboxes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.auth-v2__checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--v2-text-muted);
    line-height: 1.45;
    cursor: pointer;
    user-select: none;
}
/* скрываем нативный */
.auth-v2__checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    margin-top: 1px;
    width: 20px;
    height: 20px;
    border: 1.5px solid #16A34A;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
}
/* checked state — зелёный фон + белая галочка */
.auth-v2__checkbox input[type="checkbox"]:checked {
    background-color: #16A34A;
    border-color: #16A34A;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 12 10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 5l3.5 3.5L11 1' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* фокус для доступности */
.auth-v2__checkbox input[type="checkbox"]:focus-visible {
    outline: 2px solid #16A34A;
    outline-offset: 2px;
}
/* Красный бордер чекбокса согласия при попытке сабмита без галочки */
.auth-v2__checkbox input[type="checkbox"].is-invalid {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
.auth-v2__checkbox a {
    color: #16A34A;
    text-decoration: underline;
}

/* bottom link */
.auth-v2__alt {
    text-align: center;
    font-size: 14px;
    margin-top: 16px;
    color: #758194;
}
.auth-v2__alt a {
    color: #16A34A;
    text-decoration: underline;
    font-weight: 500;
    margin-left: 4px;
}
.auth-v2__alt a:hover { color: var(--v2-green); }

/* errors */
.auth-v2__error {
    font-size: 13px;
    color: #DC2626;
    margin-top: 4px;
}
.auth-v2__alert {
    padding: 12px 16px;
    border-radius: 10px;
    background: #FEF2F2;
    color: #B91C1C;
    font-size: 14px;
    line-height: 1.45;
}

.auth-v2__alert a {
    color: #16A34A;
}

/* ============================================================
   Code confirm — 4 digit inputs
   ============================================================ */
.auth-v2__digits {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 8px;
}

.auth-v2__digit {
    width: 38px;
    height: 49px;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    color: var(--v2-text);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 10px;
    background: #F7FCFA;
    outline: none;
    font-family: inherit;
    caret-color: var(--v2-green);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    -moz-appearance: textfield;
}
.auth-v2__digit::-webkit-outer-spin-button,
.auth-v2__digit::-webkit-inner-spin-button { -webkit-appearance: none; }
.auth-v2__digit:focus {
    border-color: var(--v2-green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}



.auth-v2__label_login {
    margin-bottom: 0;
    text-align: left;
    font-size: 12px;
}

/* ============================================================
   Tablet (769–1024)
   ============================================================ */
@media (max-width: 1024px) and (min-width: 769px) {
    .auth-v2__right { padding: 48px 32px; }
    .auth-v2__title { font-size: 28px; }
}

@media(max-height: 815px) and (min-width: 769px) {
    .cv-auth__persona img {
        max-width: 203px!important;

    }
    .cv-auth__persona {
        bottom: 385px!important;
    }
}

/* ============================================================
   Mobile (≤768)
   ============================================================ */
   .mob {
    display: none;
   }
@media (max-width: 768px) {
    .mob {
        display: block;
    }
    .desc {
        display: none;
    }
    .auth-v2__wrap {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        background: url('/offers/smspoisk/images/v2/gradient.jpg') no-repeat center top;
        background-size: cover;
    }
    .auth-v2__left {
        min-height: 291px;
        background: transparent;
    }

    .auth-v2__bg img {
        width: 226px;
        height: auto;
        margin-bottom: -40px;
    }
    .auth-v2__right {
        margin-left: 20px;
        margin-right: 20px;
        margin-bottom: 70px;
        border-radius: 28px;
    }
    .auth-v2__logo {
        display: flex;
        width: 100%;
        justify-content: center;
    }
    .auth-v2__bg {
        display: flex;
        justify-content: center;
        align-items: flex-end;
    }
    .auth-v2__right {
        padding: 32px 20px 40px;
    }
    .auth-v2__form { max-width: 100%; }
    .auth-v2__title { font-size: 24px; }
    .auth-v2__text {
        display: none;
    }
    .auth-v2__tabs {
        margin-top: 16px;
    }
    .auth-v2__right {
        padding-top: 24px;
        padding-bottom: 24px;
    }
    .auth-v2__right {
        justify-content: start;
    }
    .auth-v2__label {
        margin-bottom: 8px;
    }
}

/* "Примите условия" — ошибка по клику на готовую (всегда яркую) кнопку */
.cv2-terms-error {
    margin-top: 10px;
    font-size: 13px;
    color: #dc2626;
    line-height: 1.3;
    text-align: center;
}
