/**
 * Google: https://developers.google.com/identity/branding-guidelines
 * Facebook: https://developers.facebook.com/docs/facebook-login/web/login-button
 * Meta brand: https://www.meta.com/brand/resources/facebook/logo/
 */

.gfl-social-login {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.gfl-social-login__label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: var(--bs-secondary-color, #6c757d);
    text-align: center;
}

.gfl-social-login__buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Shared button base — web (mobile + desktop), min touch target 40px */
.gfl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.gfl-btn:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

.gfl-btn__logo {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
}

.gfl-btn__logo--facebook {
    width: 20px;
    height: 20px;
}

.gfl-btn__logo img {
    display: block;
    width: 100%;
    height: 100%;
}

.gfl-btn__text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*
 * Google — Light theme, rectangular
 * Fill #FFFFFF | Stroke #747775 1px | Font #1F1F1F Roboto Medium 14/20
 */
.gfl-btn--google {
    border: 1px solid #747775;
    background: #ffffff;
    color: #1f1f1f;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
}

.gfl-btn--google:hover,
.gfl-btn--google:focus {
    background: #f8f9fa;
    border-color: #747775;
    color: #1f1f1f;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    text-decoration: none;
}

.gfl-btn--google .gfl-btn__logo {
    background: #ffffff;
}

/*
 * Facebook — Continue with Facebook
 * Background #1877F2 | White text | Helvetica/Arial 16px semibold
 */
.gfl-btn--facebook {
    border: 1px solid #1877f2;
    background: #1877f2;
    color: #ffffff;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
}

.gfl-btn--facebook:hover,
.gfl-btn--facebook:focus {
    background: #166fe5;
    border-color: #166fe5;
    color: #ffffff;
    text-decoration: none;
}

.gfl-social-login-wrap {
    margin-top: 1rem;
}

.account-social-login-page .card {
    border: 1px solid var(--bs-border-color, #dee2e6);
}

/* Equal prominence on wider screens (Google branding best practice) */
@media (min-width: 576px) {
    .gfl-social-login__buttons {
        flex-direction: row;
    }

    .gfl-btn {
        flex: 1;
        min-width: 0;
    }
}
