.auth-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(760px circle at var(--scene-light-x, 72%) var(--scene-light-y, 35%), rgba(169, 134, 98, .22), transparent 70%),
        radial-gradient(ellipse at 12% 85%, rgba(169, 134, 98, .065), transparent 60%);
}

.auth-scene__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(214, 180, 146, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(214, 180, 146, .055) 1px, transparent 1px);
    background-size: 92px 92px;
    -webkit-mask-image: radial-gradient(ellipse at 48% 45%, #000 12%, transparent 83%);
    mask-image: radial-gradient(ellipse at 48% 45%, #000 12%, transparent 83%);
}

.auth-scene__beam {
    position: absolute;
    inset: -60%;
    opacity: .55;
    background: linear-gradient(105deg, transparent 38%, rgba(244, 216, 178, .04) 45%, rgba(244, 216, 178, .08) 48%, transparent 54%);
    animation: auth-scene-beam 26s ease-in-out infinite;
}

.auth-scene__geometry {
    position: absolute;
    left: -17vw;
    top: 8vh;
    width: min(74vw, 940px);
    min-width: 540px;
    aspect-ratio: 1;
    color: #d6b492;
    opacity: .17;
    transform: translate3d(var(--scene-depth-x, 0px), var(--scene-depth-y, 0px), 0);
}

.auth-scene__geometry svg { display: block; width: 100%; height: 100%; overflow: visible; }
.auth-scene__orbit { transform-origin: 350px 350px; }
.auth-scene__orbit--outer { animation: auth-scene-orbit 180s linear infinite; }
.auth-scene__orbit--inner { animation: auth-scene-orbit 110s linear infinite reverse; }
.auth-scene__stars { position: absolute; inset: 0; width: 100%; height: 100%; }

.auth-scene[data-paused] :is(.auth-scene__beam, .auth-scene__orbit) {
    animation-play-state: paused;
}

@keyframes auth-scene-orbit { to { transform: rotate(360deg); } }

@keyframes auth-scene-beam {
    0%, 100% { transform: translate3d(-12%, 0, 0); opacity: .2; }
    50% { transform: translate3d(12%, 0, 0); opacity: .65; }
}

@media (max-width: 760px) {
    .auth-scene__grid { background-size: 62px 62px; opacity: .65; }
    .auth-scene__geometry { left: -290px; top: 5vh; width: 600px; min-width: 0; opacity: .13; }
    .auth-scene__beam { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-scene { background: radial-gradient(ellipse at 72% 35%, rgba(169, 134, 98, .18), transparent 70%); }
    .auth-scene :is(.auth-scene__beam, .auth-scene__orbit) { animation: none; }
    .auth-scene__beam { display: none; }
    .auth-scene__geometry { transform: none; }
}
