/* =========================================
   „Mit Google anmelden“ — Knopf nach Googles Sign-in-Branding
   https://developers.google.com/identity/branding-guidelines (abgerufen 24.10.2026)
   - Light-Theme: Füllung #FFFFFF, Rand 1px #747775 (innen), Schrift #1F1F1F
   - Schrift Google Sans Medium 14/20 (lokal, Teilmenge, OFL — kein Google-CDN)
   - Abstände Web: 12px links vom Logo, 10px Logo–Text, 12px rechts vom Text
   - Logo: Standard-„G“ aus dem offiziellen Bundle (signin-assets.zip), 20px, unverändert
   Nur auf login.html und signup.html eingebunden.
   ========================================= */

@font-face {
    font-family: 'Google Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/google-sans/google-sans-500-subset.woff2') format('woff2');
}

.gsi-block[hidden] { display: none; }

.gsi-button {
    position: relative;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 40px;
    padding: 0 12px;
    background: #FFFFFF;
    border: 1px solid #747775;
    border-radius: 4px;
    color: #1F1F1F;
    font-family: 'Google Sans', Roboto, Arial, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.25px;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Material-Zustandsschicht (Hover 8 %, Fokus/Druck 12 %) über dem Knopf */
.gsi-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: #303030;
    opacity: 0;
    transition: opacity .2s;
    pointer-events: none;
}
.gsi-button:hover::before { opacity: .08; }
.gsi-button:focus-visible::before,
.gsi-button:active::before { opacity: .12; }
.gsi-button:focus-visible { outline: 2px solid #1F1F1F; outline-offset: 2px; }

.gsi-button[aria-disabled="true"] { pointer-events: none; }
.gsi-button[aria-disabled="true"] .gsi-logo,
.gsi-button[aria-disabled="true"] .gsi-text { opacity: .38; }

.gsi-logo {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    flex-shrink: 0;
}

.gsi-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.gsi-note {
    margin: 10px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #64748b;
    text-align: center;
}
.gsi-note a { color: inherit; text-decoration: underline; }

/* Trenner „oder“ zwischen Google-Knopf und Formular */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: #94a3b8;
    font-size: 13px;
}
.auth-divider[hidden] { display: none; }
.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Hinweis-/Fehlerbox der Google-Anmeldung */
.gsi-message {
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}
.gsi-message.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.gsi-message.info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; }
