/* Google sign-in button + password fallback. Loaded only by the two login pages
   and layered on top of style.css's .login-box. */

.google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    padding: 11px 16px;
    margin: 4px 0 0;
    background: #fff;
    color: #3c4043;
    /* Google's own button spec: Roboto/system stack, 500 weight, 14px. */
    font: 500 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    text-decoration: none;
    border: 1px solid #dadce0;
    border-radius: 6px;
    transition: background-color .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.google-btn:hover   { background: #f7f8f8; border-color: #d2d5d9; box-shadow: 0 1px 3px rgba(60,64,67,.16); }
.google-btn:active  { background: #eef0f1; }
.google-btn:focus-visible {
    outline: 2px solid #4285f4;
    outline-offset: 2px;
}
.google-btn svg { flex: 0 0 auto; }

.auth-hint {
    margin: 12px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
    text-align: center;
}

.auth-fallback {
    margin-top: 18px;
    border-top: 1px solid #e5e7eb;
    padding-top: 14px;
}
.auth-fallback > summary {
    cursor: pointer;
    font-size: 12px;
    color: #6b7280;
    list-style: none;
    text-align: center;
    /* The password path is the emergency route, not the everyday one — keep it
       present but visually quiet so Google stays the obvious default. */
}
.auth-fallback > summary::-webkit-details-marker { display: none; }
.auth-fallback > summary:hover { color: #374151; text-decoration: underline; }
.auth-fallback[open] > summary { margin-bottom: 10px; }

.auth-pwform label { display: block; margin-bottom: 10px; }

@media (prefers-color-scheme: dark) {
    .google-btn { background: #131314; color: #e3e3e3; border-color: #8e918f; }
    .google-btn:hover  { background: #1c1d1f; border-color: #a2a5a3; }
    .google-btn:active { background: #232427; }
    .auth-hint { color: #9aa0a6; }
    .auth-fallback { border-top-color: #3c4043; }
    .auth-fallback > summary { color: #9aa0a6; }
    .auth-fallback > summary:hover { color: #e3e3e3; }
}
