/* ============================================================
   Background animasi halaman auth — diadaptasi dari hero section
   public layout PMB (gci/uab/pmb, hero.css).

   Lapisan: gradient dasar, grid halus, blob blur yang melayang,
   dan partikel kecil. Warna mengikuti --bs-primary-rgb.
   ============================================================ */

body.auth-hero {
    background: linear-gradient(135deg,
            rgba(var(--bs-primary-rgb), .08) 0%,
            rgba(var(--bs-primary-rgb), .03) 40%,
            #ffffff 100%);
    background-attachment: fixed;
}

/* isi halaman selalu di atas lapisan dekorasi */
body.auth-hero #kt_app_root {
    position: relative;
    z-index: 1;
}

/* kartu form: garis tepi + bayangan bernuansa primary agar tidak menyatu dengan background */
.auth-card {
    border: 1px solid rgba(var(--bs-primary-rgb), .12);
    box-shadow:
        0 1px 3px rgba(15, 23, 42, .04),
        0 24px 60px -20px rgba(var(--bs-primary-rgb), .35);
}

.auth-hero-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

/* grid halus, memudar ke tepi */
.auth-hero-bg .hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--bs-primary-rgb), .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--bs-primary-rgb), .07) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse 70% 60% at 35% 45%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 35% 45%, #000 40%, transparent 100%);
}

/* blob gradient yang bergerak pelan */
.auth-hero-bg .hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .55;
    will-change: transform;
}

.auth-hero-bg .hero-blob-1 {
    width: 520px;
    height: 520px;
    top: -160px;
    right: -120px;
    background: radial-gradient(circle at 30% 30%, rgba(var(--bs-primary-rgb), .55), transparent 70%);
    animation: authHeroFloat1 18s ease-in-out infinite;
}

.auth-hero-bg .hero-blob-2 {
    width: 460px;
    height: 460px;
    bottom: -170px;
    left: -130px;
    background: radial-gradient(circle at 60% 40%, rgba(var(--bs-primary-rgb), .38), transparent 70%);
    animation: authHeroFloat2 22s ease-in-out infinite;
}

/* aksen cyan, diambil dari palet ilustrasi Lottie */
.auth-hero-bg .hero-blob-3 {
    width: 340px;
    height: 340px;
    top: 35%;
    left: 30%;
    background: radial-gradient(circle at 50% 50%, rgba(79, 204, 249, .30), transparent 70%);
    animation: authHeroFloat3 26s ease-in-out infinite;
}

@keyframes authHeroFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-60px, 50px) scale(1.12); }
}

@keyframes authHeroFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(70px, -45px) scale(1.08); }
}

@keyframes authHeroFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-50px, -35px) scale(1.15); }
    66% { transform: translate(40px, 30px) scale(.92); }
}

/* partikel kecil */
.auth-hero-bg .hero-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(var(--bs-primary-rgb), .45);
    animation: authHeroDot 9s ease-in-out infinite;
}

@keyframes authHeroDot {
    0%, 100% { transform: translateY(0); opacity: .25; }
    50% { transform: translateY(-26px); opacity: .8; }
}

@media (max-width: 991.98px) {
    .auth-hero-bg .hero-blob {
        filter: blur(55px);
        opacity: .45;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-hero-bg .hero-blob,
    .auth-hero-bg .hero-dot {
        animation: none !important;
    }
}
