.user-auth {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    flex-direction: column;
}

.user-auth-container {
    background: white;
    padding: 15px 20px 20px 20px;
    border-radius: 4px;
    width: 304px;
}

.user-auth[com="phone"] .user-auth-container-title:before {
    content: "Введите ваш телефон";
}

.user-auth[com="sms"] .user-auth-container-title:before {
    content: "Введите код из СМС";
}

.user-auth[wait]:after {
    content: attr(wait);
    font-size: 20px;
    margin-top: 10px;
    width: 55px;
}

.g-recaptcha.err {
    background: var(--background-color);
    border: 1px solid var(--background-color);
    border-radius: 4px;
    border-color: red;
}

.user-auth[com="phone"] .user-auth-container-but:before {
    content: "Получить SMS-код";
}

.user-auth[com="sms"] .user-auth-container-but:before {
    content: "Проверить код";
}

.user-auth[wait] .user-auth-container-but {
    background: var(--light-gray-color);
    cursor: wait;
    color: var(--dark-gray-color);
}

.messenger-auth-instruction {
    text-align: start;
    margin: 20px 0;
}

.telegram-login-link,
.max-login-link {
    color: white;
    border: 1px solid #eff5f6;
    gap: 15px;
}

.telegram-login-link {
    background-color: var(--telegram-background-color);
}

.max-login-link {
    background: linear-gradient(135deg, var(--components-button-gradint-fill-1) 0%, var(--components-button-gradint-fill-2) 100%);
}

.user-auth.messenger-auth .telegram-login-link,
.user-auth.messenger-auth .max-login-link,
.messenger-auth-instruction.mobile {
    display: none;
}

.messenger-qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    flex-direction: column;
    gap: 5px;
}

.messenger-qr-code:hover {
    transform: scale(1.05);
    transition: 0.15s;
}

.messenger-qr-code .telegram-bot-link {
    opacity: 0.8;
    font-size: 12px;
}

.messenger-qr-code {
    width: 200px;
}

.login-methods-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 15px;
}

@media (max-width: 600px) {
    .user-auth-container {
        position: absolute;
        top: 4vh;
        z-index: 1;
    }

    .login-emblem {
        position: absolute;
        top: 30vh;
        content: "";
        background: url(/public/img/login_emblem.svg) no-repeat center;
        background-size: contain;
        display: block;
        width: 80%;
        height: 50%;
        user-select: none;
    }

    .user-auth.messenger-auth .telegram-login-link,
    .user-auth.messenger-auth .max-login-link {
        display: flex;
    }

    .messenger-qr-container,
    .messenger-auth-timer,
    .messenger-auth-instruction.desktop {
        display: none;
    }

    .messenger-auth-instruction.mobile {
        display: block;
    }
}
