/* auth-horizonte-bg — "Horizonte Pampeana": fondo ambiental compartido del login
 * (usuarios y comercios). Sin video, sin JS y sin red: gradientes + SVG en data URI.
 * Solo se animan transform y opacity sobre capas promovidas; el SVG es estático.
 * Scope: .auth-horizonte* y body.auth-login.has-horizonte-bg. No afecta registro,
 * recuperación ni activación (esas pantallas siguen con auth-video-bg.css).
 */

.auth-horizonte {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(120% 78% at 50% 108%, rgba(106, 41, 219, .58) 0%, rgba(79, 28, 168, 0) 62%),
        radial-gradient(76% 58% at 84% 6%, rgba(183, 156, 235, .16) 0%, rgba(38, 17, 75, 0) 66%),
        linear-gradient(168deg, #26114B 0%, #331270 36%, #4F1CA8 72%, #6A29DB 100%);
}

/* Capas de ondas topográficas: 200% de ancho, tile de 100% del viewport,
 * desplazamiento de una muesca completa => bucle sin salto perceptible. */
.auth-horizonte-far,
.auth-horizonte-near {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 200%;
    background-repeat: repeat-x;
    background-position: 0 0;
    background-size: 50% 100%;
    will-change: transform;
}

.auth-horizonte-far {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='white' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M0 210C220 158 470 252 720 206S1190 128 1440 184' opacity='.10'/%3E%3Cpath d='M0 302C244 250 476 348 726 302S1196 226 1440 282' opacity='.08'/%3E%3Cpath d='M0 396C230 344 500 442 742 396S1210 320 1440 376' opacity='.065'/%3E%3Cpath d='M0 502C252 448 468 548 728 502S1198 426 1440 482' opacity='.055'/%3E%3Cpath d='M0 616C230 560 500 662 740 616S1210 540 1440 596' opacity='.045'/%3E%3Cpath d='M0 736C252 678 468 782 728 736S1198 660 1440 716' opacity='.04'/%3E%3C/g%3E%3C/svg%3E");
    opacity: .9;
    animation: auth-horizonte-drift 150s linear infinite;
}

.auth-horizonte-near {
    top: 24%;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='%23E8DCFF' stroke-width='1.1' stroke-linecap='round'%3E%3Cpath d='M-40 640C200 598 380 692 620 650S1040 566 1480 622' opacity='.22'/%3E%3Cpath d='M-40 692C210 648 400 744 640 700S1050 612 1480 670' opacity='.18'/%3E%3Cpath d='M-40 746C220 698 415 798 655 752S1060 664 1480 722' opacity='.145'/%3E%3Cpath d='M-40 804C230 752 430 854 670 806S1070 716 1480 776' opacity='.115'/%3E%3Cpath d='M-40 868C240 812 445 916 685 864S1080 772 1480 834' opacity='.09'/%3E%3C/g%3E%3C/svg%3E");
    opacity: .85;
    animation: auth-horizonte-drift-reverse 96s linear infinite;
}

/* Luz de horizonte: profundidad sin repintado (capa estática). */
.auth-horizonte-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(44% 30% at 50% 88%, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 72%),
        radial-gradient(58% 40% at 10% 20%, rgba(183, 156, 235, .13) 0%, rgba(183, 156, 235, 0) 74%);
}

@keyframes auth-horizonte-drift {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}
@keyframes auth-horizonte-drift-reverse {
    from { transform: translate3d(-50%, 0, 0); }
    to   { transform: translate3d(0, 0, 0); }
}

body.auth-page.auth-login.has-horizonte-bg {
    background: #26114B !important;
    background-image: none !important;
}

body.auth-page.auth-login.has-horizonte-bg .container-login {
    position: relative;
    z-index: 1;
}

body.auth-page.auth-login.has-horizonte-bg .card {
    box-shadow:
        0 34px 70px -30px rgba(12, 4, 32, .55),
        0 10px 26px -12px rgba(38, 17, 75, .35),
        0 0 0 1px rgba(255, 255, 255, .55) inset !important;
}

/* Movimiento reducido o ahorro de datos: variante estática. */
@media (prefers-reduced-motion: reduce), (prefers-reduced-data: reduce) {
    .auth-horizonte-far,
    .auth-horizonte-near {
        animation: none !important;
        will-change: auto;
    }
}

/* Móvil: una sola capa, quieta. Evita capas grandes en GPUs modestas. */
@media (max-width: 767.98px) {
    .auth-horizonte-far,
    .auth-horizonte-near {
        animation: none;
        will-change: auto;
    }
    .auth-horizonte-near { display: none; }
    .auth-horizonte-far { opacity: .75; }
}
