/* ============================================================
   Background animasi halaman auth.

   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; }
}

/* teks hero di bawah ilustrasi */
.auth-hero-text {
    max-width: 520px;
}

.auth-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem 1rem;
    border-radius: 50rem;
    font-size: .85rem;
    font-weight: 600;
    color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .1);
    border: 1px solid rgba(var(--bs-primary-rgb), .2);
    backdrop-filter: blur(6px);
}

.auth-hero-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bs-primary);
    box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), .5);
    animation: authHeroPulse 2s ease-out infinite;
}

@keyframes authHeroPulse {
    0% { box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), .5); }
    70%, 100% { box-shadow: 0 0 0 8px rgba(var(--bs-primary-rgb), 0); }
}

.auth-hero-title {
    letter-spacing: -.02em;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--bs-gray-900) 30%, var(--bs-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-hero-desc {
    max-width: 440px;
    line-height: 1.7;
}

@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,
    .auth-hero-badge-dot {
        animation: none !important;
    }
}
