.help-block{
    padding-top: 0;
    font-size: 2rem;
    font-family: "Golos Text";
    color: #ff5757;
    transition: .5s all ease;
    min-height: 0;
}

.modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #FDF1E9;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal__overlay.--open {
    opacity: 1;
    pointer-events: auto;
    z-index: 99999;
}

.modal{
    height: 100%;
    width: 100%;
    .modal__wrapper{
        max-width: 1440px;
        margin: 0 auto;
        padding: 24px;
        height: 100%;

        display: flex;
        justify-content: space-between;
        gap: 24px;
    }

    .modal__cross{
        position: absolute;
        content: '';
        right: 32px;
        top: 24px;
        cursor: pointer;
    }

    .modal__images{
        width: 100%;
        height: 100%;
        border-radius: 32px;
        background: #171717;
        position: relative;
        padding: 48px 57px;
        max-width: 816px;
        overflow: hidden;
        display: flex;
        flex-direction: column;

        .modal__logo,
        .modal__eyes{
            position: relative;
            z-index: 5;
        }

        .modal__spin,
        .modal__shake,
        .modal__shape,
        .modal__buget{
            position: absolute;
            content: '';
        }

        .modal__spin{
            top: 203px;
            left: 57px;
        }

        .modal__shake{
            top: 72px;
            right: 184px;
        }

        .modal__shape{
            bottom: 64px;
            left: 179px;
        }

        .modal__buget{
            right: 79px;
            bottom: 194px;
        }

        .modal__eyes{
            height: 100%;
            display: flex;
            margin-left: -15px;
        }
    }

    .modal__images:before,
    .modal__images:after{
        position: absolute;
        content: '';
        filter: blur(175px);
        opacity: .4;
        z-index: 1;
        border-radius: 100%;
    }
    .modal__images:before{
        width: 1031px;
        height: 1031px;
        background: #F3ADCD;
        left: -519px;
        bottom: -871px;
    }
    .modal__images:after{
        width: 1154px;
        height: 1031px;
        background: #00B17C;
        bottom: -775px;
        right: -816px;
    }


    .modal__form{
        height: 100%;
        width: 100%;
        display: flex;
        align-items: center;
        max-width: 472px;

        .modal__form__wrapper{
            max-width: 384px;
            width: 100%;
        }

        .modal__form__header{
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            flex-wrap: wrap;
            gap: 16px;

            .modal__form__current{
                color: #171717;
                font-size: 4rem;
                font-weight: 500;
            }

            .modal__form__link{
                .link{
                    font-family: "Golos Text";
                    font-size: 2.25rem;
                    text-decoration: underline;
                    color: #00B17C;
                }
            }
        }
    }

    .modal__content{
        position: relative;
    }
}


