/*
 * Reusable "Continue with Google" button.
 *
 * Follows Google Identity brand guidelines:
 *   https://developers.google.com/identity/branding-guidelines
 *
 * Three themes are supported:
 *   - google-login-button--light   (white button, dark text)   [default]
 *   - google-login-button--dark    (dark button, light text)
 *   - google-login-button--neutral (light grey, dark text)
 */

.google-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 40px;
    min-width: 200px;
    padding: 0 16px;
    border-radius: 4px;
    border: 1px solid #dadce0;
    background: #ffffff;
    color: #1f1f1f;
    font-family: "Roboto", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 40px;
    letter-spacing: 0.25px;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
    user-select: none;
    box-sizing: border-box;
}

.google-login-button:hover,
.google-login-button:focus {
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    text-decoration: none;
}

.google-login-button:focus-visible {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}

.google-login-button__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.google-login-button__icon svg {
    display: block;
}

.google-login-button__label {
    flex: 0 1 auto;
    white-space: nowrap;
}

/* Theme: dark */
.google-login-button--dark {
    background: #131314;
    color: #e3e3e3;
    border-color: #8e918f;
}

.google-login-button--dark:hover,
.google-login-button--dark:focus {
    background: #1f1f20;
}

/* Theme: neutral (light grey) */
.google-login-button--neutral {
    background: #f2f2f2;
    color: #1f1f1f;
    border-color: transparent;
}

.google-login-button--neutral:hover,
.google-login-button--neutral:focus {
    background: #e8e8e8;
}

/* Loading state - set by google-login-button.js on click */
.google-login-button--loading {
    opacity: 0.75;
    pointer-events: none;
}

/* Disabled state - applied server-side when OAuth isn't configured */
.google-login-button--disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}
