#guestAuthModal {
    --auth-cyan: #5ce5ff;
    --auth-blue: #2f96ff;
    --auth-violet: #7654f4;
}

#guestAuthModal::before {
    background:
        radial-gradient(circle at 50% 18%, rgba(61, 63, 213, .22), transparent 37%),
        rgba(1, 4, 24, .88);
    backdrop-filter: blur(18px) saturate(120%);
}

#guestAuthModal .auth-modal {
    width: min(680px, calc(100vw - 36px)) !important;
    max-height: min(90vh, 760px);
    padding: 0 !important;
    overflow: auto;
    border: 1px solid rgba(84, 125, 255, .35) !important;
    border-radius: 22px !important;
    background:
        linear-gradient(180deg, rgba(3, 8, 47, .99), rgba(1, 5, 28, .995)) !important;
    box-shadow:
        0 42px 120px rgba(0, 0, 0, .72),
        0 0 70px rgba(75, 77, 230, .15),
        inset 0 1px rgba(147, 197, 253, .1);
    scrollbar-width: thin;
    scrollbar-color: rgba(92, 229, 255, .4) transparent;
}

#guestAuthModal .auth-modal-head {
    position: relative;
    isolation: isolate;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 34px 42px 28px !important;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid rgba(90, 111, 226, .18) !important;
    background:
        radial-gradient(circle at 50% 22%, rgba(86, 65, 224, .27), transparent 35%),
        linear-gradient(180deg, rgba(5, 8, 58, .98), rgba(2, 6, 35, .96)) !important;
}

#guestAuthModal .auth-modal-head::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image:
        linear-gradient(rgba(59, 130, 246, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, .025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, #000, transparent 94%);
}

#guestAuthModal .auth-neural-orbits {
    position: absolute;
    inset: 0;
    z-index: -1;
    display: grid;
    place-items: center;
    pointer-events: none;
}

#guestAuthModal .auth-neural-orbits span {
    position: absolute;
    width: min(68vw, 520px);
    aspect-ratio: 1;
    border: 1px solid rgba(94, 91, 237, .18);
    border-radius: 50%;
    box-shadow: inset 0 0 55px rgba(72, 75, 226, .035);
}

#guestAuthModal .auth-neural-orbits span:nth-child(2) {
    width: min(51vw, 390px);
    border-color: rgba(84, 101, 245, .22);
}

#guestAuthModal .auth-neural-orbits span:nth-child(3) {
    width: min(34vw, 260px);
    border-color: rgba(99, 102, 241, .14);
}

#guestAuthModal .auth-security-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin-bottom: 15px;
    border: 1px solid rgba(92, 229, 255, .55);
    border-radius: 17px;
    color: var(--auth-cyan);
    background:
        linear-gradient(145deg, rgba(35, 122, 231, .45), rgba(91, 62, 202, .42));
    box-shadow:
        0 0 0 1px rgba(92, 229, 255, .08),
        0 0 42px rgba(70, 111, 255, .3),
        inset 0 0 22px rgba(96, 165, 250, .16);
}

#guestAuthModal .auth-security-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.9;
    filter: drop-shadow(0 0 9px rgba(92, 229, 255, .45));
}

#guestAuthModal .auth-modal-kicker {
    position: relative;
    margin: 0 0 13px;
    color: var(--auth-cyan) !important;
    font: 900 clamp(.6rem, .9vw, .72rem)/1.3 ui-monospace, SFMono-Regular, Menlo, monospace !important;
    letter-spacing: .16em !important;
    text-transform: uppercase;
    text-shadow: 0 0 22px rgba(92, 229, 255, .3);
}

#guestAuthModal .auth-modal h3 {
    position: relative;
    max-width: 590px;
    margin: 0 !important;
    color: #f7f9ff;
    font-size: clamp(2rem, 3.6vw, 3rem) !important;
    line-height: 1 !important;
    letter-spacing: -.055em;
    text-wrap: balance;
    text-shadow: 0 8px 36px rgba(0, 0, 0, .4);
}

