/**
 * Social Login Button Styles
 * Copyright 2005-Present, ITS MY SEAT INC.
 * Created: January 17, 2026
 */

/* ============================================
   SOCIAL LOGIN SECTION CONTAINER
   ============================================ */
.social-login-section {
    margin: 20px 0;
    padding: 15px 0;
}

/* ============================================
   DIVIDER WITH "OR CONTINUE WITH" TEXT
   ============================================ */
.social-login-divider {
    display: flex;
    align-items: center;
    margin: 15px 0;
    text-align: center;
}

.social-login-divider::before,
.social-login-divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.social-login-divider span {
    padding: 0 15px;
    color: #666;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* ============================================
   BUTTON CONTAINER
   ============================================ */
.social-login-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

/* ============================================
   BASE BUTTON STYLES
   ============================================ */
.btn-social {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    min-width: 120px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    color: #333;
    transition: all 0.2s ease;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-social:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.btn-social:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-social:focus {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

.btn-social img {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ============================================
   PROVIDER-SPECIFIC STYLES
   ============================================ */

/* Google */
.btn-google {
    border-color: #dadce0;
}
.btn-google:hover {
    border-color: #4285f4;
    background: #f8f9ff;
}

/* Facebook */
.btn-facebook {
    border-color: #dbe4f0;
}
.btn-facebook:hover {
    border-color: #1877f2;
    background: #f0f5ff;
}

/* Apple */
.btn-apple {
    border-color: #d2d2d7;
}
.btn-apple:hover {
    border-color: #000;
    background: #f5f5f7;
}

/* Microsoft */
.btn-microsoft {
    border-color: #d5e5f5;
}
.btn-microsoft:hover {
    border-color: #00a4ef;
    background: #f0f9ff;
}

/* ============================================
   DARK MODE / INVERSE BUTTONS (optional)
   ============================================ */
.btn-social.btn-dark {
    background: #333;
    color: #fff;
    border-color: #333;
}
.btn-social.btn-dark:hover {
    background: #444;
}

.btn-google.btn-dark {
    background: #4285f4;
    border-color: #4285f4;
    color: #fff;
}
.btn-google.btn-dark:hover {
    background: #3367d6;
}

.btn-facebook.btn-dark {
    background: #1877f2;
    border-color: #1877f2;
    color: #fff;
}
.btn-facebook.btn-dark:hover {
    background: #166fe5;
}

.btn-apple.btn-dark {
    background: #000;
    border-color: #000;
    color: #fff;
}
.btn-apple.btn-dark:hover {
    background: #333;
}

.btn-microsoft.btn-dark {
    background: #00a4ef;
    border-color: #00a4ef;
    color: #fff;
}
.btn-microsoft.btn-dark:hover {
    background: #0078d4;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 600px) {
    .social-login-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-social {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   LOADING STATE
   ============================================ */
.btn-social.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-social.loading::after {
    content: "";
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.btn-social:focus-visible {
    outline: 3px solid #4285f4;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-social {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .btn-social {
        transition: none;
    }
    .btn-social:hover {
        transform: none;
    }
    .btn-social.loading::after {
        animation: none;
    }
}
