/* Google-owned branding, deliberately independent of the application's theme tokens.
   Source: https://developers.google.com/identity/branding-guidelines */
@font-face {
    font-family: "Google Sans";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("./google-sans-latin-500.woff2") format("woff2");
}

:is(a, button).google-sign-in {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    min-height: 48px;
    margin-inline: auto;
    padding: 12px 16px;
    border: 1px solid #747775;
    border-radius: 24px;
    background: #ffffff;
    color: #1f1f1f;
    color-scheme: light;
    font:
        500 14px / 20px "Google Sans",
        Arial,
        sans-serif;
    letter-spacing: 0.25px;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
}

.google-sign-in__icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    background: url("./g-logo.png") center / contain no-repeat;
}

.google-sign-in__label {
    min-width: 0;
    text-align: center;
}

:is(a, button).google-sign-in:not(:disabled):hover {
    background: #f8faff;
    border-color: #747775;
    color: #1f1f1f;
    text-decoration: none;
}

:is(a, button).google-sign-in:focus-visible {
    outline: 2px solid #0b57d0;
    outline-offset: 3px;
}

button.google-sign-in:disabled {
    background: #ffffff;
    border-color: #dadce0;
    color: #5f6368;
    cursor: not-allowed;
    opacity: 1;
}
