/* --- Login Separator (Line - Text - Line) --- */
.oauth2-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
    color: #999;
    font-size: 0.9em;
    font-family: sans-serif;
}

/* Create the horizontal lines using pseudo-elements */
.oauth2-separator::before,
.oauth2-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

/* Add spacing around the text label */
.oauth2-separator:not(:empty)::before {
    margin-right: .5em;
}

.oauth2-separator:not(:empty)::after {
    margin-left: .5em;
}

/* --- Provider List Container --- */
.oauth2-login-list {
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    align-items: center;    /* Horizontally centers the list items */
    list-style: none;
    padding: 0;
    width: 100%;
}

/* --- Base Button Styling (LI elements acting as buttons) --- */
.oauth2-login-item {
    display: flex;           /* Enables inner content centering */
    align-items: center;     /* Vertical alignment */
    justify-content: center; /* Horizontal alignment */
    margin-bottom: 12px;
    padding: 8px 16px;
    min-height: 44px;
    width: 50%;              /* Standard width across all providers */
    max-width: 300px;        /* Prevents buttons from becoming too wide */
    border-radius: 2px;
    cursor: pointer;
    box-sizing: border-box;
    background-color: transparent !important;
    border: 1px solid #5e5e5e; /* Default border color */
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.oauth2-login-item:last-child {
    margin-bottom: 0;
}

/* Global hover effect for all buttons */
.oauth2-login-item:hover {
    background-color: rgba(0, 0, 0, 0.03) !important;
}

/* --- Provider Image/Logo Styling --- */
.oauth2-login-item img {
    max-height: 28px;
    width: auto;
    display: block;
}

/* --- Specific Provider Adjustments --- */

/* Microsoft Specific Styles */
.oauth2-login-item--microsoft {
    border-color: #5e5e5e; /* Matches the dark grey border in screenshots */
}

/* Google Specific Styles (Template for expansion) */
.oauth2-login-item--google {
    border-color: #DB4437; /* Use Google's brand color for the border if preferred */
}

/* Facebook Specific Styles (Template for expansion) */
.oauth2-login-item--facebook {
    border-color: #3B5998;
}

/* --- Accessibility Helper --- */
.invisible {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}