/**
 * Кнопка входа через VK ID.
 * Оформление фирменное: синий VK (#0077FF), белый логотип и подпись.
 * Селекторы продублированы с тегом a, чтобы перебивать стили ссылок шаблона
 */
.vkid_button,
a.vkid_button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    max-width: 320px;
    min-height: 44px;
    padding: 11px 20px;
    border: none;
    border-radius: 10px;
    background: #07f;
    color: #fff;
    font-size: 15px;
    line-height: 20px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease;
}

.vkid_button:hover,
a.vkid_button:hover,
.vkid_button:focus,
a.vkid_button:focus {
    background: #0062d1;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 119, 255, .35);
}

.vkid_button:active,
a.vkid_button:active {
    background: #0056b8;
    box-shadow: none;
}

.vkid_button:focus-visible {
    outline: 2px solid #0056b8;
    outline-offset: 2px;
}

.vkid_button .vkid_button_icon {
    display: inline-flex;
    flex: 0 0 auto;
    color: #fff;
}

.vkid_button .vkid_button_icon svg {
    display: block;
}

.vkid_button .vkid_button_title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/**
 * Строка привязки сервиса на странице безопасности профиля.
 * Раскладка общая для всех компонентов авторизации, отличается только акцент,
 * поэтому правила продублированы в каждом компоненте и он остаётся автономным
 */
.oauth_binding {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    box-sizing: border-box;
    padding: 12px 16px;
    margin-bottom: 8px;
    border: 1px solid rgba(128, 128, 128, .25);
    border-radius: 10px;
}

.oauth_binding .oauth_binding_service {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    font-weight: 500;
}

.oauth_binding .oauth_binding_icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: #fff;
}

.oauth_binding .oauth_binding_icon_vkid {
    background: #07f;
}

.oauth_binding .oauth_binding_state {
    flex: 1 1 auto;
    font-size: 14px;
}

.oauth_binding .oauth_binding_linked {
    font-weight: 500;
}

.oauth_binding .oauth_binding_unlinked,
.oauth_binding .oauth_binding_date {
    opacity: .7;
}

.oauth_binding .oauth_binding_date::before {
    content: ' · ';
}

.oauth_binding .oauth_binding_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.oauth_binding .oauth_binding_button_vkid {
    background: #07f;
    color: #fff;
}

.oauth_binding .oauth_binding_button_vkid:hover {
    background: #0062d1;
    color: #fff;
    text-decoration: none;
}

.oauth_binding .oauth_binding_button_off {
    background: transparent;
    border-color: rgba(128, 128, 128, .4);
    color: inherit;
}

.oauth_binding .oauth_binding_button_off:hover {
    background: rgba(128, 128, 128, .12);
    color: inherit;
    text-decoration: none;
}
