/**
 * Quick Firebase Auth — Social Login Button Styles
 *
 * Clean, modern social login buttons for wp-login.php and WooCommerce.
 */

/* Wrapper */
.qfa-social-login-wrap {
    margin: 24px 0 16px;
    text-align: center;
}

/* Extra breathing room on wp-login.php */
.login .qfa-social-login-wrap {
    margin: 28px 0 20px;
}

/* Divider */
.qfa-social-divider {
    position: relative;
    margin: 20px 0 16px;
    text-align: center;
}

.qfa-social-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dcdcde;
}

.qfa-social-divider span {
    position: relative;
    display: inline-block;
    padding: 0 14px;
    background: #fff;
    color: #787c82;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* WP Login page has different background */
.login .qfa-social-divider span {
    background: #f0f0f1;
}

/* Button container */
.qfa-social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: opacity 0.2s ease;
}

.qfa-social-buttons.qfa-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Base button style */
.qfa-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fff;
    color: #1d2327;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.qfa-social-btn:hover {
    border-color: #a7aaad;
    background: #f6f7f7;
}

.qfa-social-btn:active {
    transform: scale(0.98);
}

.qfa-social-btn:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

.qfa-social-btn svg {
    flex-shrink: 0;
}

/* Provider-specific styles */
.qfa-social-btn--google {
    border-color: #dadce0;
    background: #fff;
    color: #3c4043;
}

.qfa-social-btn--google:hover {
    background: #f8f9fa;
    border-color: #c6c8ca;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.qfa-social-btn--facebook {
    border-color: #1877F2;
    background: #1877F2;
    color: #fff;
}

.qfa-social-btn--facebook:hover {
    background: #166fe5;
    border-color: #166fe5;
    box-shadow: 0 1px 3px rgba(24, 119, 242, 0.3);
}

.qfa-social-btn--facebook svg path {
    fill: #fff;
}

.qfa-social-btn--apple {
    border-color: #000;
    background: #000;
    color: #fff;
}

.qfa-social-btn--apple:hover {
    background: #1a1a1a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Error message */
.qfa-social-error {
    margin-top: 12px;
    padding: 10px 14px;
    background: #fcf0f1;
    border: 1px solid #d63638;
    border-radius: 4px;
    color: #d63638;
    font-size: 13px;
    text-align: left;
}

/* Loading indicator */
.qfa-social-loading {
    margin-top: 12px;
    padding: 10px 0;
    color: #787c82;
    font-size: 13px;
}

.qfa-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #dcdcde;
    border-top-color: #2271b1;
    border-radius: 50%;
    animation: qfa-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes qfa-spin {
    to {
        transform: rotate(360deg);
    }
}

/* WooCommerce-specific adjustments */
.woocommerce .qfa-social-login-wrap {
    margin: 24px 0;
}

.woocommerce .qfa-social-btn {
    padding: 14px 20px;
    font-size: 15px;
}

.woocommerce .qfa-social-divider span {
    background: #fff;
}

/* Checkout social buttons */
.qfa-wc-checkout-social {
    margin-bottom: 20px;
}

.qfa-wc-checkout-social .qfa-social-divider span {
    background: #fff;
}

/* Responsive */
@media (max-width: 480px) {
    .qfa-social-btn {
        padding: 12px 16px;
        font-size: 15px;
    }
}