.social-login-section {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    position: relative;
}

.social-divider {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
}

.social-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #dee2e6 20%, #dee2e6 80%, transparent);
}

.social-divider span {
    position: relative;
    display: inline-block;
    padding: 0 1rem;
    background: white;
    color: #6c757d;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.875rem 1.25rem;
    margin-bottom: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #ffffff;
    color: #3c4043;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Dark mode for social login buttons - session based */
[data-bs-theme="dark"] .social-login-btn {
    background: #2b3035;
    border-color: #495057;
    color: #e9ecef;
}

[data-bs-theme="dark"] .social-divider span {
    background: #212529;
    color: #adb5bd;
}

[data-bs-theme="dark"] .social-divider::before {
    background: linear-gradient(to right, transparent, #495057 20%, #495057 80%, transparent);
}

[data-bs-theme="dark"] .social-login-btn span {
    color: #e9ecef;
}



.social-login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 75%, #ea4335 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.social-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.08);
    border-color: #4285f4;
}

[data-bs-theme="dark"] .social-login-btn:hover {
    background: #343a40;
    border-color: #4285f4;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.3);
}

.social-login-btn:hover::before {
    opacity: 0.08;
}

.social-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.social-login-btn svg {
    width: 24px;
    height: 24px;
    margin-right: 1rem;
    flex-shrink: 0;
    z-index: 1;
}

.social-login-btn span {
    z-index: 1;
    position: relative;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .social-divider span {
        background: #212529;
        color: #adb5bd;
    }

    .social-divider::before {
        background: linear-gradient(to right, transparent, #495057 20%, #495057 80%, transparent);
    }

    .social-login-btn {
        background: #2b3035;
        border-color: #495057;
        color: #e9ecef;
    }

    .social-login-btn:hover {
        background: #343a40;
        border-color: #4285f4;
    }

    .social-login-btn svg path {
        transition: fill 0.3s ease;
    }

    /* Google button in dark mode */
    .social-login-btn:hover svg path:nth-child(1) {
        fill: #4285F4;
    }

    .social-login-btn span {
        color: #e9ecef;
    }
}

/* Animation for button */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(66, 133, 244, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0);
    }
}

.social-login-btn:focus {
    outline: none;
    animation: pulse 1.5s;
}

/* GitHub button uses all the same styles as Google button */
/* No special styling needed - it inherits everything from .social-login-btn */

/* HTML-based dark mode support (data-bs-theme) */
html[data-bs-theme="dark"] .social-divider span {
    background: #212529;
    color: #adb5bd;
}

html[data-bs-theme="dark"] .social-divider::before {
    background: linear-gradient(to right, transparent, #495057 20%, #495057 80%, transparent);
}

html[data-bs-theme="dark"] .social-login-btn {
    background: #2b3035;
    border-color: #495057;
    color: #e9ecef;
}

html[data-bs-theme="dark"] .social-login-btn:hover {
    background: #343a40;
    border-color: #4285f4;
}

html[data-bs-theme="dark"] .social-login-btn span {
    color: #e9ecef;
}
