/*
 * The sign-in provider's button on the login screen (#sso-btn; batch 4 §8).
 *
 * The provider's sign-in branding guidelines fix this button's look, so it is the one place a
 * vendor's name and colours appear in the UI (spec §0.6, the documented R-78 exception; this file
 * never names the vendor itself, since the R-78 sweep reads every stylesheet): the standard
 * four-colour "G" (inline SVG in index.html, unaltered), the button text in Roboto Medium 14 px
 * (Arial when Roboto is not installed; the app loads no web font for it), 40 px high, pill shape,
 * the provider's dark theme (#131314, #8E918F border, #E3E3E3 text) on the app's dark theme and its
 * light theme (white, #747775 border, #1F1F1F text) on the light one, with the provider's hover
 * shadow and state overlay. Those values are the guidelines', kept here as --gsi-* properties
 * rather than app tokens; spacing around the button and the keyboard focus ring (an outline outside the button,
 * never on its fill) are the app's (UI overhaul, brief §6.15).
 */
.sso-btn {
    --gsi-bg: #131314;
    --gsi-border: #8e918f;
    --gsi-text: #e3e3e3;
    --gsi-state: #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: min-content;
    height: 40px;
    margin-top: var(--space-3);
    padding: 0 12px;
    border: 1px solid var(--gsi-border);
    border-radius: 20px;
    background: var(--gsi-bg);
    color: var(--gsi-text);
    font-family: Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.25px;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
    transition: background-color .218s, border-color .218s, box-shadow .218s;
}
[data-theme="light"] .sso-btn {
    --gsi-bg: #ffffff;
    --gsi-border: #747775;
    --gsi-text: #1f1f1f;
    --gsi-state: #303030;
}
/* First in the panel when password sign-in is off (production). */
.auth-password-fields[hidden] + .sso-btn { margin-top: 0; }
.sso-btn-state {
    position: absolute;
    inset: 0;
    background: var(--gsi-state);
    opacity: 0;
    transition: opacity .218s;
}
.sso-btn-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.sso-btn-icon { display: block; width: 20px; min-width: 20px; height: 20px; }
.sso-btn-icon svg { display: block; }
.sso-btn-contents { overflow: hidden; text-overflow: ellipsis; }
.sso-btn:hover { box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15); }
.sso-btn:hover .sso-btn-state { opacity: .08; }
.sso-btn:active .sso-btn-state,
.sso-btn:focus-visible .sso-btn-state { opacity: .12; }
.sso-btn:focus-visible { outline: 2px solid var(--c-focus); outline-offset: 2px; }
.sso-btn:disabled { cursor: default; opacity: .62; }
.sso-btn:disabled .sso-btn-state { opacity: 0; }
