@font-face {
    font-family: AvenirNextCyr-Light;
    src: url("../../../fonts/lk/AvenirNextCyr-Light.woff") format("woff");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

#auth {
    position: relative;
    isolation: isolate;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    padding-bottom: 80px;
    background-color: #110f16;
    background-image:
        linear-gradient(180deg, rgba(8, 10, 18, 0.74) 0%, rgba(10, 9, 16, 0.8) 68%, rgba(8, 7, 13, 0.87) 100%),
        url("../../../img/lk/sod_bg.png");
    background-position: center, center top;
    background-repeat: no-repeat, no-repeat;
    background-size: cover;
}

#auth > .wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
}

#auth .auth-block {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    padding-top: 132px;
    text-align: center;
}

#auth .files-block {
    display: none;
}

#auth .auth-block--register {
    display: grid;
    grid-template-columns: 420px 420px;
    gap: 170px;
    width: min(100%, 1010px);
    margin-right: auto;
    margin-left: auto;
    padding-top: 128px;
}

#auth .auth-block--register .files-block {
    display: block;
    width: 420px;
}

#auth .auth-block--register .register-block {
    width: 420px;
    justify-self: start;
}

#auth .register-block {
    width: min(420px, 100%);
    min-width: 0;
}

#auth .auth-block h3 {
    margin: 0;
    color: rgba(226, 229, 252, 0.6);
    font-family: Philosopher-Regular, serif;
    font-size: 32px;
    font-weight: 400;
    line-height: 1;
}

#auth .register-block > p {
    margin-top: 10px;
    color: rgba(226, 229, 252, 0.7);
    font-family: AvenirNextCyr-Light, AvenirNextCyr-Regular, sans-serif;
    font-size: 16px;
    line-height: 1.35;
}

#auth .auth-referral-message {
    max-width: 420px;
    margin: 10px 0 0;
    color: rgba(226, 229, 252, 0.62);
    font-family: AvenirNextCyr-Light, AvenirNextCyr-Regular, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

#auth .auth-description {
    max-width: 420px;
    margin-right: auto;
    margin-left: auto;
}

#auth .auth-download-card {
    width: 100%;
    margin-top: 18px;
    min-height: 300px;
    padding: 16px 40px;
    border: 1px solid rgba(226, 229, 252, 0.32);
    border-radius: 16px;
    background: rgba(226, 229, 252, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#auth .auth-download-card--updater {
    min-height: 272px;
    margin-top: 22px;
}

#auth .auth-download-card h4 {
    margin: 0;
    color: rgba(226, 229, 252, 0.86);
    font-family: Philosopher-Regular, serif;
    font-size: 20px;
    line-height: 1.4;
}

#auth .auth-download-card p {
    margin: 13px 0;
    color: rgba(226, 229, 252, 0.72);
    font-family: AvenirNextCyr-Light, AvenirNextCyr-Regular, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

#auth .auth-download-card strong {
    color: rgba(226, 229, 252, 0.92);
    font-family: AvenirNextCyr-Medium, sans-serif;
    font-weight: 400;
}

#auth .auth-download-separator {
    position: relative;
    width: 104px;
    height: 1px;
    margin: 10px auto;
    background: linear-gradient(90deg, transparent, rgba(226, 229, 252, 0.7), transparent);
}

#auth .auth-download-separator::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    border: 1px solid rgba(226, 229, 252, 0.8);
    background: #36333d;
    transform: translate(-50%, -50%) rotate(45deg);
}

#auth .auth-block form {
    width: 100%;
    margin-top: 30px;
}

#auth .auth-block .form-group {
    width: 100%;
    margin: 0 auto 23px;
}

#auth .auth-block--register .auth-form {
    width: min(100%, 420px);
    margin-right: 0;
    margin-left: 0;
    margin-top: 30px;
}

#auth .auth-block--register .form-group {
    margin-bottom: 20px;
}

#auth .auth-referral-code {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    gap: 28px;
    border-top: 1px solid rgba(226, 229, 252, 0.24);
    border-bottom: 1px solid rgba(226, 229, 252, 0.24);
    color: rgba(226, 229, 252, 0.42);
    font-family: AvenirNextCyr-Light, AvenirNextCyr-Regular, sans-serif;
    font-size: 14px;
}

#auth .auth-referral-code strong {
    color: rgba(226, 229, 252, 0.82);
    font-family: AvenirNextCyr-Regular, sans-serif;
    font-weight: 400;
}

#auth .auth-referral-code input {
    display: none;
}

#auth .auth-field {
    position: relative;
}

#auth .auth-field::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 0;
    width: 100%;
    height: 56px;
    background: url("../../../img/input.png") center / 100% 100% no-repeat;
    content: "";
    pointer-events: none;
    transition: filter 0.2s ease;
}

#auth .auth-field:focus-within::before {
    filter: brightness(1.16);
}

#auth .auth-block input.form-control {
    display: block;
    width: 100%;
    height: 56px;
    padding: 0 30px;
    appearance: none;
    border: 0 !important;
    border-radius: 0 !important;
    outline: 0;
    background-color: transparent !important;
    background-image: url("../../../img/input.png") !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    color: #e2e5fc;
    font-family: AvenirNextCyr-Regular, sans-serif;
    font-size: 16px;
    line-height: 56px;
}

#auth .auth-block input.form-control::placeholder {
    color: rgba(226, 229, 252, 0.4);
    opacity: 1;
}

#auth .auth-block input.form-control:focus {
    border: 0 !important;
    outline: 0;
}

#auth .auth-block input.form-control:-webkit-autofill,
#auth .auth-block input.form-control:-webkit-autofill:hover,
#auth .auth-block input.form-control:-webkit-autofill:focus {
    border: 0 !important;
    -webkit-text-fill-color: #e2e5fc;
    caret-color: #e2e5fc;
    background-color: transparent !important;
    background-image: url("../../../img/input.png") !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(17, 15, 22, 0.01) inset;
    transition: background-color 9999s ease-out 0s;
}

