/* Social Login Styles */

.social-login-container {
    max-width: 400px;
    margin: 20px auto;
    padding: 20px;
}

.social-login-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

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

.social-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    cursor: pointer;
    position: relative;
}

.social-login-button svg {
    flex-shrink: 0;
}

.social-login-button span {
    flex: 1;
    text-align: center;
}

.social-login-google {
    background-color: #fff;
    color: #3c4043;
    border-color: #dadce0;
}

.social-login-google:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    color: #3c4043;
    text-decoration: none;
}

.social-login-apple {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.social-login-apple:hover {
    background-color: #1a1a1a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    color: #fff;
    text-decoration: none;
}

.social-login-apple svg path {
    fill: #fff;
}

.social-login-separator {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.social-login-separator::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background-color: #ddd;
}

.social-login-separator span {
    position: relative;
    display: inline-block;
    padding: 0 15px;
    background-color: #fff;
    color: #666;
    font-size: 14px;
}

/* Style dla widgetu */
.widget .social-login-container {
    padding: 0;
}

.widget .social-login-buttons {
    gap: 10px;
}

.widget .social-login-button {
    padding: 10px 16px;
    font-size: 14px;
}

/* Style dla formularza logowania WordPress */
#loginform .social-login-container {
    margin: 0;
    padding: 0;
}

#loginform .social-login-separator {
    margin: 16px 0;
}

/* Responsive */
@media (max-width: 480px) {
    .social-login-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .social-login-button span {
        font-size: 14px;
    }
}

/* Loading state */
.social-login-button.loading {
    opacity: 0.6;
    pointer-events: none;
}

.social-login-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 50%;
    border-top-color: transparent;
    animation: social-login-spin 0.6s linear infinite;
    right: 20px;
}

@keyframes social-login-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Error message */
.social-login-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #f5c6cb;
    font-size: 14px;
}

/* Success message */
.social-login-success {
    background-color: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    border: 1px solid #c3e6cb;
    font-size: 14px;
}
