/* Социальные кнопки */
.social-login-section {
    margin-top: 20px;
}

.social-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #666;
    font-size: 14px;
}

.social-divider::before,
.social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.social-divider span {
    padding: 0 15px;
    background: white;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-height: 48px;
}

.social-btn:hover {
    border-color: #ccc;
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.social-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.social-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.social-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Специфичные стили для Google */
.google-btn {
    border-color: #4285f4;
    color: #4285f4;
}

.google-btn:hover {
    border-color: #3367d6;
    background: #f8fbff;
    color: #3367d6;
}

/* Специфичные стили для Facebook */
.facebook-btn {
    border-color: #1877f2;
    color: #1877f2;
}

.facebook-btn:hover {
    border-color: #166fe5;
    background: #f8fbff;
    color: #166fe5;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 480px) {
    .social-btn {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .social-icon {
        width: 18px;
        height: 18px;
    }
}

/* Стили для модального окна */
.login-modal .social-login-section {
    margin-top: 15px;
}

.login-modal .social-divider {
    margin: 15px 0;
}

/* Дополнительные стили для экрана входа с паролем */
.password-login-social {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

/* Анимация загрузки */
.social-btn.loading {
    position: relative;
    color: transparent;
}

.social-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
