.auth-brand img {
    content: url('/assets/twoma-logo-3d-card.png');
    width: 190px !important;
    mix-blend-mode: normal !important;
    filter: drop-shadow(0 12px 24px rgba(121, 69, 255, .32)) drop-shadow(0 0 18px rgba(217, 70, 239, .2)) !important;
}

.auth-panel {
    background: linear-gradient(145deg, rgba(9, 15, 39, .58), rgba(3, 8, 25, .46)) !important;
    backdrop-filter: blur(30px) saturate(135%) !important;
    -webkit-backdrop-filter: blur(30px) saturate(135%) !important;
    border-color: rgba(181, 128, 255, .42) !important;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .44), 0 0 42px rgba(124, 58, 237, .13), inset 0 1px rgba(255, 255, 255, .13), inset 0 0 45px rgba(68, 52, 150, .055) !important;
}

.auth-panel::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 1px;
    border-radius: 27px;
    pointer-events: none;
    background: linear-gradient(125deg, rgba(255, 255, 255, .075), transparent 23%, transparent 72%, rgba(139, 92, 246, .07));
}

.auth-page::before,
.auth-page::after {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    will-change: transform;
}

.auth-page::before {
    width: 84px;
    aspect-ratio: 1;
    left: 46%;
    top: 6%;
    background-image: url('/assets/planet-rocky-real.webp');
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5)) drop-shadow(0 0 14px rgba(93, 117, 255, .3));
    animation: planetDriftA 19s ease-in-out infinite alternate;
}

.auth-page::after {
    width: 150px;
    aspect-ratio: 1.5;
    left: 35%;
    bottom: 8%;
    background-image: url('/assets/planet-ringed-real.webp');
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)) drop-shadow(0 0 12px rgba(189, 139, 255, .22));
    opacity: .82;
    animation: planetDriftB 24s ease-in-out infinite alternate;
}

.auth-overlay::before,
.auth-overlay::after {
    content: "";
    position: absolute;
    z-index: 1;
    pointer-events: none;
    border-radius: 50%;
}

.auth-overlay::before {
    width: 62px;
    height: 18px;
    right: 5%;
    top: 21%;
    border: 1px solid rgba(129, 112, 255, .28);
    border-left-color: transparent;
    border-right-color: transparent;
    filter: drop-shadow(0 0 7px rgba(93, 111, 255, .22));
    animation: orbitFloat 22s ease-in-out infinite alternate;
}

.auth-overlay::after {
    width: 42px;
    height: 42px;
    left: 43%;
    top: 72%;
    background: repeating-conic-gradient(from 15deg, rgba(174, 109, 255, .3) 0 5deg, transparent 6deg 25deg);
    filter: drop-shadow(0 0 11px rgba(149, 82, 255, .25));
    opacity: .48;
    animation: galaxyTurn 36s linear infinite;
}

.auth-story::before,
.auth-story::after { display: none; }

