/* Nexus One Google Sign In - Brand Works App */
.nexus-google-signin-card {
    --nexus-google-bg: #ffffff;
    --nexus-google-text: #0f172a;
    --nexus-google-button-bg: #ffffff;
    --nexus-google-button-text: #202124;
    --nexus-google-radius: 18px;
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 2147483000;
    width: calc(100vw - 32px);
    max-width: 420px;
    padding: 18px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: var(--nexus-google-radius);
    background: var(--nexus-google-bg);
    color: var(--nexus-google-text);
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.2);
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px 14px;
    box-sizing: border-box;
}

.nexus-google-signin-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147482999;
    background: rgba(15, 23, 42, 0.48);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: nexusGoogleFadeIn 0.22s ease both;
}

.nexus-google-signin-card.nexus-google-hiding {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nexus-google-signin-overlay.nexus-google-overlay-hiding {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nexus-google-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--nexus-google-text);
    opacity: 0.58;
    font-size: 24px;
    line-height: 30px;
    cursor: pointer;
}

.nexus-google-close:hover,
.nexus-google-close:focus {
    background: rgba(100, 116, 139, 0.12);
    opacity: 1;
    outline: none;
}

.nexus-google-mark {
    width: 48px;
    height: 48px;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #ffffff;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.08);
}

.nexus-google-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 24px;
}

.nexus-google-title {
    color: var(--nexus-google-text);
    font-size: 16px;
    line-height: 1.3;
    font-weight: 750;
}

.nexus-google-message {
    margin-top: 4px;
    color: var(--nexus-google-text);
    opacity: 0.68;
    font-size: 13px;
    line-height: 1.45;
}

.nexus-google-button {
    grid-column: 1 / -1;
    min-height: 48px;
    padding: 10px 16px;
    border: 1px solid rgba(15, 23, 42, 0.16);
    border-radius: 12px;
    background: var(--nexus-google-button-bg);
    color: var(--nexus-google-button-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 650;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.nexus-google-button:hover,
.nexus-google-button:focus {
    color: var(--nexus-google-button-text);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
    opacity: 0.96;
}

.nexus-google-secure-note {
    grid-column: 1 / -1;
    margin-top: -2px;
    color: var(--nexus-google-text);
    opacity: 0.48;
    font-size: 10px;
    line-height: 1.3;
    text-align: center;
}

.nexus-google-position-bottom_left {
    right: auto;
    left: 20px;
}

.nexus-google-position-center {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    width: calc(100vw - 32px);
    max-width: 470px;
    transform: translate(-50%, -50%);
}

.nexus-google-position-center.nexus-google-hiding {
    transform: translate(-50%, -47%) scale(0.98);
}

.nexus-google-position-top_banner {
    top: 16px;
    right: 16px;
    bottom: auto;
    left: 16px;
    width: auto;
    max-width: none;
    grid-template-columns: 48px minmax(220px, 1fr) minmax(220px, 360px);
    align-items: center;
}

.nexus-google-position-top_banner .nexus-google-button {
    grid-column: 3;
    grid-row: 1;
}

.nexus-google-position-top_banner .nexus-google-secure-note {
    display: none;
}

.nexus-google-position-right_slide {
    top: 50%;
    right: 0;
    bottom: auto;
    width: calc(100vw - 32px);
    max-width: 410px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    transform: translateY(-50%);
}

.nexus-google-animation-slide:not(.nexus-google-position-center):not(.nexus-google-position-right_slide) {
    animation: nexusGoogleSlideIn 0.32s ease-out both;
}

.nexus-google-animation-slide.nexus-google-position-right_slide {
    animation: nexusGoogleSlideFromRight 0.34s ease-out both;
}

.nexus-google-animation-slide.nexus-google-position-center {
    animation: nexusGoogleCenterIn 0.3s ease-out both;
}

.nexus-google-animation-fade {
    animation: nexusGoogleFadeIn 0.28s ease both;
}

.nexus-google-animation-pop:not(.nexus-google-position-center) {
    animation: nexusGooglePopIn 0.28s ease-out both;
}

.nexus-google-animation-pop.nexus-google-position-center {
    animation: nexusGoogleCenterPopIn 0.28s ease-out both;
}

@keyframes nexusGoogleSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes nexusGoogleSlideFromRight {
    from { opacity: 0; transform: translate(40px, -50%); }
    to { opacity: 1; transform: translate(0, -50%); }
}

@keyframes nexusGoogleCenterIn {
    from { opacity: 0; transform: translate(-50%, -46%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

@keyframes nexusGoogleFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes nexusGooglePopIn {
    from { opacity: 0; transform: scale(0.94); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes nexusGoogleCenterPopIn {
    from { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@media (max-width: 767.98px) {
    .nexus-google-signin-card,
    .nexus-google-position-bottom_left,
    .nexus-google-position-right_slide {
        right: 12px;
        bottom: 12px;
        left: 12px;
        top: auto;
        width: auto;
        max-width: none;
        padding: 16px;
        border-radius: var(--nexus-google-radius);
        transform: none;
    }

    .nexus-google-position-center {
        top: 50%;
        right: 12px;
        bottom: auto;
        left: 12px;
        width: auto;
        transform: translateY(-50%);
    }

    .nexus-google-position-center.nexus-google-hiding {
        transform: translateY(-46%) scale(0.98);
    }

    .nexus-google-position-top_banner {
        top: 8px;
        right: 8px;
        bottom: auto;
        left: 8px;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .nexus-google-position-top_banner .nexus-google-button {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .nexus-google-mark {
        width: 44px;
        height: 44px;
    }

    .nexus-google-animation-slide.nexus-google-position-center {
        animation: nexusGoogleMobileCenterIn 0.3s ease-out both;
    }

    .nexus-google-animation-pop.nexus-google-position-center {
        animation: nexusGoogleMobileCenterPopIn 0.28s ease-out both;
    }

    .nexus-google-animation-slide.nexus-google-position-right_slide {
        animation: nexusGoogleSlideIn 0.32s ease-out both;
    }
}

@keyframes nexusGoogleMobileCenterIn {
    from { opacity: 0; transform: translateY(-46%); }
    to { opacity: 1; transform: translateY(-50%); }
}

@keyframes nexusGoogleMobileCenterPopIn {
    from { opacity: 0; transform: translateY(-50%) scale(0.92); }
    to { opacity: 1; transform: translateY(-50%) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .nexus-google-signin-card,
    .nexus-google-signin-overlay {
        animation: none !important;
        transition: none !important;
    }
}

/* Google Sign In administrator test page - Brand Works App */
.nexus-google-test-logo {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
}

/* Direct-loader visibility safeguards - Brand Works App */
.nexus-google-signin-card.nexus-google-visible {
    display: grid !important;
}

.nexus-google-signin-overlay.nexus-google-overlay-visible {
    display: block !important;
}


/* Imported Nexus One website compatibility - Brand Works App */
body > .nexus-google-signin-card,
body > .nexus-google-signin-overlay {
    position: fixed !important;
    isolation: isolate;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body > .nexus-google-signin-card.nexus-google-visible,
body > .nexus-google-signin-card.nexus-google-fallback-visible {
    visibility: visible !important;
    pointer-events: auto !important;
}
