body .log-main-table {
    background: #F5F7F9;
    color: #121239;
}

.log-main-table .log-top-cell {
    vertical-align: bottom;
}

.log-top-cell .main-logo-ru {
    background: url("/local/front/src/images/sprites/svg/logo_auth.svg");
    background-repeat: no-repeat;
    height: 60px;
}

.log-main-table .log-popup-caption {
    display: none;
}

.log-main-table .log-popup-caption-wrap {
    text-align: center;
}

.log-main-table .log-popup-caption-wrap:after {
    /*content: "Битрикс, 2021";*/
    display: block;
    height: content-box;
    width: content-box;
    color: #121239;
    margin-top: 20px;
}

.log-popup-footer .login-btn {
    background: #F9423A;
}

.log-popup-footer .login-btn:hover,
.log-popup-footer .login-btn:active {
    background: #121239;
}

.log-popup-footer .login-link-forgot-pass {
    text-decoration: none;
    color: #F9423A;
    border-bottom: none;
}

.log-popup-footer .login-link-forgot-pass:hover {
    color: #121239;
}

.log-main-table .errortext {
    border: 1px solid rgba(249, 66, 58, 0.25);
    color: #F9423A;
    background: none;
}

.log-main-table .errortext:before {
    background: url("/local/front/src/images/sprites/svg/log_error.svg");
}

/*------------------------------ restyle Auth --------------------------------*/

body .log-main-table {
    background: #164194 url(/local/templates/bitrix24/images/bg-auth-420.png) no-repeat 10% 100%;
    background-size: contain;
}

body .log-popup {
    padding: 26px 15px;
    background-color: #ffffff;
    border-radius: 8px;
}

.log-main-table .log-top-cell .main-logo-ru {
    margin: 0 0 0 0;
    background: url(/local/templates/bitrix24/images/logo_min.png);
    /*background-size: contain;*/
    background-repeat: no-repeat;
    background-position: center center;
    height: 89px;
}

.log-main-table .log-popup-footer .login-btn {
    background: #164194;
    text-transform: lowercase;
}

.log-main-table .log-popup-footer .login-link-forgot-pass:hover {
    color: #817A7A !important;
}

.log-main-table .log-popup-footer .login-btn:hover,
.log-main-table .log-popup-footer .login-btn:active {
    background: #325dae;
}

.log-main-table .login-inp,
.log-main-table .login-item-checkbox-label,
.log-main-table .log-popup-caption-wrap,
.log-main-table .log-popup-caption-wrap:after {
    color: #1A1A1A;
}

.log-main-table .log-popup-footer .login-link-forgot-pass,
.log-main-table .log-popup-header {
    color: #1A1A1A;
}

.log-main-table .log-popup-header {
    font-size: 20px;
    font-weight: 400;
    line-height: 32px;
}

.log-main-table .b_line_gray {
    display: none;
}

.log-main-table .login-inp {
    border: 1px solid #E4E4E4;
}

.log-main-table .login-inp:focus {
    border: 1px solid #E4E4E4;
}

