/* Shared Google Sign-In styles for login + signup */

.google-auth-block {
    width: 100%;
    margin: 0 0 0.25rem;
}

.google-auth-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.85rem 1.25rem;
    border: 1.5px solid var(--google-auth-border, #e7ecf1);
    border-radius: var(--google-auth-radius, 10px);
    background: var(--google-auth-bg, #ffffff);
    color: var(--google-auth-ink, #0b1c2c);
    font-family: var(--google-auth-font, 'Plus Jakarta Sans', system-ui, sans-serif);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(2, 21, 33, 0.04);
    transition:
        transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.3s ease,
        border-color 0.25s ease,
        background-color 0.25s ease;
}

.google-auth-btn:hover:not(:disabled) {
    background: var(--google-auth-bg-hover, #f6f8fa);
    border-color: #cfd8e3;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(2, 21, 33, 0.08);
}

.google-auth-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(2, 21, 33, 0.04);
}

.google-auth-btn:focus-visible {
    outline: 2px solid var(--google-auth-focus, #0d5a94);
    outline-offset: 3px;
}

.google-auth-btn:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.google-auth-btn.is-unavailable {
    opacity: 0.55;
}

.google-auth-btn__logo {
    display: inline-flex;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.google-auth-btn__logo svg {
    display: block;
    width: 20px;
    height: 20px;
}

.google-auth-btn__label {
    font-weight: 600;
}

.google-auth-btn__spinner {
    display: none;
    width: 1rem;
    height: 1rem;
    border: 2px solid rgba(11, 28, 44, 0.15);
    border-top-color: rgba(11, 28, 44, 0.65);
    border-radius: 50%;
    animation: google-auth-spin 0.7s linear infinite;
}

.google-auth-btn.is-loading .google-auth-btn__logo,
.google-auth-btn.is-loading .google-auth-btn__label {
    opacity: 0.35;
}

.google-auth-btn.is-loading .google-auth-btn__spinner {
    display: inline-block;
    position: absolute;
    right: 1.1rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1.35rem 0 1.15rem;
    color: var(--google-auth-muted, #708499);
    font-family: var(--google-auth-font, 'Plus Jakarta Sans', system-ui, sans-serif);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--google-auth-border, #e7ecf1) 18%,
        var(--google-auth-border, #e7ecf1) 82%,
        transparent
    );
}

.google-signin-button-host {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.75rem;
    min-height: 44px;
}

.google-signin-button-host[hidden] {
    display: none !important;
}

.google-auth-noscript {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    color: var(--google-auth-muted, #708499);
    text-align: center;
}

@keyframes google-auth-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .google-auth-btn {
        transition: none;
    }

    .google-auth-btn:hover:not(:disabled) {
        transform: none;
    }

    .google-auth-btn__spinner {
        animation: none;
        border-top-color: rgba(11, 28, 44, 0.45);
    }
}