#guestAuthModal .auth-modal-copy {
    position: relative;
    max-width: 540px;
    margin: 15px auto 0 !important;
    color: #9ca8c8 !important;
    font-size: clamp(.78rem, 1vw, .92rem);
    line-height: 1.48 !important;
    font-weight: 650 !important;
    text-wrap: balance;
}

#guestAuthModal .auth-tabs {
    width: min(100% - 40px, 540px);
    margin: 18px auto 0;
    padding: 4px !important;
    gap: 5px !important;
    border: 1px solid rgba(84, 118, 217, .24);
    border-radius: 15px;
    background: rgba(5, 12, 42, .75);
}

#guestAuthModal .auth-tab {
    min-height: 40px;
    border: 1px solid transparent !important;
    border-radius: 11px !important;
    background: transparent !important;
    color: #8795b6 !important;
    letter-spacing: .02em;
}

#guestAuthModal .auth-tab.active {
    border-color: rgba(92, 229, 255, .35) !important;
    color: #fff !important;
    background: linear-gradient(135deg, rgba(34, 145, 238, .9), rgba(111, 74, 232, .9)) !important;
    box-shadow: 0 10px 28px rgba(52, 99, 230, .25);
}

#guestAuthModal .auth-pane {
    width: min(100%, 580px);
    margin: 0 auto;
    padding: 14px 20px 24px !important;
}

#guestAuthModal .auth-form-label {
    margin: 12px 0 7px;
    color: #93a4c8 !important;
    font-size: .7rem !important;
    letter-spacing: .11em;
}

#guestAuthModal .auth-pane input:not([type="hidden"]):not([type="checkbox"]) {
    height: 44px !important;
    margin: 0 0 8px !important;
    padding: 0 16px !important;
    border: 1px solid rgba(87, 125, 211, .25) !important;
    border-radius: 12px !important;
    background: rgba(3, 10, 37, .86) !important;
    box-shadow: inset 0 1px 9px rgba(0, 0, 0, .25);
}

#guestAuthModal .auth-pane input:not([type="hidden"]):not([type="checkbox"]):focus {
    border-color: rgba(92, 229, 255, .75) !important;
    outline: 2px solid rgba(92, 229, 255, .12);
    box-shadow: 0 0 0 4px rgba(47, 150, 255, .08), inset 0 1px 9px rgba(0, 0, 0, .25);
}

#guestAuthModal .auth-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(150px, .8fr);
    gap: 12px !important;
    margin-top: 13px !important;
}

#guestAuthModal .auth-actions .btn {
    min-height: 44px !important;
    border-radius: 12px !important;
}

#guestAuthModal .auth-submit-btn {
    border: 1px solid rgba(92, 229, 255, .25) !important;
    background: linear-gradient(125deg, #268ce9, #7350e7) !important;
    box-shadow: 0 12px 30px rgba(55, 89, 222, .28);
}

#guestAuthModal .auth-actions .secondary {
    border-color: rgba(111, 139, 211, .32) !important;
    background: rgba(7, 16, 49, .88) !important;
}

#guestAuthModal .auth-google {
    min-height: 44px;
    border-radius: 12px;
    border-color: rgba(214, 226, 255, .38);
    transition: transform .18s ease, box-shadow .18s ease;
}

#guestAuthModal .auth-google:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(46, 94, 209, .2);
}

#guestAuthModal .auth-divider {
    margin: 13px 0 8px;
}

#guestAuthModal .auth-legal-check {
    padding: 10px 12px;
    border: 1px solid rgba(77, 105, 173, .16);
    border-radius: 10px;
    background: rgba(5, 12, 36, .55);
}

#guestAuthModal .auth-close {
    z-index: 8;
    top: 13px;
    right: 13px;
    width: 37px;
    height: 37px;
    border-color: rgba(103, 132, 204, .35);
    border-radius: 13px;
    background: rgba(4, 10, 35, .75);
    backdrop-filter: blur(10px);
}

