    /* --- 2. Animated SVG Background Wrapper --- */
    .animated-background-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 1;
        background: linear-gradient(to bottom, #87CEEB 0%, #74b9ff 50%, #0984e3 100%);
    }

    .svg-background {
        position: absolute;
        bottom: -20px;
        left: 0;
        width: 200%;
        height: 100%;
        min-width: 200vw;
        min-height: 100vh;
        overflow: hidden;
    }

    /* --- 3. SVG Waves Animation --- */
    .sea-wave {
        transform-origin: 50% 50%;
    }

    .sea-wave.layer1 {
        animation: wave-slide 20s linear infinite;
    }

    .sea-wave.layer2 {
        animation: wave-slide 25s linear infinite;
    }

    .sea-wave.layer3 {
        animation: wave-slide 30s linear infinite;
    }

    /* --- 4. Keyframes Definitions --- */
    @keyframes wave-slide {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }

/* Local-time account sky. All decoration stays behind the account form. */
.account-sky {
    overflow: hidden;
    pointer-events: none;
    background: linear-gradient(to bottom,
        var(--sky-color-1, #87ceeb) 0%,
        var(--sky-color-2, #74b9ff) 50%,
        var(--sky-color-3, #0984e3) 100%);
}
.account-stars, .account-clouds { position: absolute; inset: 0; }
.account-stars { z-index: 1; opacity: var(--night-opacity, 0); }
.account-star {
    position: absolute;
    width: var(--star-size); height: var(--star-size);
    border-radius: 50%; background: #fff;
    box-shadow: 0 0 5px rgba(220, 235, 255, .8);
    animation: account-twinkle 4s ease-in-out infinite alternate;
}
.account-sun, .account-moon {
    position: absolute; z-index: 2;
    width: clamp(44px, 7vw, 80px); height: clamp(44px, 7vw, 80px);
    border-radius: 50%; transform: translate(-50%, -50%);
    opacity: 0;
    transition: top 1s linear, left 1s linear, opacity 1s ease;
}
.account-sun {
    background: radial-gradient(circle at 40% 35%, #fff6b0, #ffd451 55%, #ff9b35);
    box-shadow: 0 0 35px rgba(255, 208, 75, .8), 0 0 75px rgba(255, 180, 65, .35);
}
.account-moon {
    background: radial-gradient(circle at 34% 35%, #cdd8e6 0 8%, transparent 9%),
        radial-gradient(circle at 65% 65%, #cdd8e6 0 11%, transparent 12%),
        radial-gradient(circle at 68% 28%, #dce5ef 0 6%, transparent 7%),
        radial-gradient(circle at 40% 35%, #fff, #e7edf6 65%, #bfcddd);
    box-shadow: 0 0 25px rgba(215, 230, 255, .5), 0 0 65px rgba(185, 210, 255, .18);
}
.account-clouds { z-index: 3; filter: brightness(var(--cloud-brightness, 1)); }
.account-cloud {
    --cloud-travel-time: var(--cloud-duration, 100s);
    position: absolute; left: -220px; top: var(--cloud-top);
    width: var(--cloud-width); height: auto; fill: white;
    opacity: var(--cloud-opacity);
    animation: account-cloud-drift var(--cloud-travel-time) linear infinite;
    animation-delay: calc(var(--cloud-phase, 0) * var(--cloud-travel-time) - var(--sky-age, 0s));
}
.account-sky .svg-background { z-index: 4; filter: brightness(var(--sea-brightness, 1)); }
.account-sky-paused *, .account-sky-paused .sea-wave { animation-play-state: paused; }
@keyframes account-cloud-drift {
    from { transform: translateX(0); }
    to { transform: translateX(calc(100vw + 440px)); }
}
@keyframes account-twinkle {
    from { opacity: .35; }
    to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .account-star { animation: none !important; }
    .account-sun, .account-moon { transition: none !important; }
    /* Preserve the requested movement, at a gentler pace. */
    .account-cloud { --cloud-travel-time: 180s; }
    .account-sky .sea-wave { animation-duration: 60s; }
}
.account-sky .sea-wave { animation-delay: calc(0s - var(--sky-age, 0s)); }

