/**
 * Кнопка входа через Яндекс ID.
 * Оформление фирменное: красный Яндекс (#FC3F1D), белая плашка логотипа.
 * Геометрия совпадает с кнопкой VK ID, чтобы кнопки соцсетей вставали в столбик.
 * Селекторы продублированы с тегом a, чтобы перебивать стили ссылок шаблона
 */
.yandexid_button,
a.yandexid_button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    width: 100%;
    max-width: 320px;
    min-height: 44px;
    margin-top: 8px;
    padding: 11px 20px;
    border: none;
    border-radius: 10px;
    background: #fc3f1d;
    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;
}

.yandexid_button:hover,
a.yandexid_button:hover,
.yandexid_button:focus,
a.yandexid_button:focus {
    background: #e5350f;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(252, 63, 29, .35);
}

.yandexid_button:active,
a.yandexid_button:active {
    background: #cc2f0c;
    box-shadow: none;
}

.yandexid_button:focus-visible {
    outline: 2px solid #cc2f0c;
    outline-offset: 2px;
}

.yandexid_button .yandexid_button_icon {
    display: inline-flex;
    flex: 0 0 auto;
}

.yandexid_button .yandexid_button_icon svg {
    display: block;
}

.yandexid_button .yandexid_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_yandexid {
    background: #fc3f1d;
}

.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_yandexid {
    background: #fc3f1d;
    color: #fff;
}

.oauth_binding .oauth_binding_button_yandexid:hover {
    background: #e5350f;
    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;
}
