.oauth-pilot-hint {
    font-size: 13px;
    line-height: 1.4;
    color: #cfd5df;
    margin: 0 0 10px;
}

.oauth-login-block {
    margin-bottom: 12px;
}

.oauth-login-block__title {
    margin-bottom: 8px;
}

.oauth-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* OAuth-кнопка в стиле .button-blue сайта (#1462c2) */
.oauth-btn {
    display: flex;
    align-items: stretch;
    height: 38px;
    border: none;
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    background-color: #1462c2;
    transition: background 0.1s linear;
}

.oauth-btn:hover,
.oauth-btn:focus {
    text-decoration: none;
    color: #fff;
    background-color: #1569ce;
}

.oauth-btn:active {
    box-shadow: inset 0 5px 5px rgba(0, 0, 0, 0.15);
}

.oauth-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

.oauth-btn__icon {
    flex: 0 0 34px;
    width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, 0.28);
}

.oauth-btn__logo {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.oauth-btn__label {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.15;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Резерв под Госуслуги: место без кнопки */
.oauth-btn-slot {
    height: 38px;
    flex-shrink: 0;
}

.oauth-btn-slot_esia {
    /* зарезервировано */
}

/* Hamburger login: узкая колонка OAuth → шире поля справа */
.hamburger__mainbox-login .login-left {
    width: 118px;
    margin-right: 12px;
}

@media (max-width: 1000px) {
    .hamburger__mainbox-login .login-left {
        width: 108px;
        margin-right: 10px;
    }

    .login-left .oauth-btn__label {
        font-size: 10px;
        padding: 0 4px;
    }
}

@media (max-width: 500px) {
    .hamburger__mainbox-login .login-left {
        width: 100%;
        float: none;
        margin: 0 0 12px;
    }

    .login-left .oauth-login-buttons .oauth-btn,
    .login-left .oauth-login-buttons .oauth-btn-slot {
        max-width: 160px;
    }

    .login-left .oauth-btn__label {
        font-size: 12px;
        padding: 0 8px;
        white-space: normal;
    }
}

.login-left .oauth-pilot-hint {
    margin-bottom: 8px;
}

.login-left .form-group,
.login-left .oauth-login-block {
    margin-bottom: 0;
}

.login-left .oauth-login-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.login-left .oauth-login-buttons .oauth-btn,
.login-left .oauth-login-buttons .oauth-btn-slot {
    width: 100%;
    max-width: 100%;
}

/* ЛК /personal/profile: компактные OAuth-кнопки */
.profile-auth-bind .oauth-login-buttons {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    width: 118px;
    max-width: 100%;
}

.profile-auth-bind .oauth-login-buttons .oauth-btn {
    width: 100%;
}

/* /register — компактные OAuth-кнопки как login-left / profile */
.oauth-register-block {
    margin-bottom: 16px;
}

.oauth-register-block .oauth-login-block {
    margin-bottom: 0;
}

.oauth-register-block .oauth-login-block__title {
    display: block;
    margin-bottom: 5px;
    color: #62727e;
    font-size: inherit;
    font-weight: normal;
    cursor: text;
}

.oauth-register-block .oauth-login-buttons {
    display: inline-flex;
    flex-direction: column;
    gap: 8px;
    width: 118px;
    max-width: 100%;
}

.oauth-register-block .oauth-login-buttons .oauth-btn,
.oauth-register-block .oauth-login-buttons .oauth-btn-slot {
    width: 100%;
}

.sign-up-form .oauth-register-block a.oauth-btn,
.sign-up-form .oauth-register-block a.oauth-btn:hover,
.sign-up-form .oauth-register-block a.oauth-btn:focus {
    text-decoration: none;
    color: #fff;
}

@media (max-width: 450px) {
    .oauth-register-block .oauth-login-buttons {
        width: 100%;
        max-width: 160px;
    }
}
