/* #64: clean, consistent external-login buttons.
   Every provider button is identical and neutral — the ONLY brand color is the small icon SVG.
   The button chrome is driven by the app's MudBlazor theme variables, so it blends with the
   current theme (dark ember/cerulean or light) instead of a hardcoded colour, and picks up the
   ember Primary accent on hover/focus. */

.external-login {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 0 16px;
    margin-top: 5px;
    margin-bottom: 5px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 6px;
    background-color: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    box-sizing: border-box;
    transition: border-color 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.external-login:hover {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    color: var(--mud-palette-text-primary);
    text-decoration: none;
    filter: brightness(1.08);
}

.external-login:active {
    filter: brightness(0.96);
    box-shadow: none;
}

.external-login:focus-visible {
    outline: 2px solid var(--mud-palette-primary);
    outline-offset: 2px;
}

.full-width {
    width: 100%;
}

/* Brand icon (color lives here, not on the button) */
.external-login-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.external-login-icon svg {
    display: block;
}

.external-login-text {
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* The X mark is monochrome — follow the button's (themed) text color. */
.external-login .x-icon {
    color: var(--mud-palette-text-primary);
}