#auth .auth-field input.form-control,
#auth .auth-field input.form-control:-webkit-autofill,
#auth .auth-field input.form-control:-webkit-autofill:hover,
#auth .auth-field input.form-control:-webkit-autofill:focus {
    position: relative;
    z-index: 1;
    background-image: none !important;
}

#auth .auth-field input.form-control:-webkit-autofill,
#auth .auth-field input.form-control:-webkit-autofill:hover,
#auth .auth-field input.form-control:-webkit-autofill:focus {
    box-shadow: 0 0 0 1000px rgba(17, 15, 22, 0.01) inset !important;
    -webkit-box-shadow: 0 0 0 1000px rgba(17, 15, 22, 0.01) inset !important;
}

#auth .password-group {
    width: 100%;
}

#auth .password-group input.form-control {
    padding-right: 58px;
}

#auth .password-toggle {
    position: absolute;
    top: 50%;
    right: 18px;
    z-index: 2;
    display: block;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent url("../../../img/lk/visibility_on.svg") center / 20px 20px no-repeat;
    transform: translateY(-50%);
    cursor: pointer;
    opacity: 0.72;
}

#auth .password-toggle.is-visible {
    background-image: url("../../../img/lk/visibility_off.svg");
}

#auth .password-toggle:hover,
#auth .password-toggle:focus-visible {
    opacity: 1;
}

#auth .checkbox-container {
    width: min(100%, 420px);
    color: rgba(226, 229, 252, 0.66);
    font-family: AvenirNextCyr-Regular, sans-serif;
    font-size: 13px;
    line-height: 1.45;
}

#auth .auth-block--login .checkbox-container {
    flex-wrap: nowrap;
    width: auto;
}

#auth .checkmark {
    flex: 0 0 20px;
}

#auth .auth-captcha {
    display: flex;
    justify-content: center;
    min-height: 78px;
}

#auth .auth-block .g-recaptcha {
    width: 304px;
    margin: 0 auto;
}

#auth .auth-block .log-in-buttons {
    display: flex;
    justify-content: center;
    margin-top: 6px;
    margin-bottom: 20px;
}

#auth .auth-block .link-auth {
    flex: 0 0 258px;
    width: 258px;
    max-width: 100%;
    height: 64px;
    margin: 0 auto;
    background-position: center;
    background-size: 259px 64px;
}

#auth .auth-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
}

#auth .auth-links .form-group {
    margin-bottom: 0;
}

#auth .auth-links p {
    color: rgba(226, 229, 252, 0.7);
    font-family: AvenirNextCyr-Light, AvenirNextCyr-Regular, sans-serif;
    font-size: 16px;
    line-height: 1.35;
}

#auth .auth-links a,
#auth .register-block > p a {
    color: #ffa347;
    font-family: AvenirNextCyr-Medium, sans-serif;
}

#auth .auth-social {
    margin-top: 30px;
}

#auth .alert-danger2,
#auth .alert-success2 {
    max-width: 420px;
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 1050px) {
    #auth .auth-block--register {
        display: flex;
        width: 100%;
        padding-top: 132px;
    }

    #auth .auth-block--register .register-block {
        width: min(420px, 100%);
        justify-self: auto;
    }

    #auth .auth-block--register .files-block {
        display: none;
    }

    #auth .auth-block--register .auth-form {
        width: 100%;
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 480px) {
    #auth {
        padding-bottom: 56px;
        background-image:
            linear-gradient(180deg, rgba(8, 10, 18, 0.74) 0%, rgba(8, 7, 13, 0.87) 100%),
            url("../../../img/lk/sod_bg.png");
        background-position: center, 55% top;
    }

    #auth > .wrap {
        padding-right: 0;
        padding-left: 0;
    }

    #auth .auth-block {
        padding-top: 119px;
    }

    #auth .auth-block--register {
        padding-top: 118px;
    }

    #auth .register-block {
        width: min(320px, calc(100vw - 24px));
    }

    #auth .auth-block--register .register-block {
        width: min(324px, 100vw);
        padding-right: 20px;
        padding-left: 20px;
    }

    #auth .auth-block form {
        margin-top: 30px;
    }

    #auth .auth-block input.form-control {
        height: 56px;
        padding-right: 24px;
        padding-left: 24px;
        font-size: 15px;
        line-height: 56px;
    }

    #auth .password-group input.form-control {
        padding-right: 54px;
    }

    #auth .password-toggle {
        right: 16px;
    }

    #auth .auth-captcha {
        height: 70px;
        min-height: 70px;
        overflow: visible;
    }

    #auth .auth-block .g-recaptcha {
        width: 304px;
        transform: scale(0.9);
        transform-origin: center top;
    }

    #auth .checkbox-container {
        width: 100%;
        font-size: 13px;
    }

    #auth .auth-block--register .checkbox-container {
        padding: 0 4px;
    }

    #auth .auth-block .link-auth {
        width: 258px;
    }

    #auth .auth-block h3 {
        font-size: 34px;
    }

    #auth .register-block > p,
    #auth .auth-links p {
        font-size: 15px;
    }

    .auth-page #top .top-line {
        grid-template-columns: 40px minmax(105px, 1fr);
    }

    .auth-page #top .logo {
        display: none;
    }

    .auth-page #top .top-r {
        grid-column: 2;
        justify-content: flex-end;
    }
}

@media (max-width: 340px) {
    #auth .register-block {
        width: calc(100vw - 16px);
    }

    #auth .auth-block .g-recaptcha {
        transform: scale(0.88);
    }
}
