
/* Shared Google OAuth option for standalone and popup authentication. */
.google-auth-option {
    margin-top: 1.5rem;
    width: 100%;
}
.google-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0 0 1rem;
    color: #687584;
    font-size: 0.85rem;
    text-align: center;
}
.google-auth-divider::before,
.google-auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #dce3e9;
}
.google-auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 46px;
    width: 100%;
    padding: 0.65rem 1rem;
    border: 1px solid #cbd5df;
    border-radius: 8px;
    background: #fff;
    color: #15283a !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color .15s ease, border-color .15s ease;
}
.google-auth-button:hover,
.google-auth-button:focus-visible {
    background: #f3f7fa;
    border-color: #8398ae;
    color: #15283a !important;
}
.google-auth-button:focus-visible {
    outline: 3px solid rgba(33, 200, 122, .35);
    outline-offset: 2px;
}
.google-auth-button i {
    color: #4285f4;
    font-size: 1.1rem;
}

/* Minimal, non-blocking Google OAuth activity indicator: spinner only. */
.google-oauth-waiting {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 10010;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    padding: 11px;
    border: 1px solid rgba(218, 227, 233, .85);
    border-radius: 50%;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 24px rgba(15, 36, 57, .12);
    color: #0f2439;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.google-oauth-waiting[hidden] { display: none !important; }

/* Google-colored circular loader: no text or large dialog while waiting. */
.google-oauth-indicator {
    position: relative;
    display: inline-block;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: conic-gradient(
        #4285f4 0deg 90deg,
        #ea4335 90deg 180deg,
        #fbbc05 180deg 270deg,
        #34a853 270deg 360deg
    );
    animation: google-oauth-spin 1.1s linear infinite;
}
.google-oauth-indicator::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: #fff;
}
@keyframes google-oauth-spin {
    to { transform: rotate(360deg); }
}

/* Keep updates available to assistive technology without showing copy. */
.google-oauth-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 480px) {
    .google-oauth-waiting {
        right: 14px;
        bottom: 14px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .google-oauth-indicator {
        animation-duration: 3s;
    }
}
