@font-face {
    font-family: Manrope;
    src: url("assets/fonts/production/manrope-v15-cyrillic_cyrillic-ext_latin_latin-ext-regular-DhkLnq4G.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Manrope;
    src: url("assets/fonts/production/manrope-v15-cyrillic_cyrillic-ext_latin_latin-ext-500-DUjq3h-L.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: Manrope;
    src: url("assets/fonts/production/manrope-v15-cyrillic_cyrillic-ext_latin_latin-ext-600-BihtUB9D.woff2") format("woff2");
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

html,
body.sanext-auth-page {
    width: 100%;
    min-width: 0;
    min-height: 100%;
    margin: 0;
}

body.sanext-auth-page {
    color: rgba(22, 22, 19, 0.87);
    background: #f5f5f5;
    font-family: Manrope, sans-serif;
    font-size: 16px;
    line-height: 24px;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.sanext-auth-page *,
.sanext-auth-page *::before,
.sanext-auth-page *::after {
    box-sizing: border-box;
}

button,
input {
    font: inherit;
}

.sanext-auth-page button,
.sanext-auth-page a {
    -webkit-tap-highlight-color: transparent;
}

.auth-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.auth-layout {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 1fr;
}

.auth-layout__main {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
}

.auth-layout__content {
    display: flex;
    width: min(480px, 100%);
    min-width: 0;
    flex-direction: column;
}

.auth-layout__media {
    position: relative;
    z-index: 1;
    display: none;
    min-width: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-layout__video {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-layout__logo {
    display: block;
    width: 320px;
    height: auto;
    padding: 0 14px;
    color: #161613;
    fill: currentColor;
}

.auth-card {
    width: 100%;
    min-width: 0;
    background: #ffffff;
}

.auth-card[data-auth-view="recovery"] {
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.02),
        0 4px 5px 0 rgba(0, 0, 0, 0.06),
        0 1px 10px 0 rgba(0, 0, 0, 0.08);
}

.auth-card__header {
    min-height: 80px;
    padding: 24px;
}

.auth-card__title {
    margin: 0;
    color: rgba(22, 22, 19, 0.87);
    font-size: 24px;
    font-weight: 500;
    line-height: 32px;
}

.auth-card__body {
    padding: 0 24px;
}

.auth-password__error {
    margin: 4px 24px 20px;
}

.auth-password__error > p {
    margin: 0;
}

.auth-password__form {
    padding-bottom: 24px;
}

.auth-password__hint {
    margin: 12px 0 24px;
}

.auth-card > p {
    margin: 12px 0 20px;
}

.auth-card__errors.has-error {
    padding-bottom: 24px;
}

.auth-alert {
    display: flex;
    min-height: 68px;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    color: #ffffff;
    background: #ff0000;
    border-radius: 4px;
}

.auth-alert__icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    fill: currentColor;
}

.auth-alert__text {
    min-width: 0;
    font-size: 14px;
    line-height: 20px;
}

.auth-field {
    min-height: 80px;
}

.auth-field__control {
    position: relative;
    height: 56px;
    background: #ffffff;
    border: 1px solid #b2b2b2;
    border-radius: 4px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-field__control:hover {
    border-color: #737373;
}

.auth-field__control:focus-within {
    border-color: #004ecc;
    box-shadow: inset 0 0 0 1px #004ecc;
}

.auth-field__input {
    width: 100%;
    height: 54px;
    padding: 16px;
    color: rgba(22, 22, 19, 0.87);
    background: transparent;
    border: 0;
    border-radius: 4px;
    outline: 0;
    font-size: 16px;
    line-height: 24px;
}

.auth-field__control--password .auth-field__input {
    padding-right: 52px;
}

.auth-field__label {
    position: absolute;
    top: 15px;
    left: 16px;
    color: #929292;
    background: #ffffff;
    font-size: 16px;
    line-height: 24px;
    pointer-events: none;
    transform-origin: left center;
    transition: top 0.15s ease, left 0.15s ease, padding 0.15s ease,
        color 0.15s ease, font-size 0.15s ease, line-height 0.15s ease;
}

.auth-field__control:focus-within .auth-field__label,
.auth-field__control.has-value .auth-field__label {
    top: -8px;
    left: 12px;
    padding: 0 4px;
    color: #004ecc;
    font-size: 12px;
    line-height: 16px;
}

.auth-field__control.has-value:not(:focus-within) .auth-field__label {
    color: #737373;
}

[data-auth-login-form] .auth-field__input:autofill + .auth-field__label,
[data-auth-login-form] .auth-field__input:-webkit-autofill + .auth-field__label {
    top: -8px;
    left: 12px;
    padding: 0 4px;
    color: #004ecc;
    font-size: 12px;
    line-height: 16px;
}

.auth-field__input:-webkit-autofill {
    -webkit-text-fill-color: rgba(22, 22, 19, 0.87);
}

.auth-field__message {
    min-height: 24px;
    padding: 4px 16px 0;
    color: #ff0000;
    font-size: 12px;
    line-height: 16px;
}

.auth-field.is-error .auth-field__control {
    border-color: #ff0000;
    box-shadow: inset 0 0 0 1px #ff0000;
}

.auth-field.is-error .auth-field__label {
    color: #ff0000;
}

.auth-field__toggle {
    position: absolute;
    top: 7px;
    right: 3px;
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    color: #777777;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.auth-field__toggle:hover {
    background: rgba(22, 22, 19, 0.05);
}

.auth-field__toggle:focus-visible,
.auth-button:focus-visible,
.auth-link:focus-visible,
.auth-support__button:focus-visible,
.auth-support__link:focus-visible {
    outline: 2px solid #004ecc;
    outline-offset: 2px;
}

.auth-icon {
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    fill: currentColor;
}

.auth-remember {
    position: relative;
    display: flex;
    height: 40px;
    align-items: center;
    padding: 0 12px;
    color: rgba(22, 22, 19, 0.87);
    cursor: pointer;
    gap: 12px;
}

.auth-remember__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.auth-remember__box {
    position: relative;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 2px solid #929292;
    border-radius: 3px;
}

.auth-remember__input:checked + .auth-remember__box {
    background: #004ecc;
    border-color: #004ecc;
}

.auth-remember__input:checked + .auth-remember__box::after {
    position: absolute;
    top: 1px;
    left: 4px;
    width: 4px;
    height: 8px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    content: "";
    transform: rotate(45deg);
}

.auth-remember__input:focus-visible + .auth-remember__box {
    outline: 2px solid #004ecc;
    outline-offset: 3px;
}

.auth-card__actions {
    display: flex;
    min-height: 96px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
}

.auth-button,
.auth-link {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 0;
    border-radius: 9999px;
    font: 600 16px / 16px Manrope, sans-serif;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.auth-button--primary {
    min-width: 86px;
    color: #efefef;
    background: #004ecc;
}

.auth-button--primary:hover {
    background: #0647b1;
}

.auth-button:disabled {
    opacity: 0.55;
    cursor: default;
}

.auth-link {
    position: relative;
    margin-right: -16px;
    color: rgba(22, 22, 19, 0.87);
    background: transparent;
    opacity: 0.62;
}

.auth-link:hover,
.auth-link:active {
    color: rgba(22, 22, 19, 0.87);
    background: transparent;
    opacity: 1;
}

.auth-link:focus-visible {
    background: transparent;
    opacity: 1;
    outline: 0;
}

.auth-link::after {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(22, 22, 19, 0.87);
    border-radius: inherit;
    content: "";
    opacity: 0;
    pointer-events: none;
}

.auth-link:focus-visible::after {
    opacity: 0.25;
}

.auth-support {
    position: relative;
    width: 100%;
    min-height: 72px;
    margin: 16px 0 32px;
    background: #ffffff;
}

.auth-support__button {
    display: flex;
    width: 100%;
    min-height: 72px;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0 16px;
    color: #004ecc;
    background: transparent;
    border: 0;
    opacity: 0.62;
    cursor: pointer;
    font: 600 16px / 16px Manrope, sans-serif;
}

.auth-support__button:hover {
    background: rgba(0, 78, 204, 0.04);
}

.auth-support__button:focus-visible {
    background: rgba(0, 78, 204, 0.12);
    outline: 0;
}

.auth-support__icon,
.auth-support__arrow {
    display: block;
    width: 27.4286px;
    height: 27.4286px;
    flex: 0 0 27.4286px;
    fill: currentColor;
}

.auth-support__text {
    flex: 0 0 auto;
    white-space: nowrap;
}

.auth-support__arrow {
    width: 27.4286px;
    height: 27.4286px;
    flex-basis: 27.4286px;
}

.auth-support__popup {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    display: none;
    width: 240px;
    padding: 0;
    color: rgba(22, 22, 19, 0.87);
    background: #ffffff;
    box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.02),
        0 8px 10px 1px rgba(0, 0, 0, 0.06),
        0 3px 14px 2px rgba(0, 0, 0, 0.08);
}

.auth-support__popup.is-open {
    display: block;
    animation: auth-popup-in 0.2s ease-out;
}

.auth-support__title {
    display: flex;
    height: 48px;
    align-items: center;
    padding: 0 16px;
    color: rgba(22, 22, 19, 0.6);
    border-bottom: 1px solid #e6e6e6;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.auth-support__link {
    display: flex;
    min-height: 57.5px;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    color: inherit;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
}

.auth-support__link:hover {
    background: rgba(22, 22, 19, 0.04);
}

.auth-loader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    color: rgba(22, 22, 19, 0.87);
    background: rgba(255, 255, 255, 0.75);
}

.auth-loader.is-open {
    display: flex;
}

.auth-loader__spinner {
    width: 64px;
    height: 64px;
    border: 4px solid rgba(0, 78, 204, 0.2);
    border-top-color: #004ecc;
    border-radius: 50%;
    animation: auth-spin 0.8s linear infinite;
}

.auth-card__description {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 20px;
}

.auth-card__body--success {
    padding-bottom: 8px;
}

.auth-card__actions--success {
    justify-content: flex-start;
}

.auth-captcha {
    padding-bottom: 24px;
}

.auth-captcha__image {
    display: block;
    margin-bottom: 12px;
}

.auth-captcha__label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
}

.auth-captcha__input {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 1px solid #b2b2b2;
    border-radius: 4px;
    outline: 0;
}

.auth-captcha__input:focus {
    border-color: #004ecc;
    box-shadow: inset 0 0 0 1px #004ecc;
}

.auth-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    display: flex;
    height: 40px;
    align-items: center;
    padding: 8px 16px;
    color: rgba(22, 22, 19, 0.54);
    font-size: 16px;
    line-height: 24px;
}

.is-hidden {
    display: none !important;
}

@keyframes auth-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes auth-popup-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 1200px) {
    .auth-layout {
        width: calc(100% + 24px);
        margin-left: -12px;
        grid-template-columns: 1fr 1fr;
    }

    .auth-layout__media {
        display: flex;
    }
}

@media (max-width: 520px) {
    .auth-card__actions {
        flex-wrap: wrap;
    }

    .auth-support__popup {
        width: min(240px, calc(100vw - 24px));
    }
}

@media (max-height: 560px) {
    .auth-page {
        overflow-y: auto;
    }

    .auth-layout__main {
        align-items: flex-start;
    }
}