.form{
    width: 100%;

    fieldset{
        width: 100%;

        .form-group.form-select:after{
            display: inline-flex;
            background: url("../img/modals/caret.svg") no-repeat;
            width: 16px;
            height: 9px;
            background-size: cover;
            content: '';
            position: absolute;
            top: 56%;
            right: 2px;
        }

        .form-group{
            position: relative;
            width: 100%;
            padding-top: 25px;

            .form__input{
                background: transparent;
                border: none;
                width: 100%;
                font-size: 2.25rem;
                font-weight: 400;
                font-family: "Golos Text";
                padding-bottom: 9px;
                border-bottom: 1px solid rgba(23, 23, 23, 0.20);
                cursor: pointer;
                transition: .5s all ease;
                appearance: none;
                -webkit-appearance: none;
                -moz-appearance: none;
                position: relative;
                z-index: 999;

                option{
                    font-family: "Golos Text";
                    font-size: 2.25rem;
                    color: #171717;
                }
            }

            .form__input.form__input--password{
                padding-right: 30px;
            }

            .form__input:focus,
            .form__input:not(:placeholder-shown){
                border-radius: unset;
                outline: none;
                border-color: #000;
            }

            label{
                font-size: 2.25rem;
                color: rgba(23, 23, 23, 0.40);
                font-family: "Golos Text";
                position: absolute;
                width: 100%;
                cursor: pointer;
                top: 25px;
                left: 0;
                transition: .5s all ease;
            }

            .form__input:focus-visible + label,
            .form__input:not(:placeholder-shown) + label,
            .form__input.form__select + label{
                font-size: 1.75rem;
                top: 0;
            }

            .form__select{

            }

            .password__eye{
                position: absolute;
                right: 0;
                top: 26px;
                content: '';
                cursor: pointer;
                z-index: 1000;
            }

            .password__eye::after {
                content: '';
                position: absolute;
                top: 56%;
                left: -2px;
                width: 120%;
                height: 2px;
                background: #000;
                transform: scaleX(1) rotate(-15deg);
                transform-origin: left center;
                transition: transform 0.3s ease;
            }

            .password__eye.active::after {
                transform: scaleX(0);
            }
        }

        .has-error{
            .help-block{
                padding-top: 4px;
                min-height: 20px;
            }

            .form__input{
                border-color: #ff5757!important;
            }
        }

        .form-group:focus,
        .form-group:focus-visible{
            border: none;
            outline: none;
        }
    }

    .field--destroy {
        .form-group{
            padding-top: 0;
            label{
                position: relative;
                top: unset;
                font-size: 1.75rem;
            }
        }
    }

    .form__inputs{
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .form__more{
        margin-top: 24px;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        align-items: center;
        gap: 24px;
    }

    .modal__form__check{
        font-size: 2.25rem;
        font-family: "Golos Text";
        color: #171717;

        input[type="checkbox"]{
            display: none;
        }

        label{
            position: relative;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }

        label:before{
            min-width: 24px;
            height: 24px;
            border-radius: 4px;
            border: 1px solid #171717;
            display: inline-flex;
            transition: .5s all ease;
            justify-content: center;
            content: '';
            box-sizing: border-box;
        }

        input[type=checkbox]:checked+label:before{
            align-items: baseline;
            background: #171717;
            content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10' fill='none'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M11.7386 0.200579C12.061 0.490979 12.089 0.990043 11.8012 1.31528L4.34775 9.73632C4.19927 9.90411 3.98692 10 3.76398 10C3.54104 10 3.32868 9.90411 3.18021 9.73632L0.198835 6.3679C-0.0890295 6.04263 -0.0610222 5.54358 0.261391 5.25326C0.583795 4.96284 1.07853 4.99105 1.36639 5.31632L3.76398 8.02516L10.6337 0.263685C10.9215 -0.0615575 11.4162 -0.0898105 11.7386 0.200579Z' fill='%23FDF1E9'/%3E%3C/svg%3E");
        }
    }

    .modal__link__to{
        color: rgba(23, 23, 23, 0.40);
        font-family: "Golos Text";
        font-size: 2.25rem;
        text-decoration: underline;
    }

    .form__bottom{
        display: flex;
        flex-direction: column;
        margin-top: 40px;
        gap:24px;

        .form__submit__button{
            display: inline-flex;
            width: 100%;
            background: #171717;
            color: #FDF1E9;
            padding: 16px;
            font-weight: 500;
            text-align: center;
            font-size: 2.25rem;
            outline: none;
            border: none;
            border-radius: 150px;
            justify-content: center;
            cursor: pointer;
        }

        .form__resend__email{
            text-align: center;
        }
    }

    .form__steps{
        display: flex;
        align-items: center;
        gap: 21px;
        margin-bottom: 40px;

        .form__steps__step{
            font-size: 2.25rem;
            font-weight: 500;
            font-family: "Golos Text";
            display: inline-flex;
            align-items: baseline;
            color: #C8C8C8;
            position: relative;
            transition: .5s all ease;
            cursor: pointer;
        }

        .form__steps__step.current{
            color: #171717;
        }

        .form__steps__step.done{
            color: #00B17C;
        }

        svg{
            margin-top: 1px;
        }

        path{
            transition: .5s all ease;
        }

        .form__steps__step.done + svg path{
            fill: #00B17C;
        }
    }

    .step{
        display: none;
    }

    .form__change{
        display: flex;
        gap: 16px;
        margin: 40px auto;

        .form__change__button{
            display: inline-flex;
            background: transparent;
            border: 1px solid rgba(23, 23, 23, 0.40);
            border-radius: 150px;
            font-family: "Golos Text";
            font-size: 2rem;
            color: #171717;
            transition: .5s all ease;
            padding: 11px 12px;
            max-width: 184px;
            width: 100%;
            justify-content: center;
            cursor: pointer;
        }

        .form__change__button.active{
            color: #FDF1E9;
            background: #00B17C;
        }
    }
}

.form.form--login,
.form.form--recoverpass,
.form.form--resendemail,
.form.form--finish{
    padding-top: 70px;
}

.form__container{
    position: relative;
    min-height: 300px;
    overflow: hidden;
}

.form__container > div{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);

    transition:
            opacity 0.5s ease,
            transform 0.5s ease,
            visibility 0.5s ease;
}