.shooting-star {
    position: absolute;
    z-index: 2;
    top: 5%;
    left: 88%;
    width: 150px;
    height: 2px;
    pointer-events: none;
    border-radius: 999px;
    opacity: 0;
    background: linear-gradient(90deg, transparent, rgba(112, 157, 255, .18) 28%, rgba(203, 224, 255, .88) 82%, #fff);
    filter: drop-shadow(0 0 5px rgba(128, 169, 255, .85)) drop-shadow(0 0 12px rgba(168, 85, 247, .55));
    transform: rotate(-10deg) translate3d(0, 0, 0);
    transform-origin: right center;
    animation: shootingStar 10s ease-in infinite;
}

.shooting-star::after {
    content: "";
    position: absolute;
    right: -2px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 8px 3px rgba(191, 219, 254, .95), 0 0 18px 6px rgba(139, 92, 246, .55);
    transform: translateY(-50%);
}

@keyframes shootingStar {
    0%, 2% { opacity: 0; transform: rotate(-10deg) translate3d(0, 0, 0) scaleX(.45); }
    3% { opacity: 1; }
    11% { opacity: 1; transform: rotate(-10deg) translate3d(-720px, 0, 0) scaleX(1); }
    14%, 100% { opacity: 0; transform: rotate(-10deg) translate3d(-860px, 0, 0) scaleX(.7); }
}

@keyframes planetDriftA {
    from { transform: translate3d(-12px, -6px, 0) rotate(-4deg); }
    to { transform: translate3d(24px, 18px, 0) rotate(7deg); }
}

@keyframes planetDriftB {
    from { transform: translate3d(0, -8px, 0) rotate(-7deg); }
    to { transform: translate3d(24px, 10px, 0) rotate(1deg); }
}

@keyframes orbitFloat {
    from { transform: translate3d(0, -8px, 0) rotate(-22deg); }
    to { transform: translate3d(-25px, 18px, 0) rotate(-12deg); }
}

@keyframes galaxyTurn { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
    .auth-page::before { left: auto; right: 12%; top: 7%; }
    .auth-overlay::before { display: none; }
}

@media (max-width: 720px) {
    .auth-brand img { width: 162px !important; }
    .auth-panel {
        background: linear-gradient(145deg, rgba(8, 14, 37, .68), rgba(3, 8, 25, .59)) !important;
        backdrop-filter: blur(25px) saturate(130%) !important;
    }
    .auth-page::before { width: 62px; right: 4%; top: 7%; opacity: .88; }
    .auth-page::after { width: 104px; left: -5%; bottom: 3%; opacity: .62; }
    .auth-overlay::after { display: none; }
    .shooting-star { top: 4%; left: 105%; width: 105px; }
    @keyframes shootingStar {
        0%, 2% { opacity: 0; transform: rotate(-12deg) translate3d(0, 0, 0) scaleX(.45); }
        3% { opacity: 1; }
        11% { opacity: 1; transform: rotate(-12deg) translate3d(-390px, 0, 0) scaleX(1); }
        14%, 100% { opacity: 0; transform: rotate(-12deg) translate3d(-460px, 0, 0) scaleX(.7); }
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-page::before,
    .auth-page::after,
    .auth-overlay::before,
    .auth-overlay::after,
    .shooting-star { animation: none !important; }
}

@media (hover: hover) and (pointer: fine) {
    html.space-cursor-ready,
    html.space-cursor-ready * { cursor: none !important; }

    .space-cursor,
    .space-cursor-orbit {
        position: fixed;
        z-index: 10000;
        top: 0;
        left: 0;
        pointer-events: none;
        opacity: 0;
        will-change: transform;
    }

    .space-cursor {
        width: 19px;
        height: 25px;
        clip-path: polygon(0 0, 100% 65%, 58% 69%, 43% 100%);
        background: linear-gradient(145deg, #fff 0 18%, #c4b5fd 38%, #a855f7 68%, #6d28d9 100%);
        filter: drop-shadow(0 0 4px rgba(255, 255, 255, .9)) drop-shadow(0 0 9px rgba(168, 85, 247, .85));
        transition: width .16s ease, height .16s ease, filter .16s ease, opacity .15s ease;
    }

    .space-cursor-orbit {
        width: 29px;
        height: 29px;
        margin: -8px 0 0 -8px;
        border: 1px solid rgba(167, 139, 250, .55);
        border-radius: 50%;
        box-shadow: 0 0 9px rgba(139, 92, 246, .25), inset 0 0 8px rgba(96, 165, 250, .12);
        transition: width .18s ease, height .18s ease, margin .18s ease, border-color .18s ease, opacity .15s ease;
    }

    .space-cursor.is-visible,
    .space-cursor-orbit.is-visible { opacity: 1; }

    .space-cursor.is-interactive {
        width: 22px;
        height: 29px;
        filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 13px rgba(217, 70, 239, .95));
    }

    .space-cursor-orbit.is-interactive {
        width: 38px;
        height: 38px;
        margin: -12px 0 0 -12px;
        border-color: rgba(216, 180, 254, .8);
    }

    .space-cursor.is-down { transform: scale(.78); }
}
