/**
 * Social Login Buttons - OAuth 2.0 Authentication
 * Styling for Google, Microsoft, GitHub login buttons
 * Cyber Lux theme integration
 */

.social-login-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0;
}

/* Base Social Button Styles */
.social-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.social-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Google Button */
.google-btn {
    border-color: #4285F4 !important;
    color: #4285F4 !important;
    background: rgba(66, 133, 244, 0.05);
}

.google-btn:hover {
    background: rgba(66, 133, 244, 0.15);
    border-color: #4285F4 !important;
    box-shadow: 0 8px 24px rgba(66, 133, 244, 0.3);
}

.google-btn .mud-button-label {
    color: #4285F4;
}

.google-btn .mud-icon-root {
    color: #4285F4;
}

/* Microsoft Button */
.microsoft-btn {
    border-color: #00A4EF !important;
    color: #00A4EF !important;
    background: rgba(0, 164, 239, 0.05);
}

.microsoft-btn:hover {
    background: rgba(0, 164, 239, 0.15);
    border-color: #00A4EF !important;
    box-shadow: 0 8px 24px rgba(0, 164, 239, 0.3);
}

.microsoft-btn .mud-button-label {
    color: #00A4EF;
}

.microsoft-btn .mud-icon-root {
    color: #00A4EF;
}

/* GitHub Button */
.github-btn {
    border-color: #6e5494 !important;
    color: #6e5494 !important;
    background: rgba(110, 84, 148, 0.05);
}

.github-btn:hover {
    background: rgba(110, 84, 148, 0.15);
    border-color: #6e5494 !important;
    box-shadow: 0 8px 24px rgba(110, 84, 148, 0.3);
}

.github-btn .mud-button-label {
    color: #6e5494;
}

.github-btn .mud-icon-root {
    color: #6e5494;
}

/* Cyber Lux Glow Effects */
.social-btn {
    position: relative;
}

.social-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.google-btn::after {
    box-shadow: inset 0 0 20px rgba(66, 133, 244, 0.3);
}

.microsoft-btn::after {
    box-shadow: inset 0 0 20px rgba(0, 164, 239, 0.3);
}

.github-btn::after {
    box-shadow: inset 0 0 20px rgba(110, 84, 148, 0.3);
}

.social-btn:hover::after {
    opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .social-login-container {
        gap: 10px;
    }

    .social-btn {
        font-size: 14px;
        padding: 10px 16px;
    }
}

/* Dark Theme Adjustments */
@media (prefers-color-scheme: dark) {
    .google-btn {
        background: rgba(66, 133, 244, 0.08);
    }

    .microsoft-btn {
        background: rgba(0, 164, 239, 0.08);
    }

    .github-btn {
        background: rgba(110, 84, 148, 0.08);
    }

    .google-btn:hover {
        background: rgba(66, 133, 244, 0.2);
    }

    .microsoft-btn:hover {
        background: rgba(0, 164, 239, 0.2);
    }

    .github-btn:hover {
        background: rgba(110, 84, 148, 0.2);
    }
}

/* Loading State */
.social-btn.mud-button-loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Disabled State */
.social-btn.mud-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.social-btn.mud-button-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Focus States for Accessibility */
.social-btn:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.social-btn:focus:not(:focus-visible) {
    outline: none;
}

/* Animation for Initial Load */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.social-login-container .social-btn {
    animation: slideInUp 0.4s ease-out backwards;
}

.social-login-container .social-btn:nth-child(1) {
    animation-delay: 0.1s;
}

.social-login-container .social-btn:nth-child(2) {
    animation-delay: 0.2s;
}

.social-login-container .social-btn:nth-child(3) {
    animation-delay: 0.3s;
}
