:root {
    --theme-color: #ef5121;
}

.body-bg {
    background-color: #EBEBEB;
    min-height: 100vh;
}

.body-bg::before {
    content: '';
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 52.5%;
    height: 100vh;
    background-image: url(/assets/Main/Lk/img/auth-bg.svg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right;
}

.Header--bg {
    background-color: #fff;
}

.Header--bg.active {
    border: none;
}

.main {
    padding-top: 89rem;
}

.auth {
    padding-top: 201rem;
    min-height: calc(100vh - 150rem);
}

.auth__title {
    font-size: 51rem;
    margin-bottom: 30rem;
}

.auth__desc {
    font-size: 22rem;
    font-weight: 400;
    margin-bottom: 72rem;
    max-width: 441rem;
    line-height: 131%;
}

.auth__figure {
    max-width: 430rem;
}

.auth__pic {
    max-width: 100%;
    display: block;
}

.auth__container {
    display: grid;
    column-gap: 42px;
    justify-content: space-between;
    grid-template-columns: minmax(0, 584rem) minmax(0, 570rem);
}

.auth-form {
    width: 100%;
}

.auth-form__fieldset {
    padding: 0;
    border: none;
}

.auth-form__legend {
    font-size: 28rem;
    font-weight: 629;
    line-height: 1.16;
    margin-bottom: 27rem;
    font-stretch: 151%;
    font-variation-settings: "wdth" 151, "GRAD" 0, "slnt" 0, "XTRA" 468, "XOPQ" 96, "YOPQ" 79, "YTLC" 514, "YTUC" 712, "YTAS" 750, "YTDE" -203, "YTFI" 738
}

.auth-form__error {
    font-size: 22rem;
    font-stretch: 100%;
    font-weight: 121;
    line-height: 1.16;
    margin-top: 10rem;
    margin-bottom: 14rem;
    display: none;
}

.auth-form__fields {
    display: flex;
    flex-direction: column;
    row-gap: 14rem;
    margin-bottom: 24rem;
    width: 100%;
}

.auth-form__fields--reg-offset {
    margin-bottom: 40rem;
}

.auth-form__field {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-form__input {
    width: 100%;
    font-weight: 629;
    font-size: 23rem;
    color: #1D1D1D;
    padding: 28rem 38rem 25rem;
    border: none;
    background-color: #fff;
    border-radius: 100rem;
    transition: border .3s ease-in-out;
}

.auth-form__input::placeholder {
    color: transparent;
}

.auth-form__input:read-only {
    background-color: rgba(255, 255, 255, 0.9);
}

.auth-form__input:disabled {
    --placeholder:rgba(29, 29, 29, 0.2);
    background-color: rgba(255, 255, 255, 0.8);
}

.auth-form__input:disabled + .auth-form__label {
    color:rgba(29, 29, 29, 0.2);
}

.auth-form__input--valid,
.auth-form__input--valid.full {
    border: 2px solid #14B11A;
    position: relative;
}

.auth-form__input--valid {
    background-repeat: no-repeat;
    background-size: 20rem;
    background-position: center right 30rem;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='15' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18.25 1.375 6.562 13.063 1.25 7.75' stroke='%2314B11A' stroke-width='2.125' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.auth-form__input--invalid {
    --placeholder:#F00C0C;
    background-repeat: no-repeat;
    background-size: 22rem;
    background-position: center right 31rem;
    background-image: url("data:image/svg+xml,%3Csvg width='22' height='22' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23a)' stroke='%23F00C0C' stroke-width='1.833' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.205 1.833h7.59l5.371 5.372v7.59l-5.371 5.372h-7.59l-5.372-5.372v-7.59l5.372-5.372ZM13.75 8.25l-5.5 5.5M8.25 8.25l5.5 5.5'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Cpath fill='%23fff' d='M0 0h22v22H0z'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
}

.auth-form__input--invalid,
.auth-form__input--invalid.full {
    border: 2px solid #F00C0C;
    position: relative;
    color:#F00C0C;
}

.auth-form__input--invalid + .auth-form__label {
    color:#F00C0C;
}

.auth-form__label {
    display: none;
}

@media (min-width:591px) {

    .auth-form__label {
        display: block;
        position: absolute;
        color: rgb(29 29 29 / 40%);
        padding: 0 38rem;
        display: block;
        font-weight: 629;
        font-size: 23rem;
        pointer-events: none;
        user-select: none;
        width: 100%;
        transform-origin: left center;
        transition: 0.3s ease-in-out;
        transition-property: transform, font-size;
    }

    .auth-form__input:not(:read-only):not(:disabled):focus-visible+.auth-form__label,
    .auth-form__input:not(:read-only):not(:disabled):not(:placeholder-shown)+.auth-form__label {
        transform: translateY(-108%);
        font-size: 14rem;
    }
}

.auth-form__restore-link {
    display: block;
    font-size: 14rem;
    color: #1D1D1D;
    text-decoration: underline;
    text-underline-offset: 4rem;
    margin-bottom: 43rem;
}

.auth-form__restore-link:hover,
.auth-form__restore-link:focus-visible {
    opacity: 0.4;
}

.auth-form__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 32rem;
}

.auth-form__agreement {
    font-size: 16rem;
    font-weight: 400;
    line-height: 1.2;
    color: rgb(29 29 29 / 50%);
    position: relative;
    display: flex;
    column-gap: 14rem;
    justify-content: center;
    max-width: 483rem;
    text-align: center;
}

.auth-form__agreement::before {
    content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='23' height='27' viewBox='0 0 23 27' fill='none'%3E%3Cpath opacity='0.5' d='M19.4776 10.413H18.5501V7.14511C18.5501 3.54065 15.2222 0.609375 11.1301 0.609375C7.03791 0.609375 3.71002 3.54065 3.71002 7.14511V10.413H2.78252C1.24904 10.413 0 11.5121 0 12.8639V24.3014C0 25.6532 1.24904 26.7523 2.78252 26.7523H19.4776C21.0111 26.7523 22.2601 25.6532 22.2601 24.3014V12.8639C22.2601 11.5121 21.0111 10.413 19.4776 10.413ZM6.18337 7.14511C6.18337 4.74214 8.40196 2.78795 11.1301 2.78795C13.8582 2.78795 16.0768 4.74214 16.0768 7.14511V10.413H6.18337V7.14511ZM12.3667 18.8245V21.3059C12.3667 21.9072 11.8139 22.3952 11.1301 22.3952C10.4462 22.3952 9.89339 21.9072 9.89339 21.3059V18.8245C9.15757 18.4465 8.65672 17.7515 8.65672 16.9487C8.65672 15.7472 9.76601 14.7701 11.1301 14.7701C12.4941 14.7701 13.6034 15.7472 13.6034 16.9487C13.6034 17.7515 13.1026 18.4465 12.3667 18.8245Z' fill='%231D1D1D'/%3E%3C/svg%3E");
    display: block;
    line-height: 0;
}

.auth-form__agreement a {
    text-decoration: underline;
    text-decoration-thickness: 1rem;
    text-underline-offset: 4rem;
}

.auth-form__agreement a:hover,
.auth-form__agreement a:focus-visible {
    color: rgb(29 29 29 / 100%);
}

.auth-form__submit {
    width: 100%;
}

.auth-form__action {
    font-size: 20rem;
    font-weight: 629;
    left: 1.2rem;
    text-align: center;
    line-height: 130%;
}

.auth-form__action-link {
    color: var(--theme-color);
}

.auth-form__action-link:hover,
.auth-form__action-link:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 2rem;
    text-underline-offset: 5rem;
}

.auth-form__captcha {
    margin-bottom: 24rem;
}

.footer {
    font-size: 12px;
    font-weight: 400;
    color: rgb(11 11 11 / 40%);
    padding-block: 80rem 40rem;
}

.footer__container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer__copy {
    flex-grow: 1.2;
}

.footer__links {
    display: flex;
    flex-grow: 1;
    flex-wrap: wrap;
    gap: 20rem;
    justify-content: space-between;
}

.footer__links-link:hover,
.footer__links-link:focus-visible {
    color: rgb(29 29 29 / 100%);
}

@media (max-width:1500px) {
    .body-bg::before {
        width: 48%;
    }
}

@media (max-width:1024px) {
    .auth__title-break {
        display: none;
    }
}

@media (max-width:740px) {
    .footer__container {
        flex-direction: column;
    }

    .footer__links {
        flex-direction: column;
        justify-content: flex-start;
    }
}

@media (max-width:590px) {
    .body-bg::before {
        display: none;
    }

    .Header--bg {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.50) 0%, rgb(255 255 255 / 28%) 100%);
        backdrop-filter: blur(6px);
        border-bottom: 0;
    }

    .main,
    .auth {
        padding-top: 80rem;
    }

    .auth__container {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .auth__content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-inline: 15rem;
    }

    .auth__title {
        font-size: 24rem;
        line-height: 1.16;
        margin-bottom: 15rem;
        max-width: 90%;
    }

    .auth__title-break {
        display: inline;
    }

    .auth__desc {
        font-size: 14rem;
        margin-bottom: 34rem;
    }

    .auth__figure {
        order: -1;
        margin-bottom: 28rem;
    }

    .auth-form {
        background-color: #fff;
        border-radius: 35rem;
        padding: 27rem 13rem 47rem;
    }

    .auth-form__fieldset {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .auth-form__fields {
        row-gap: 12rem;
        margin-bottom: 30rem;
    }

    .auth-form__legend {
        text-align: center;
        font-size: 20rem;
        line-height: 1.16;
        margin-bottom: 27rem;
    }

    .auth-form__error {
        font-size: 14rem;
        margin-top: 12rem;
        margin-bottom: 0;
    }

    .auth-form__input {
        --placeholder: rgb(29 29 29 / 40%);
        background-color: #F5F5F5;
        padding: 21rem 27rem;
        font-size: 16rem;
    }

    .auth-form__input::placeholder {
        color: var(--placeholder);
    }

    .auth-form__input::-webkit-input-placeholder {
        color: var(--placeholder);
    }

    .auth-form__input::-moz-placeholder {
        color: var(--placeholder);
    }

    .auth-form__input:-ms-input-placeholder {
        color: var(--placeholder);
    }

    .auth-form__input:-moz-placeholder {
        color: var(--placeholder);
    }

    .auth-form__agreement {
        font-size: 10rem;
        line-height: 1.2;
    }

    .auth-form__agreement::before {
        display: none;
    }

    .auth-form__action {
        font-size: 15rem;
    }

    .auth-form__captcha {
        margin-top: 0;
    }

    .auth-form__restore-link {
        margin-bottom: 30rem;
    }

    .footer {
        font-size: 12rem;
        padding-block: 41rem 18rem;
    }

    .footer__container {
        gap: 5rem;
    }

    .footer__links {
        gap: 5rem;
    }

    .auth-form__captcha {
        transform: revert;
        align-self: center;
        outline: 1px solid #57575742;
        outline-offset: -2px;
    }

    .auth-form__captcha>div,
    .auth-form__captcha>div iframe {
        width: 100% !important;
        display: block;
    }
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    border-radius: 100rem;
    -webkit-text-fill-color: #1D1D1D;
    -webkit-box-shadow: 0 0 0 1000px rgb(232, 240, 254) inset;
    transition: background-color 5000s ease-in-out 0s;
}

input:-webkit-autofill ~ .auth-form__label,
input:-webkit-autofill:hover ~ .auth-form__label,
input:-webkit-autofill:focus ~ .auth-form__label {
    transform: translateY(-108%);
    font-size: 14rem;
}
