/* Vector night sky shared by the landing page and the portal's sign-in pages.
   Markup: templates/landing/_stars.svg and _clouds.svg (generated by
   app/ui/portal/scripts/gen_sky.py). */

.landing-stars {
    position: absolute; inset: 0; width: 100%; height: 100%;
}

:root { --cloud-h: 240px; }
@media (min-width: 640px) { :root { --cloud-h: 340px; } }

.landing-clouds {
    position: absolute; left: 0; width: 100%; height: var(--cloud-h); overflow: hidden;
}

/* Each layer is three tiles wide (gen_sky.py TILES); drifting by one third moves
   exactly one tile, so it loops seamlessly and still covers screens up to 2880px wide */
.cloud-layer {
    position: absolute; left: 0; bottom: 0; height: 100%; width: auto; max-width: none;
    will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
    .cloud-layer { animation: cloud-drift linear infinite; }
    .landing-stars .twinkle { animation: twinkle 4s ease-in-out infinite; }
}

@keyframes cloud-drift { to { transform: translateX(-33.3333%); } }
@keyframes twinkle { 50% { opacity: 0.15; } }