.log-main-table .login-inp,
.log-main-table .login-item-checkbox-label {
    font-family: "Montserrat-medium", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

.log-main-table a.login-link-forgot-pass {
    text-transform: initial;
    font-size: 14px;
}

.login-item.--user-remember {
    margin: 0 0 0 21px;
}
.login-item.--user-remember .login-checkbox-user-remember {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    height: 1px;
    width: 1px;
    padding: 0;
    margin: 0;
}

.login-item.--user-remember .login-item-checkbox-label {
    position: relative;
}

.login-item.--user-remember .login-item-checkbox-label:before {
    position: absolute;
    top: -2px;
    left: -21px;
    content: "";
    width: 16px;
    height: 16px;
    line-height: 16px;
    display: block;
    text-align: center;
    box-sizing: border-box;
    margin-right: 0;
    border: 1px solid #E4E4E4;
    border-radius: 4px;
    background-color: #f7f7f7;
    background-repeat: no-repeat;
    background-position: center center;
    cursor: pointer;
}

.login-checkbox-user-remember:checked + .login-item-checkbox-label:before,
.login-checkbox-user-remember:checked + .login-item-checkbox-label:before {
    background-image: url("data:image/svg+xml,%3Csvg width='10' viewBox='0 0 12 10' fill='%23164194' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath opacity='.99' d='M3.9 9.309a.985.985 0 01-.394-.082 1.021 1.021 0 01-.333-.232L.288 5.98A1.098 1.098 0 010 5.226c.002-.28.11-.55.3-.748.19-.199.448-.312.717-.314.27-.002.528.106.722.3l2.16 2.258L9.521.849c.194-.19.452-.295.718-.29.266.004.52.116.71.313.188.197.296.463.3.74.004.28-.095.548-.278.751L4.624 8.995c-.095.1-.208.178-.333.232a.985.985 0 01-.393.082H3.9z'/%3E%3C/svg%3E") !important;
}

body .dms_users .el-input input.el-input__inner {
    padding-right: 25px;
}

body .login-inp {
    height: 40px;
}

body .login-item.--auth {
    margin-bottom: 13px;
}

body .login-wrapper {
    margin-bottom: 10px;
}

body .login-item.--user-remember {
    margin-bottom: 15px;
}

body .login-btn {
    padding: 0 28px;
    height: 36px;
    line-height: 36px;
}

body .log-popup-footer {
    text-align: start;
    height: 36px;
    padding-top: 20px;
    display: flex;
    align-items: center;
}

@media screen and (min-width: 420px) {
    body .log-main-table {
        background-image: url(/local/templates/bitrix24/images/bg-auth-768.png);
    }
}

@media screen and (min-width: 620px) {
    .log-main-table .log-popup {
        width: 592px;
        padding: 23px 96px 85px 96px;
    }
   
}

@media screen and (min-width: 768px) {
    body .log-main-table {
        background-image: url(/local/templates/bitrix24/images/bg-auth-1024.png);
    }
}

@media screen and (min-width: 1024px) {
    body .log-main-table {
        background-image: url(/local/templates/bitrix24/images/bg-auth.png);
        background-position: 0 50%;
    }
}

/*-------------------- google auth --------------------*/

.log-popup-form-input.input_auth_block {
    display: none;
}

.ggl_auth_block {
    width: 100%;
}

.ggl_auth_block .log-popup-header {
    text-align: center;
    margin-bottom: 42px;
}

.ggl-btn {
    position: relative;
    cursor: pointer;
    width: 100%;
    height: 38px;
    background: #FFFFFF;
    border: 1px solid #164194;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
    padding: 0;
    letter-spacing: -0.1px;
    font-size: 15px;
    line-height: 40px;
    white-space: nowrap;
    box-sizing: border-box;
}

/*.ggl-btn:before {
    content: '';
    width: 20px;
    height: 20px;
    background: url(/local/templates/bitrix24/images/google.svg) no-repeat 0 0;
}*/

.ggl-btn .bx-auth-serv-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.ggl-btn .bx-auth-serv-icons a {
    display: inline-block;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.ggl-btn .bx-auth-serv-icon.google {
    display: none;
}

.ggl-back-to-local {
    cursor: pointer;
    font-family: "Montserrat-medium", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;
    text-align: center;
    text-decoration-line: underline;
    color: #164194;
    display: inline-block;
    margin: 19px 0 0 -35px;
}

.ggl-back-to-local:hover {
    text-decoration-line: none;
}

.log-popup a.ggl-txt {
    display: inline-block;
    font-family: "Montserrat-medium", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 13px;
    line-height: 16px;
    text-align: center;
    color: #121239;
    margin: 20px 0 0 0;
    position: relative;
    top: 15px;
}

.log-popup a.ggl-txt:hover {
    color: #164194;
}

.back-to-ggl {
    margin: 0 0 0 15px;
    font-family: "Montserrat-medium", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-style: normal;
    font-size: 17px;
    font-weight: 500;
    border-radius: 20px;
    text-align: center;
    color: #325dae;
    border: 1px solid #325dae;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 20px;
    width: 110px;
}

.login-link-forgot-pass {
    white-space: nowrap;
}

@media screen and (min-width: 620px) {
    .ggl_auth_block .log-popup-header {
        text-align: center;
    }

    .ggl-btn {       
        align-items: revert;
        gap: revert;
        margin: 0;
        box-sizing: content-box;
        white-space: normal;
    }

    .ggl-btn:before {
        position: absolute;
        top: 9px;
        left: 84px;
    }

    .log-popup a.ggl-txt {
        top: 22px;
        margin-top: 50px;
        white-space: nowrap;
    }
}