#guestAuthModal .auth-close:hover {
    color: var(--auth-cyan);
    border-color: rgba(92, 229, 255, .65);
}

body.has-open-modal .tr-mobile-action,
body:has(#guestAuthModal.active) .tr-mobile-action {
    display: none !important;
}

@media (max-width: 700px) {
    #guestAuthModal {
        padding: 10px;
    }

    #guestAuthModal .auth-modal {
        width: 100% !important;
        max-height: calc(100vh - 20px);
        border-radius: 20px !important;
    }

    #guestAuthModal .auth-modal-head {
        min-height: 225px;
        padding: 29px 18px 23px !important;
    }

    #guestAuthModal .auth-security-icon {
        width: 52px;
        height: 52px;
        margin-bottom: 13px;
        border-radius: 16px;
    }

    #guestAuthModal .auth-security-icon svg {
        width: 25px;
        height: 25px;
    }

    #guestAuthModal .auth-modal-kicker {
        max-width: 270px;
        margin-bottom: 11px;
        letter-spacing: .14em !important;
    }

    #guestAuthModal .auth-modal h3 {
        font-size: clamp(1.75rem, 8.5vw, 2.4rem) !important;
    }

    #guestAuthModal .auth-modal-copy {
        margin-top: 12px !important;
        font-size: .78rem;
    }

    #guestAuthModal .auth-tabs {
        width: calc(100% - 28px);
        margin-top: 12px;
    }

    #guestAuthModal .auth-pane {
        padding: 12px 14px 19px !important;
    }

    #guestAuthModal .auth-actions {
        grid-template-columns: 1fr;
    }

    #guestAuthModal .auth-neural-orbits span {
        width: 170vw;
    }

    #guestAuthModal .auth-neural-orbits span:nth-child(2) {
        width: 130vw;
    }

    #guestAuthModal .auth-neural-orbits span:nth-child(3) {
        width: 90vw;
    }
}

@media (min-width: 701px) and (max-height: 800px) {
    #guestAuthModal .auth-modal-head {
        min-height: 280px;
        padding: 30px 44px 28px !important;
    }

    #guestAuthModal .auth-security-icon {
        width: 62px;
        height: 62px;
        margin-bottom: 15px;
        border-radius: 18px;
    }

    #guestAuthModal .auth-security-icon svg {
        width: 30px;
        height: 30px;
    }

    #guestAuthModal .auth-modal-kicker {
        margin-bottom: 14px;
        font-size: .66rem !important;
    }

    #guestAuthModal .auth-modal h3 {
        font-size: clamp(2.35rem, 4.2vw, 3.45rem) !important;
    }

    #guestAuthModal .auth-modal-copy {
        margin-top: 15px !important;
        font-size: .86rem;
    }

    #guestAuthModal .auth-tabs {
        margin-top: 15px;
    }

    #guestAuthModal .auth-pane {
        padding-top: 13px !important;
        padding-bottom: 22px !important;
    }

    #guestAuthModal .auth-pane input:not([type="hidden"]):not([type="checkbox"]) {
        height: 47px !important;
    }
}

@media (prefers-reduced-motion: no-preference) {
    #guestAuthModal.active .auth-security-icon {
        animation: auth-intelligence-pulse 3.2s ease-in-out infinite;
    }

    @keyframes auth-intelligence-pulse {
        0%, 100% { box-shadow: 0 0 0 1px rgba(92, 229, 255, .08), 0 0 36px rgba(70, 111, 255, .25), inset 0 0 22px rgba(96, 165, 250, .16); }
        50% { box-shadow: 0 0 0 1px rgba(92, 229, 255, .18), 0 0 58px rgba(83, 91, 236, .42), inset 0 0 30px rgba(96, 165, 250, .23); }
    }
}
