

/* Контейнер модалки */
.auth-modal .modal-dialog {
    max-width: 1111px;
    width: 100%;
    margin: 30px auto;
}

.auth-card {
    display: grid;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
    grid-template-columns: 345px 765px;
}

.auth-card__close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border-radius: 8px !important;
    border: 2px solid #EF9A06 !important;
    background: #FFF !important;
    opacity: .8 !important;
    transition: .2s;
}

.auth-card__close:hover {
    opacity: 1 !important;
    background: #EF9A06 !important;
}

.auth-card__close svg {
    width: 16px;
    height: 16px;
    stroke: #374355;
    transition: .2s;
}

.auth-card__close:hover svg {
    stroke: #fff !important;
    fill: #fff !important;
}

.auth-card__media {
    background: #111;
    min-height: 380px;
    max-width: 345px;
    position: relative;
}

.auth-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.auth-card__sticker {
    position: absolute;
    top: 20px;
    max-width: 300px;
    width: 100%;
    left: 50%;
    padding: 0;
    margin-left: -150px;
    border-radius: 4px;
    background: #374355;
    color: #FFF;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
    text-transform: uppercase;
    min-height: 40px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card__body {
    padding: 40px;
    background: #fff;
    position: relative;
}

/* Табы */
.auth-card__tabs {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.auth-tab {
    background: transparent;
    border: 0;
    padding: 0;
    position: relative;
    color: #374355;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
}

.auth-tab.is-active:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 3px;
    border-radius: 3px;
    background: #f5a623;
}

/* Формы */
.auth-form .field {
    margin-bottom: 12px;
}

.auth-form .form-control {
    height: 42px;
    border-radius: 7px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.btn.btn-block {
    width: 100%;
    height: 50px;
    border-radius: 7px;
    font-weight: 600;
}

/* Ссылки и разделители */
.auth-row {
    display: flex;
    justify-content: flex-start;
    margin-top: 0;
    border-top: 1px solid #D6DCE3;
}

.auth-row .link {
    color: #374355;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 6px 0 0;
    padding: 0;
    transition: .2s;
}

.auth-row .link:hover {
    color: #EF9A06;
}

.auth-divider {
    height: 1px;
    background: #eee;
    margin: 16px 0;
}

/* Соцкнопки */
.auth-social__title {
    margin-bottom: 10px;
    font-size: 13px;
    color: #6b7280;
}

.social-btn {
    width: 100%;
    border: 1px solid #e5e7eb;
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 8px;
    text-align: left;
}

.social-btn:active {
    transform: translateY(1px);
}

.social-btn--vk { /* при желании добавьте иконку слева через background */
}

.social-btn--max {
}

.social-btn--tg {
}

.social-btn--yandex {
}

/* Легальные блоки в регистрации */
.auth-note {
    margin-bottom: 10px;
    font-weight: 600;
    color: #111827;
}

.auth-legal {
    margin: 0;
}

.auth-legal__hint {
    font-size: 12px;
    color: #6b7280;
}

.auth-legal .checkbox {
    color: #8793A6;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    margin: 0;
    padding: 0;
    transition: .2s;
}

.auth-legal .checkbox input {
    margin: -2px 0 0 -20px;
}

.auth-legal .checkbox a {
    color: #EF9A06;
    transition: .2s;
}

.auth-legal .checkbox a:hover {
    color: #D28A0D;
}

.auth-legal__row {
    margin: 10px 0 8px 20px
}

/* Адаптив */
@media (max-width: 768px) {
    .auth-card {
        grid-template-columns: 1fr;
    }

    .auth-card__media {
        display: none;
    }

    .auth-modal .modal-dialog {
        max-width: 420px;
    }
}

@media (max-width: 420px) {
    .auth-modal .modal-dialog {
        max-width: 92vw;
    }

    .auth-card__body {
        padding: 18px 16px 20px;
    }
}

.auth-card__form-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.auth-card__authorization-wrapper {
    min-width: 310px;
    max-width: 310px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    height: 100%;
    min-height: 410px;
}

.auth-form label {
    width: 100%;
}

.auth-form button, .uni-register_button {
    border-radius: 7px;
    background: #EF9A06;
    transition: .2s;
    color: #FFF;
    text-align: center;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-transform: uppercase;
}

.auth-form button:hover, .uni-register_button:hover {
    background: #D28A0D;
}

.auth-form input {
    border-radius: 7px;
    background: #F5F6F8;
    border: 1px solid #F5F6F8;
}

.fl-input {
    position: relative
}

.fl-input__control {
    width: 100%;
    min-height: 50px;
    padding: 23px 16px 6px;
    border-radius: 7px;
    border: 1px solid #E8EBF0;
    background: #F6F8FB;
    font-size: 16px;
    font-weight: 400;
    line-height: normal;
    color: #374355;
}

.fl-input__control:focus {
    outline: none;
    border-color: #C8D4E4;
    background: #FFF
}

.fl-input__label {
    position: absolute;
    left: 17px;
    top: 8px;
    font-size: 13px;
    line-height: 16px;
    color: #8793A6;
    pointer-events: none;
}

.fl-input__label .req {
    color: #EF4444;
    margin-left: 2px
}

.fl-input.is-error .fl-input__control {
    border-color: #EF4444;
    background: #FFF5F5
}

.fl-input.is-error .fl-input__label {
    color: #EF4444
}

@media screen and (max-width: 1199px) {
    .auth-modal .modal-dialog {
        max-width: 910px;
    }

    .auth-card__media {
        max-width: 300px;
    }

    .auth-card {
        grid-template-columns: 300px 610px;
    }

    .auth-card__body {
        padding: 20px;
    }

    .auth-card__authorization-wrapper {
        min-width: 260px;
        max-width: 260px;
    }

    .auth-card .sna_bline_ul li a {
        gap: 15px;
    }

    .auth-card .sna_label {
        color: #374355;
        text-align: center;
        font-size: 13px;
    }
}

@media screen and (max-width: 991px) {
    .auth-card__media {
        display: none;
    }

    .auth-modal .modal-dialog {
        max-width: 700px;
    }

    .auth-tab {
        font-size: 18px;
    }

    .auth-card {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 767px) {
    .auth-modal .modal-dialog {
        max-width: 560px;
    }

    .auth-tab {
        font-size: 16px;
    }

    .auth-card__authorization-wrapper {
        min-width: 45%;
        max-width: 100%;
    }

    .auth-card__body {
        padding: 16px;
    }

    .auth-card__close {
        top: 10px;
        right: 10px;
    }
}

.button-register__wrapper {
    max-width: 320px;
    width: 100%;
}

.button-register__main-input {
    display: none;
}

.button-register__wrapper #agree {
    display: none;
}

.modal-register__agree {
    margin: 20px 0 0;
}

.modal-register__agree span {
    color: #8793A6;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
}

.modal-register__agree span a {
    color: #EF9A06;
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-skip-ink: none;
    text-decoration-thickness: auto;
    text-underline-offset: auto;
    text-underline-position: from-font;
    transition: .2s;
}

.modal-register__agree span a:hover {
    color: #D28A0D;
}

.auth-note {
    display: none;
}

@media screen and (max-width: 767px) {
    .auth-card__authorization-wrapper {
        min-height: 100%;
    }

    .auth-note {
        color: #FFF;
        font-size: 13px;
        font-style: normal;
        font-weight: 700;
        line-height: 120%;
        text-transform: uppercase;
        margin: 20px 0 40px;
        border-radius: 4px;
        background: #374355;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 40px;
    }

    .auth-card .sna_bline_ul li a img {
        margin-left: 16px;
    }

    .auth-card .sna_bline_ul li a {
        gap: 10px;
    }
}

@media screen and (max-width: 567px) {
    .auth-card__authorization-wrapper {
        flex-direction: column-reverse;
    }

    .auth-card .sna_bline_ul li a {
        gap: 16px;
    }

    .auth-card .sna_bline_ul li a img {
        margin-left: 20px;
    }

    .auth-note {
        margin: 20px 0;
    }

    .auth-card__form-wrapper {
        gap: 20px;
    }
}

.register-spoiler__btn {
    display: none;
    width: 100%;
    text-align: left;
    padding: 10px 20px;
    cursor: pointer;
    background: #FFF;
    min-height: 40px;
    flex-direction: row;
    align-items: center;
    color: #374355;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    border-radius: 7px;
    border: 1px solid #D6DCE3;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    transition: .3s;
}

.register-spoiler__btn .register-spoiler__icon {
    transition: .3s;
    transform: rotate(0);
}

.register-spoiler__btn.is-open .register-spoiler__icon {
    transform: rotate(-180deg);
}

.register-spoiler__icon {
    float: right;
}

@media (max-width: 567px) {
    .register-spoiler__btn {
        display: flex;
        margin-bottom: 0;
    }
}

@media (min-width: 568px) {
    #registerForm {
        display: flex !important;
    }

    .register-spoiler__btn {
        display: none;
    }
}

.auth-card .sna_header {
    padding: 0 !important;
    color: #374355;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.auth-card .sna_bline_ul {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    margin: 5px 0;
}

.auth-card .sna_bline_ul li {
    padding: 0 !important;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    color: #374355;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    float: unset !important;
    width: 100%;
    min-height: 50px;
    border-radius: 7px;
    border: 1px solid #D6DCE3;
    box-sizing: border-box;
}

.auth-card .sna_bline_ul li:hover {
    border: 1px solid #EF9A06;
}

.auth-card .sna_bline_ul li a {
    width: 100%;
    height: 48px;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.auth-card .sna_bline_ul li a img {
    width: 25px;
    height: 25px;
    margin-left: 20px;
    border-radius: 4px;
}

.auth-card .sna_label {
    color: #374355;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin: 0;
    padding: 0;
}

@media screen and (max-width: 1199px) {
    .auth-card .sna_label {
        font-size: 13px;
    }
}

.auth-card .sna_bline_ul li:hover .sna_label {
    color: #EF9A06;
}

.auth-card__authorization-wrapper .uni-social {
    margin: -22px 0 0;
}

@media screen and (max-width: 567px) {
    .auth-card__authorization-wrapper .uni-social {
        margin: 0;
    }

    .auth-card__authorization-wrapper {
        width: 100%;
    }
}

@media screen and (max-width: 567px) {
    .auth-modal .modal-dialog {
        max-width: 380px;
    }

    .auth-card__form-wrapper {
        flex-direction: column;
    }

    .button-register__wrapper {
        max-width: 380px;
    }

    .register-spoiler__btn {
        font-size: 14px;
    }
}

@media screen and (max-width: 767px) {

    .auth-card .sna_bline_ul li a img {
        margin-left: 16px;
    }

    .auth-card .sna_bline_ul li a {
        gap: 10px;
    }
}

@media screen and (max-width: 567px) {

    .auth-card .sna_bline_ul li a {
        gap: 16px;
    }

    .auth-card .sna_bline_ul li a img {
        margin-left: 20px;
    }
}

.tgme_widget_login_button {
    font-size: 16px;
    line-height: 20px;
    padding: 0!important;
    height: 50px!important;
    border-radius: 6px!important;
    width: 100% !important;
}

.sna_telegram_popup {
    min-width: 100%!important;
}