/*
 * Social Provider Sign-In Buttons
 * ============================================================
 * Brand-compliant styles for Google, Microsoft, Apple, and
 * generic external identity providers.
 *
 * References:
 *   Google  — https://developers.google.com/identity/branding-guidelines
 *   Microsoft — https://learn.microsoft.com/en-us/entra/identity-platform/howto-add-branding-in-apps
 *   Apple   — https://developer.apple.com/design/human-interface-guidelines/sign-in-with-apple
 */

/* ── Base ──────────────────────────────────────────────────────────────── */

.social-btn {
    display: flex;
    align-items: center;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    gap: 12px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
}

.social-btn:hover,
.social-btn:focus {
    text-decoration: none;
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.social-btn:focus-visible {
    outline: 2px solid #0078D4;
    outline-offset: 2px;
}

/* Icon slot — fixed 20×20, centred */
.social-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    font-size: 20px;
    line-height: 1;
}

.social-btn-icon svg {
    display: block;
    width: 20px;
    height: 20px;
}

.social-btn-icon img {
    display: block;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Label — centred in the remaining space, offset to account for icon */
.social-btn-label {
    flex: 1;
    text-align: center;
    margin-right: 20px; /* equals icon width so text appears visually centred */
}

/* ── Google ────────────────────────────────────────────────────────────── */

.social-btn-google {
    background-color: #FFFFFF;
    border-color: #747775;
    border-radius: 4px;
    color: #1F1F1F;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.25px;
}

.social-btn-google:hover {
    background-color: #F8FAFE;
    border-color: #747775;
    color: #1F1F1F;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.social-btn-google:active {
    background-color: #EEF3FB;
}

/* ── Microsoft ─────────────────────────────────────────────────────────── */

.social-btn-microsoft {
    background-color: #FFFFFF;
    border-color: #8C8C8C;
    border-radius: 0;               /* Microsoft brand requires square corners */
    color: #5E5E5E;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.social-btn-microsoft:hover {
    background-color: #F5F5F5;
    border-color: #8C8C8C;
    color: #5E5E5E;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.social-btn-microsoft:active {
    background-color: #EBEBEB;
}

/* ── Apple ─────────────────────────────────────────────────────────────── */

.social-btn-apple {
    background-color: #FFFFFF;
    border-color: #000000;
    border-radius: 6px;
    color: #000000;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    font-size: 15px;
    font-weight: 500;
}

.social-btn-apple:hover {
    background-color: #F5F5F5;
    border-color: #000000;
    color: #000000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.social-btn-apple:active {
    background-color: #EBEBEB;
    border-color: #000000;
}

/* ── Generic / Other Providers ─────────────────────────────────────────── */

.social-btn-generic {
    background-color: #FFFFFF;
    border-color: #D1D5DB;
    border-radius: 4px;
    color: #374151;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
}

.social-btn-generic .social-btn-icon {
    color: #6B7280;
}

.social-btn-generic:hover {
    background-color: #F9FAFB;
    border-color: #9CA3AF;
    color: #374151;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.social-btn-generic:active {
    background-color: #F3F4F6;
}
