/* VirtualKlab · Efek landing page: gradasi antar-warna + animasi (termasuk transisi Login/Register).
   Dimuat setelah tiket.css. Semua efek mati otomatis jika perangkat memilih "kurangi gerakan". */
body { overflow-x: clip; }

/* ---------- Navbar: garis gradasi bergerak di bawahnya ---------- */
.pb-nav { position: sticky; }
.pb-nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none; opacity: .7;
    background: linear-gradient(90deg, transparent, #22D3EE, #FF5E13, #22D3EE, transparent); background-size: 200% 100%; animation: fxSlide 7s linear infinite; }
@keyframes fxSlide { to { background-position: -200% 0; } }

/* ---------- Hero: gradasi berlapis + "fajar" halus ke bagian bawah ----------
   Lapisan (atas ke bawah): pemudaran 11rem ke warna kanvas, lalu cahaya cyan/oranye/indigo di ufuk,
   lalu cahaya ambient, dasar navy. Pemudaran melewati nuansa teal/cyan (interpolasi oklab), bukan abu-abu keruh. */
:root, :root[data-theme="light"] { --fx-t1: rgba(14,86,120,.62); --fx-t2: rgba(76,185,225,.50); --fx-t3: color-mix(in srgb, var(--paper) 78%, #9EE0F2); }
:root[data-theme="dark"] { --fx-t1: rgba(14,86,120,.34); --fx-t2: rgba(6,182,212,.16); --fx-t3: color-mix(in srgb, var(--paper) 92%, #06B6D4); }
.tk-hero {
    padding-bottom: 8.5rem;
    background:
        linear-gradient(180deg in oklab, rgba(15,23,42,0) 0%, var(--fx-t1) 30%, var(--fx-t2) 56%, var(--fx-t3) 80%, var(--paper) 100%) bottom / 100% 11rem no-repeat,
        radial-gradient(ellipse 34% 7rem at 82% calc(100% - 3rem), rgba(34,211,238,.42), transparent 72%),
        radial-gradient(ellipse 30% 6.5rem at 14% calc(100% - 3rem), rgba(255,110,40,.36), transparent 72%),
        radial-gradient(ellipse 28% 6rem at 47% calc(100% - 3.5rem), rgba(129,140,248,.30), transparent 74%),
        radial-gradient(900px 520px at 85% -8%, rgba(6,182,212,.36), transparent 62%),
        radial-gradient(760px 480px at 6% 70%, rgba(255,94,19,.16), transparent 60%),
        radial-gradient(700px 420px at 48% 34%, rgba(99,102,241,.20), transparent 65%),
        linear-gradient(160deg, #0F172A 0%, #0B1220 100%);
}
.tk-hero::before { animation: fxDrift 18s ease-in-out infinite alternate; }
@keyframes fxDrift { to { transform: translate3d(-70px, 46px, 0) scale(1.14); } }
.tk-hero::after { animation: fxGrid 32s linear infinite; }
@keyframes fxGrid { to { background-position: 56px 56px, 56px 56px; } }

.tk-hero-copy > * { animation: fxUp .8s var(--ease) both; }
.tk-hero-copy > *:nth-child(1) { animation-delay: .05s; }
.tk-hero-copy > *:nth-child(2) { animation-delay: .15s; }
.tk-hero-copy > *:nth-child(3) { animation-delay: .27s; }
.tk-hero-copy > *:nth-child(4) { animation-delay: .38s; }
.tk-hero-copy > *:nth-child(n+5) { animation-delay: .48s; }
.tk-feature { animation: fxIn .9s .25s var(--ease) both; }
@keyframes fxUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fxIn { from { opacity: 0; transform: translateX(40px) scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Gradasi antar-bagian (selebar layar, tepi atas/bawah transparan: tanpa garis pemisah) ---------- */
.pb-section { position: relative; isolation: isolate; }
#event::before, #berita::before, #partner::before, #cara::before { content: ""; position: absolute; z-index: -1; inset: 0 calc(50% - 50vw); pointer-events: none; }
#event::before   { background: linear-gradient(180deg, transparent 0, rgba(6,182,212,.07) 35%, rgba(255,94,19,.045) 70%, transparent 100%); }
#berita::before  { background: linear-gradient(180deg, transparent 0, rgba(99,102,241,.06) 40%, rgba(6,182,212,.06) 75%, transparent 100%); }
#partner::before { background: linear-gradient(180deg, transparent 0, rgba(255,94,19,.045) 35%, rgba(6,182,212,.07) 72%, transparent 100%); }
#cara::before    { background: linear-gradient(180deg, transparent 0, rgba(6,182,212,.06) 30%, rgba(99,102,241,.06) 70%, transparent 100%); }

/* Judul bagian: garis gradasi yang memanjang saat muncul */
.pb-head h2::after { content: ""; display: block; width: 0; height: 4px; margin-top: .6rem; border-radius: 4px; background: linear-gradient(90deg, #06B6D4, #FF5E13); transition: width .9s .25s var(--ease); }
.pb-head.fx-in h2::after, .pb-head.fx-done h2::after { width: 56px; }

/* ---------- Muncul saat di-scroll (kelas dipasang oleh JS, dilepas lagi setelah selesai) ---------- */
.fx-rv { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--fx-i, 0) * 70ms); }
.fx-rv.fx-in { opacity: 1; transform: none; }

/* ---------- Tombol: ripple saat ditekan, denyut halus pada Register ---------- */
.fx-rip { position: relative; overflow: hidden; }
.fx-ripple { position: absolute; border-radius: 50%; pointer-events: none; background: rgba(255,255,255,.55); transform: scale(0); animation: fxRipple .65s ease-out forwards; }
.btn-ghost .fx-ripple { background: rgba(6,182,212,.4); }
@keyframes fxRipple { to { transform: scale(1); opacity: 0; } }
.pb-actions a.btn-primary:not(.pb-show-sm) { animation: fxPulse 3.4s ease-out infinite; }
.pb-actions a.btn-primary:hover { animation: none; }
@keyframes fxPulse { 0% { box-shadow: 0 0 0 0 rgba(255,94,19,.5); } 70%, 100% { box-shadow: 0 0 0 14px rgba(255,94,19,0); } }

/* Tombol kirim form (Masuk / Daftar): spinner saat diproses */
.btn-primary.fx-loading { pointer-events: none; color: transparent !important; position: relative; }
.btn-primary.fx-loading::before { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; animation: fxSpin .7s linear infinite; z-index: 3; }
@keyframes fxSpin { to { transform: rotate(360deg); } }

/* ---------- Transisi halaman ke Login / Register ---------- */
.fx-wipe { position: fixed; inset: 0; z-index: 9999; pointer-events: none; transform: translateY(100%); display: grid; place-items: center;
    background: linear-gradient(135deg, #0F172A 0%, #0E4A5E 38%, #06B6D4 68%, #FF5E13 100%); }
.fx-wipe.on { transform: translateY(0); pointer-events: auto; transition: transform .5s var(--ease); }
.fx-wipe i { width: 44px; height: 44px; border-radius: 50%; border: 4px solid rgba(255,255,255,.35); border-top-color: #fff; opacity: 0; animation: fxSpin .8s linear infinite; }
.fx-wipe.on i { opacity: 1; transition: opacity .3s .25s; }
html.fx-arrive body::after { content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
    background: linear-gradient(135deg, #0F172A 0%, #0E4A5E 38%, #06B6D4 68%, #FF5E13 100%); animation: fxReveal .75s .05s var(--ease) forwards; }
@keyframes fxReveal { from { transform: translateY(0); } to { transform: translateY(-101%); } }

/* ---------- CTA "Siap ikut event pertamamu?": mesh gradasi hidup ---------- */
.tk-cta {
    border: 1px solid rgba(226,232,240,.10);
    background:
        radial-gradient(520px 260px at 96% -30%, rgba(6,182,212,.46), transparent 65%),
        radial-gradient(460px 260px at 0% 130%, rgba(255,94,19,.34), transparent 65%),
        radial-gradient(380px 200px at 52% 55%, rgba(99,102,241,.24), transparent 70%),
        linear-gradient(135deg, #0F172A 0%, #12263F 55%, #0E3D52 100%);
    box-shadow: 0 24px 60px -24px rgba(6,182,212,.35), 0 10px 30px rgba(15,23,42,.18);
}
.tk-cta::before { animation: fxDrift 14s ease-in-out infinite alternate; }
.tk-cta::after { content: ""; position: absolute; z-index: -1; width: 300px; aspect-ratio: 1; left: -80px; bottom: -170px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255,94,19,.38), transparent 65%); animation: fxDrift2 17s ease-in-out infinite alternate; }
@keyframes fxDrift2 { to { transform: translate3d(90px, -26px, 0) scale(1.18); } }

/* ---------- Footer: gradasi navy, cahaya di tepi atas, dan transisi lembut dari kanvas ---------- */
.pb-footer { position: relative; isolation: isolate; background: linear-gradient(180deg, #0F172A 0%, #0B1220 100%); }
.pb-footer::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 240px; pointer-events: none;
    background: radial-gradient(600px 200px at 86% 0, rgba(6,182,212,.18), transparent 70%), radial-gradient(520px 180px at 8% 0, rgba(255,94,19,.12), transparent 70%); }
.pb-footer::after { content: ""; position: absolute; left: 0; right: 0; top: -64px; height: 64px; pointer-events: none; z-index: -1;
    background: linear-gradient(180deg in oklab, rgba(15,23,42,0) 0%, rgba(110,200,232,.16) 30%, rgba(40,140,185,.42) 62%, rgba(14,70,100,.78) 86%, #0F172A 100%); }

/* =====================================================================
   Halaman Login / Register (kelas .fx-auth dipasang JS di body)
   ===================================================================== */
@property --fx-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

/* ---- Panel kiri: mesh gradasi bergerak ---- */
.fx-auth .hero-navy {
    background:
        radial-gradient(720px 520px at 100% 0%, rgba(6,182,212,.34), transparent 62%),
        radial-gradient(660px 540px at 0% 100%, rgba(255,94,19,.26), transparent 60%),
        radial-gradient(540px 440px at 55% 55%, rgba(99,102,241,.24), transparent 65%),
        linear-gradient(160deg, #0F172A 0%, #0B1220 100%);
    background-size: 150% 150%, 150% 150%, 150% 150%, 100% 100%;
    animation: fxMesh 16s ease-in-out infinite alternate;
}
@keyframes fxMesh {
    0%   { background-position: 0% 0%,   100% 100%, 50% 50%, 0 0; }
    100% { background-position: 100% 100%, 0% 0%,   15% 85%, 0 0; }
}

/* Orb, cincin radar, dan partikel naik (dibuat oleh JS) */
.fx-orb, .fx-ring, .fx-dot { position: absolute; pointer-events: none; z-index: -1; border-radius: 50%; }
.fx-orb { filter: blur(1px); translate: calc(var(--fx-px, 0) * var(--d, 24) * 1px) calc(var(--fx-py, 0) * var(--d, 24) * 1px); transition: translate .6s var(--ease); }
.fx-orb.o1 { width: 220px; height: 220px; left: -70px; top: 16%; border: 1px solid rgba(34,211,238,.35); animation: fxFloatA 11s ease-in-out infinite alternate; }
.fx-orb.o2 { width: 120px; height: 120px; right: 8%; bottom: 14%; background: radial-gradient(circle at 30% 30%, rgba(255,138,76,.55), rgba(255,94,19,.05) 70%); animation: fxFloatB 9s ease-in-out infinite alternate; }
.fx-orb.o3 { width: 70px; height: 70px; left: 40%; top: 8%; background: radial-gradient(circle at 30% 30%, rgba(34,211,238,.6), rgba(6,182,212,.04) 70%); animation: fxFloatA 8s ease-in-out infinite alternate-reverse; --d: 40; }
.fx-orb.o4 { width: 340px; height: 340px; right: -140px; top: 36%; border: 1px dashed rgba(255,255,255,.12); animation: fxRot 40s linear infinite; }
@keyframes fxFloatA { to { transform: translate3d(26px, -34px, 0) scale(1.08); } }
@keyframes fxFloatB { to { transform: translate3d(-34px, -26px, 0) scale(1.15); } }
@keyframes fxRot { to { transform: rotate(360deg); } }
.fx-ring { left: 62%; top: 26%; width: 260px; height: 260px; margin: -130px 0 0 -130px; border: 1px solid rgba(34,211,238,.45); opacity: 0; animation: fxRadar 7s ease-out infinite; }
.fx-ring.r2 { animation-delay: 2.3s; } .fx-ring.r3 { animation-delay: 4.6s; }
@keyframes fxRadar { 0% { transform: scale(.3); opacity: 0; } 15% { opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
.fx-dot { bottom: -14px; background: rgba(255,255,255,.75); box-shadow: 0 0 12px rgba(34,211,238,.9); opacity: 0; animation: fxRise linear infinite; }
@keyframes fxRise { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 12% { opacity: .85; } 80% { opacity: .5; } 100% { transform: translate3d(var(--dx, 30px), -105vh, 0); opacity: 0; } }

/* ---- Panel kiri: teks masuk berurutan ---- */
.fx-auth .hero-navy > .brand { animation: fxDown .8s .1s var(--ease) both; }
.fx-auth .hero-navy .relative > .eyebrow { animation: fxUp .7s .35s var(--ease) both; }
.fx-auth .hero-navy .relative > h1 { animation: fxUp .9s .5s var(--ease) both; }
.fx-auth .hero-navy .relative > p:not(.eyebrow) { animation: fxUp .8s .7s var(--ease) both; }
.fx-auth .hero-navy .badge { animation: fxPop .6s var(--ease) both; }
.fx-auth .hero-navy .badge:nth-child(1) { animation-delay: .95s; } .fx-auth .hero-navy .badge:nth-child(2) { animation-delay: 1.07s; } .fx-auth .hero-navy .badge:nth-child(3) { animation-delay: 1.19s; }
.fx-auth .hero-navy .badge svg path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: fxDraw .5s var(--ease) forwards; }
.fx-auth .hero-navy .badge:nth-child(1) svg path { animation-delay: 1.3s; } .fx-auth .hero-navy .badge:nth-child(2) svg path { animation-delay: 1.42s; } .fx-auth .hero-navy .badge:nth-child(3) svg path { animation-delay: 1.54s; }
@keyframes fxDown { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }
@keyframes fxPop { from { opacity: 0; transform: translateY(14px) scale(.8); } 60% { transform: translateY(-2px) scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes fxDraw { to { stroke-dashoffset: 0; } }

/* Kata bergradasi di judul: kilau bergerak cyan ke oranye */
.fx-auth .hero-navy .gold-text {
    background: linear-gradient(90deg, #22D3EE 0%, #7DE3F4 25%, #FF8A4C 55%, #FF5E13 70%, #22D3EE 100%); background-size: 250% 100%;
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; animation: fxShine 7s linear infinite;
}
@keyframes fxShine { to { background-position: -250% 0; } }

/* Tiket melayang: masuk dengan memantul, kilap menyapu, miring mengikuti kursor */
.fx-auth .hero-navy .floaty > div {
    position: relative; overflow: hidden; transform-style: preserve-3d;
    transform: perspective(800px) rotateX(var(--fx-rx, 0deg)) rotateY(var(--fx-ry, 0deg));
    transition: transform .25s ease-out; animation: fxTicketIn 1.1s .55s var(--ease) backwards;
}
.fx-auth .hero-navy .floaty > div::after { content: ""; position: absolute; top: 0; bottom: 0; left: -70%; width: 45%; pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); transform: skewX(-20deg); animation: fxSheen 5.5s 1.8s ease-in-out infinite; }
@keyframes fxTicketIn { from { opacity: 0; transform: perspective(800px) translateY(60px) rotateX(18deg) rotateY(-24deg) scale(.88); } }
@keyframes fxSheen { 0%, 55% { left: -70%; } 100% { left: 140%; } }

/* ---- Panel kanan: kartu form ---- */
.fx-auth .card::after {
    content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none; z-index: 2;
    background: conic-gradient(from var(--fx-ang), transparent 0 62%, #22D3EE 78%, #FF5E13 92%, transparent 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
    animation: fxAng 6s linear infinite;
}
@keyframes fxAng { to { --fx-ang: 360deg; } }
.fx-auth .card { box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 30px 70px -30px rgba(6,182,212,.35); }

.fx-auth .card > a.brand { animation: fxLogo .9s .15s var(--ease) both; }
@keyframes fxLogo { from { opacity: 0; transform: scale(.6) rotate(-8deg); } 60% { transform: scale(1.06) rotate(1deg); } to { opacity: 1; transform: none; } }
.fx-auth .card > :is(h2, p):not(.rounded-xl) { animation: fxUp .6s var(--ease) both; animation-delay: calc(.2s + var(--fx-ci, 0) * 70ms); }
.fx-auth .card > h2::after { content: ""; display: block; width: 0; height: 4px; margin-top: .55rem; border-radius: 4px; background: linear-gradient(90deg, #06B6D4, #FF5E13); animation: fxBar .9s .7s var(--ease) forwards; }
@keyframes fxBar { to { width: 56px; } }

/* Kolom form muncul berurutan (indeks --fx-si dipasang JS, jadi berlaku untuk form panjang seperti Register) */
.fx-auth form > * { animation: fxUp .6s var(--ease) both; animation-delay: calc(.4s + var(--fx-si, 0) * 65ms); }

/* Fokus: label menyala, kolom terangkat, garis aksen */
.fx-auth form > div .field-label { transition: color .25s ease, transform .25s var(--ease), letter-spacing .25s ease; }
.fx-auth form > div:focus-within .field-label { color: var(--cyan-ink); transform: translateX(4px); }
.fx-auth .field-input:focus { transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(6,182,212,.20), 0 10px 24px -12px rgba(6,182,212,.55); }

/* Tombol tampilkan/sembunyikan password (dibuat JS) */
.fx-pw { position: relative; }
.fx-pw .field-input { padding-right: 2.9rem; }
.fx-eye { position: absolute; right: .35rem; top: 50%; width: 2.3rem; height: 2.3rem; margin-top: -1.15rem; display: grid; place-items: center; border: 0; border-radius: 50%;
    background: transparent; color: var(--muted); cursor: pointer; transition: color .2s, background .2s, transform .3s var(--ease); }
.fx-eye:hover { color: var(--cyan-ink); background: rgba(6,182,212,.12); }
.fx-eye:active { transform: scale(.85); }
.fx-eye svg { width: 19px; height: 19px; }
.fx-eye .fx-slash { stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset .35s var(--ease); }
.fx-eye.on .fx-slash { stroke-dashoffset: 0; }

/* Kolom terisi benar: tanda centang hijau muncul dengan memantul */
.fx-auth .field-input.fx-ok { border-color: rgba(22,163,74,.55);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316A34A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px; padding-right: 2.6rem; animation: fxOk .45s var(--ease); }
@keyframes fxOk { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); } 100% { box-shadow: 0 0 0 10px rgba(22,163,74,0); } }
.fx-auth .field-input.fx-shake { animation: fxShake .5s ease; border-color: #E11D48; }
@keyframes fxShake { 0%, 100% { transform: none; } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* Pesan galat bergetar, pesan sukses memantul */
.fx-auth .card [style*="#FFEBEE"] { animation: slideIn .6s var(--ease) both, fxShake .6s .35s ease; }
.fx-auth .card [style*="#E8F7EE"] { animation: fxPop .6s var(--ease) both; }

/* Tombol Masuk / Daftar: gradasi mengalir + napas cahaya */
.fx-auth .btn-primary.w-full {
    background: linear-gradient(100deg, #FF5E13 0%, #FF8A4C 35%, #FF5E13 60%, #E04A08 100%); background-size: 300% 100%;
    animation: fxUp .6s var(--ease) both, fxFlow 5s ease-in-out infinite, fxBreath 3s ease-in-out infinite;
    animation-delay: calc(.4s + var(--fx-si, 0) * 65ms), 0s, 0s;
}
.fx-auth .btn-primary.w-full:hover { background: linear-gradient(100deg, #FF5E13 0%, #FF8A4C 35%, #FF5E13 60%, #E04A08 100%); background-size: 300% 100%; }
@keyframes fxFlow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes fxBreath { 0%, 100% { box-shadow: 0 10px 24px rgba(255,94,19,.30); } 50% { box-shadow: 0 14px 36px rgba(255,94,19,.55); } }

/* Tautan di bawah form: garis bawah menyapu */
.fx-auth .card a.font-semibold { background: linear-gradient(90deg, #06B6D4, #FF5E13) left bottom / 0% 2px no-repeat; transition: background-size .35s var(--ease); padding-bottom: 2px; }
.fx-auth .card a.font-semibold:hover { background-size: 100% 2px; }

@media (prefers-reduced-motion: reduce) {
    .pb-nav::after, .tk-hero::before, .tk-hero::after, .tk-hero-copy > *, .tk-feature, .pb-actions a.btn-primary, .fx-auth form > *, html.fx-arrive body::after,
    .tk-cta::before, .tk-cta::after, .fx-auth .hero-navy, .fx-auth .hero-navy *, .fx-auth .card, .fx-auth .card::after, .fx-auth .card > *, .fx-auth .btn-primary.w-full,
    .fx-orb, .fx-ring, .fx-dot { animation: none !important; }
    .fx-ring, .fx-dot { display: none; }
    .fx-auth .hero-navy .badge svg path { stroke-dashoffset: 0; }
    .fx-auth .card > h2::after { width: 56px; }
    .fx-rv { opacity: 1; transform: none; transition: none; }
    .fx-wipe, .fx-wipe.on { transition: none; }
}
