@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("/template/app/fonts/Inter-Cyrillic.woff2") format("woff2");
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url("/template/app/fonts/Inter-Latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

.auth-page {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 40px 16px;
    background: #f2f4f7;
    color: #404651;
    font-family: Inter, "Open Sans", sans-serif;
}

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

.auth-page__header {
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
}

.auth-page__logo {
    display: block;
    width: 212px;
    height: 40px;
    object-fit: contain;
    transform: translateX(-8px);
}

.auth-page__content {
    display: flex;
    flex: 1 0 auto;
    min-height: 0;
    align-items: center;
    justify-content: center;
    padding: 26px 0 48px;
}

.auth-card {
    width: 100%;
    max-width: 446px;
    padding: 32px 40px 40px;
    border-radius: 16px;
    background: #fff;
}

.auth-card--wide-spacing {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.auth-card--consent {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.auth-card__title {
    margin: 0;
    color: #292e36;
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.auth-card__title--small {
    font-size: 24px;
}

.auth-card__description {
    margin: 8px 0 0;
    color: #404651;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

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

.auth-section__title {
    margin: 0;
    color: #404651;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.1;
    text-align: center;
}

.auth-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.auth-vk-one-tap {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.auth-social-button {
    display: inline-flex;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid #c5cad1;
    border-radius: 50%;
    background: #fff;
    color: #226ee0;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: border-color .15s ease, background-color .15s ease;
}

.auth-social-button:hover,
.auth-social-button:focus {
    border-color: #226ee0;
    background: #f2f6fd;
    outline: none;
}

.auth-social-button--ok {
    color: #ed8126;
}

.auth-social-icon {
    display: block;
    width: 24px;
    height: 24px;
}

.btn-auth-vk img {
    display: block;
    width: 24px;
    height: 24px;
}

.auth-separator {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #747d8a;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .11px;
    line-height: 1.1;
    text-transform: uppercase;
}

.auth-separator::before,
.auth-separator::after {
    flex: 1 1 auto;
    height: 1px;
    background: #dde2eb;
    content: "";
}

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

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-field__label {
    color: #404651;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.auth-field__label--uppercase {
    font-size: 11px;
    letter-spacing: .11px;
    line-height: 1.1;
    text-transform: uppercase;
}

.auth-input-wrap {
    position: relative;
}

.auth-input {
    display: block;
    width: 100%;
    min-height: 36px;
    padding: 9px 12px;
    border: 1px solid #c5cad1;
    border-radius: 8px;
    background: #fff;
    color: #404651;
    font-family: inherit;
    font-size: 13px;
    line-height: 16px;
}

.auth-input:focus {
    border-color: #226ee0;
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 110, 224, .12);
}

.auth-input--password {
    padding-right: 42px;
}

.auth-input--with-icon {
    padding-left: 36px;
}

.auth-input-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    display: block;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    pointer-events: none;
}

.auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    cursor: pointer;
}

.auth-password-icon {
    display: block;
    width: 24px;
    height: 24px;
}

.auth-password-toggle:focus {
    box-shadow: 0 0 0 2px rgba(34, 110, 224, .2);
    outline: none;
}

.auth-link {
    color: #226ee0;
    font-size: 13px;
    line-height: 1.2;
    text-decoration: none;
}

.auth-link:hover,
.auth-link:focus {
    color: #1b5bc0;
    text-decoration: underline;
    outline: none;
}

.auth-submit {
    display: inline-flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 0;
    border-radius: 8px;
    background: #226ee0;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    transition: background-color .15s ease;
}

.auth-submit:hover,
.auth-submit:focus {
    background: #1b5bc0;
    outline: none;
}

.auth-submit:disabled {
    cursor: not-allowed;
    background: #c5cad1;
}

.auth-form-message {
    min-height: 0;
    color: #d64545;
    font-size: 13px;
    line-height: 1.4;
}

.auth-form-message:empty {
    display: none;
}

.auth-form-message .warning-msg,
.auth-form-message .success-msg {
    padding: 0;
    background: transparent;
}

.auth-switch {
    margin: 0;
    color: #404651;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.auth-info {
    margin: 0;
    color: #404651;
    font-size: 13px;
    line-height: 1.4;
}

.auth-info__email {
    color: #226ee0;
}

.auth-page__footer {
    display: flex;
    flex: 0 0 auto;
    justify-content: center;
    gap: 32px;
}

.auth-page__footer .auth-link {
    line-height: 1.4;
}

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

.auth-one-tap-overlay {
    position: fixed;
    z-index: 9999;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .92);
}

.auth-one-tap-overlay__content {
    text-align: center;
}

.auth-one-tap-overlay__spinner {
    width: 44px;
    height: 44px;
    margin: 0 auto 20px;
    border: 3px solid #e2e5ea;
    border-top-color: #0077ff;
    border-radius: 50%;
    animation: auth-one-tap-spin .8s linear infinite;
}

.auth-one-tap-overlay__title {
    margin-bottom: 4px;
    color: #2c2d2e;
    font-size: 16px;
    font-weight: 600;
}

.auth-one-tap-overlay__text {
    color: #626d7a;
    font-size: 14px;
}

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

.auth-consent-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-consent {
    display: flex;
    position: relative;
    gap: 4px;
    align-items: flex-start;
    padding: 4px 0;
    color: #404651;
    cursor: pointer;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
}

.auth-consent input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.auth-consent__box {
    display: inline-flex;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    border: 1px solid #c5cad1;
    border-radius: 4px;
    background: #fff;
    color: #fff;
    font-size: 11px;
    line-height: 1;
}

.auth-consent input:checked + .auth-consent__box {
    border-color: #226ee0;
    background: #226ee0;
}

.auth-consent input:focus + .auth-consent__box {
    box-shadow: 0 0 0 2px rgba(34, 110, 224, .2);
}

.auth-consent__hint {
    color: #747d8a;
}

.auth-consent-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.auth-consent-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.auth-consent-email {
    display: none;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.auth-consent-email.auth-consent-email--visible {
    display: flex;
}

.auth-consent-error {
    margin: 0;
    color: #d64545;
    font-size: 13px;
    line-height: 1.4;
}

.auth-consent-error:empty {
    display: none;
}

@media (max-width: 575px) {
    .auth-page {
        padding: 24px 16px;
    }

    .auth-page__header {
        margin-bottom: 0;
    }

    .auth-page__content {
        padding: 16px 0 24px;
    }

    .auth-page__logo {
        width: 173px;
        height: 32px;
        transform: none;
    }

    .auth-card {
        padding: 24px;
    }

    .auth-card__title {
        font-size: 24px;
    }

    .auth-page__footer {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        margin-top: 0;
        padding-top: 0;
    }

    .auth-page--consent {
        min-height: 100dvh;
        padding: 32px 16px 24px;
    }

    .auth-page--consent .auth-page__header {
        margin: 0;
    }

    .auth-page--consent .auth-page__content {
        min-height: 0;
    }

    .auth-page--consent .auth-page__footer {
        margin: 0;
        padding: 0;
    }
}
