/* Стили для авторизации через Яндекс */

/* Контейнер с кнопкой Яндекс на странице логина/регистрации */
.auth-yandex {
    margin: 16px 0;
}

.auth-yandex__or {
    text-align: center;
    color: var(--text-muted, #8d94a5);
    font-size: 13px;
    margin: 14px 0;
    position: relative;
    text-transform: lowercase;
}

.auth-yandex__or::before,
.auth-yandex__or::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 35%;
    height: 1px;
    background: var(--line, #2b3347);
}

.auth-yandex__or::before {
    left: 0;
}

.auth-yandex__or::after {
    right: 0;
}

#yandexSuggestContainer,
#yandexSuggestProfileContainer {
    min-height: 50px;
    display: flex;
    justify-content: center;
}

/* Блок статуса Яндекс-аккаунта в профиле */
.yandex-status {
    width: 100%;
}

.yandex-status__connected,
.yandex-status__disconnected {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 12px;
    background: var(--panel-2, #1a2030);
    border: 1px solid var(--line-soft, #232a3a);
}

.yandex-status__disconnected {
    flex-wrap: wrap;
}

.yandex-status__avatar {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--panel, #151922);
    display: flex;
    align-items: center;
    justify-content: center;
}

.yandex-status__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yandex-status__avatar-placeholder,
.yandex-status__icon {
    width: 100%;
    height: 100%;
    background: #FFCC00;
    color: #000;
    font-weight: 700;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.yandex-status__icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    font-size: 22px;
}

.yandex-status__info {
    flex: 1 1 auto;
    min-width: 200px;
}

.yandex-status__name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text, #f3f5f8);
    margin-bottom: 2px;
}

.yandex-status__login {
    font-size: 13px;
    color: var(--text-muted, #8d94a5);
}

.yandex-status__email {
    font-size: 13px;
    color: var(--text-soft, #c4c9d4);
    margin-top: 4px;
}

.yandex-status__meta {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.yandex-status__date {
    font-size: 12px;
    color: var(--text-muted, #8d94a5);
}

.yandex-status__actions {
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.yandex-status__text {
    flex: 1 1 auto;
    min-width: 200px;
}

.yandex-status__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text, #f3f5f8);
}

.yandex-status__subtitle {
    font-size: 13px;
    color: var(--text-muted, #8d94a5);
    margin-top: 2px;
}

@media (max-width: 640px) {
    .yandex-status__connected,
    .yandex-status__disconnected {
        flex-wrap: wrap;
    }
    .yandex-status__avatar,
    .yandex-status__icon {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        font-size: 22px;
    }
    .yandex-status__actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-start;
    }
}