.form__container > div.active{
    position: relative;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.bootstrap-select.btn-group.bs-container{
    z-index: 9999999;
}

fieldset .bootstrap-select{
    .btn{
        display: inline-flex;
        outline: none;
        border: none;
        background: transparent;
        padding-top: 9px;
        padding-left: 0;
        padding-bottom: 9px;
        border-bottom: 1px solid #000;
        cursor: pointer;
    }

    .dropdown-toggle:focus{
        outline: none!important;
    }
}

fieldset .bootstrap-select.btn-group.open .dropdown-toggle{
    box-shadow: none;
}

fieldset .bootstrap-select.btn-group .dropdown-toggle .filter-option {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    font-family: "Golos Text";
    font-size: 2.25rem;
    color: #171717;
}

.bootstrap-select .bs-caret .caret {
    display: none;
}

.bootstrap-select .bs-caret:after {
    display: inline-flex;
    background: url("../img/modals/caret.svg") no-repeat;
    width: 16px;
    height: 9px;
    background-size: cover;
    content: '';
    position: absolute;
    top: 45%;
    right: 2px;
}

.bootstrap-select.btn-group .dropdown-menu li a{
    display: inline-flex;
    width: 100%;
    align-items: center;
    gap: 16px;
    font-size: 2.25rem;
    color: #171717;
    font-family: "Golos Text";
}

.form{
    .step-2{
        .form__more{
            gap: 16px;
        }

        .form__more > div .modal__form__check label{
            align-items: flex-start;
            font-size: 1.75rem;
        }

        .modal__form__check{
            input[type=checkbox]:checked+label:before{
                align-items: center;
            }
        }
    }
    .form__register{
        display: none;
    }
}
.flex__wrap{
    display: flex;
    gap: 32px;
    fieldset:nth-child(2){
        width: 33%;
    }
}

@media (max-width: 991px) {
    .modal{
        .modal__images{
            display: none;
        }

        .modal__form{
            max-width: unset;

            .modal__form__wrapper{
                margin: 0 auto;
            }
        }
    }
}

.modal_auth{
    padding-top: 85px;
    position: absolute;
    top: 10px;
    width: 100%;

    .form_wrap{
        max-width: 360px;
        margin: 0 auto;
    }

    .modal-close{
        text-align: right;
        font-size: 2rem;
        order: 2;
    }

    .form_body{
        order: 1;
    }

    .form_body p{
        font-size: 1.75rem;
        font-weight: 500;
        line-height: 20px;
        font-family: "Golos Text";
        color: #fff;
    }
}

#message, #two_factor, #reset_password{
    z-index: 999999;
}

#message, #reset_password, #two_factor{
    display: none;
    background: #00B17C;
    position: relative;
    padding: 16px 14px!important;
    border-radius: 4px;
}

.modal_auth_wrp{
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

@media (max-width: 991px) {
    .modal{
        .modal__form{
            .modal__form__wrapper{
                max-height: 650px;
                overflow: auto;
                max-width: 400px;
                padding-right: 16px;
            }
        }
    }
}

@media (max-width: 410px) {
    .form{
        .form__change{
            flex-direction: column;
            align-items: center;
        }
    }
}

@media (max-height: 670px) {
    .modal{
        .modal__form{
            .modal__form__wrapper{
                max-height: 480px;
            }
        }
    }
}

.auth{
    background: #FDF1E9!important;
    padding: 20px 20px 40px!important;
    border-radius: 4px;

    .auth__header{
        color: #171717;
        font-size: 4rem;
        text-align: center;
    }
    .close_btn{
        color: #171717;
        font-size: 2rem;
        text-align: right;
        cursor: pointer;
    }
    .form{
        max-width: 340px;
        margin: 0 auto;
    }
}

.mes{
    .close_btn{
        order: 2;
    }

    .form_body{
        order: 1;
    }
}

input::-ms-reveal,
input::-ms-clear {
    display: none;
}