/* Halaman login: ilustrasi animasi. Mode "split" (bawaan) atau "full" (latar penuh). Palet = forest + lime agar serasi dengan aplikasi. */
.lg-body{ margin:0; font-family:var(--font); background:var(--canvas); color:var(--ink); }
.auth-shell{ position:relative; width:100%; max-width:100vw; min-height:100vh; min-height:100dvh; display:grid; grid-template-columns:1.1fr 1fr; gap:20px; padding:20px; overflow:clip; --mx:0; --my:0; box-sizing:border-box; }
.lg-body{ overflow-x:hidden; }
.auth-shell > *{ min-width:0; }
.lg-tools{ position:fixed; top:max(18px,env(safe-area-inset-top)); right:18px; z-index:30; display:flex; gap:8px; }

/* ---------- panggung ilustrasi ---------- */
.lg-scene{ position:relative; grid-column:1; grid-row:1; min-height:560px; border-radius:32px; overflow:hidden; color:#fff; isolation:isolate;
  background:radial-gradient(120% 90% at 18% 8%, #2F6F5F 0%, #1E4A40 46%, #0F2A24 100%); }
.sc-blob{ position:absolute; border-radius:50%; filter:blur(48px); opacity:.55; z-index:-1; animation:scDrift 14s ease-in-out infinite; }
.sc-blob.b1{ width:380px; height:380px; left:-90px; top:-70px; background:radial-gradient(circle,#8DE31B 0%,transparent 68%); opacity:.35; }
.sc-blob.b2{ width:420px; height:420px; right:-120px; bottom:-120px; background:radial-gradient(circle,#2FA38A 0%,transparent 70%); animation-delay:-5s; }
.sc-blob.b3{ width:260px; height:260px; left:38%; top:34%; background:radial-gradient(circle,rgba(141,227,27,.4) 0%,transparent 70%); animation-delay:-9s; opacity:.28; }
@keyframes scDrift{ 0%,100%{ transform:translate(0,0) scale(1); } 33%{ transform:translate(40px,-30px) scale(1.08); } 66%{ transform:translate(-26px,34px) scale(.95); } }
.sc-grid{ position:absolute; inset:0; z-index:-1; opacity:.5; background-image:radial-gradient(rgba(255,255,255,.13) 1.2px,transparent 1.3px); background-size:30px 30px; -webkit-mask-image:radial-gradient(70% 60% at 50% 45%,#000 30%,transparent 100%); mask-image:radial-gradient(70% 60% at 50% 45%,#000 30%,transparent 100%); animation:scGrid 30s linear infinite; }
@keyframes scGrid{ to{ background-position:60px 30px; } }
.sc-dot{ position:absolute; width:6px; height:6px; border-radius:50%; background:#8DE31B; opacity:.7; animation:scFloat 7s ease-in-out infinite; }
.sc-dot.d1{ left:12%; top:22%; } .sc-dot.d2{ left:84%; top:18%; animation-delay:-2s; width:4px; height:4px; } .sc-dot.d3{ left:70%; top:62%; animation-delay:-4s; background:#fff; opacity:.5; }
.sc-dot.d4{ left:22%; top:70%; animation-delay:-1s; background:#fff; width:4px; height:4px; opacity:.45; } .sc-dot.d5{ left:50%; top:12%; animation-delay:-3s; } .sc-dot.d6{ left:92%; top:78%; animation-delay:-5s; width:5px; height:5px; }
@keyframes scFloat{ 50%{ transform:translateY(-18px); opacity:.25; } }

.sc-stage{ position:absolute; left:50%; top:44%; width:min(86%,440px); aspect-ratio:1/0.92; transform:translate(-50%,-50%); }
.sc-stage [data-depth]{ translate:calc(var(--mx) * var(--dp,10) * 1px) calc(var(--my) * var(--dp,10) * 1px); transition:translate .25s ease-out; }
.sc-orbit{ position:absolute; inset:-10%; border-radius:50%; border:1.5px dashed rgba(255,255,255,.16); animation:scSpin 40s linear infinite; }
.sc-orbit.o2{ inset:6%; animation-duration:28s; animation-direction:reverse; border-color:rgba(141,227,27,.22); }
.sc-orbit span{ position:absolute; width:38px; height:38px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.18); backdrop-filter:blur(6px); color:#8DE31B; font-size:17px; animation:scSpin 40s linear infinite reverse; }
.sc-orbit.o2 span{ animation-duration:28s; animation-direction:normal; }
.sc-orbit.o1 span:nth-child(1){ top:-19px; left:50%; margin-left:-19px; } .sc-orbit.o1 span:nth-child(2){ right:4%; bottom:12%; } .sc-orbit.o1 span:nth-child(3){ left:4%; bottom:14%; }
.sc-orbit.o2 span:nth-child(1){ left:-19px; top:42%; } .sc-orbit.o2 span:nth-child(2){ right:-19px; top:30%; }
@keyframes scSpin{ to{ transform:rotate(360deg); } }

.sc-card{ position:absolute; border-radius:22px; background:rgba(255,255,255,.1); border:1px solid rgba(255,255,255,.2); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); box-shadow:0 30px 60px -28px rgba(0,0,0,.55); }
.sc-card.main{ --dp:14; left:6%; right:6%; top:10%; padding:16px 18px 14px; animation:scBob 7s ease-in-out infinite; }
.sc-head{ display:flex; align-items:center; gap:10px; }
.sc-head .av{ width:34px; height:34px; border-radius:11px; background:linear-gradient(135deg,#8DE31B,#2FA38A); }
.sc-head b{ display:block; font-size:13px; font-weight:600; } .sc-head small{ font-size:11px; color:rgba(255,255,255,.62); }
.sc-head .live{ margin-left:auto; display:flex; align-items:center; gap:6px; font-size:10.5px; font-weight:600; color:#8DE31B; }
.sc-head .live i{ width:7px; height:7px; border-radius:50%; background:#8DE31B; animation:scPulse 1.6s ease-out infinite; }
@keyframes scPulse{ 0%{ box-shadow:0 0 0 0 rgba(141,227,27,.6); } 100%{ box-shadow:0 0 0 9px rgba(141,227,27,0); } }
.sc-kpis{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; margin-top:14px; }
.sc-kpis div{ background:rgba(255,255,255,.08); border-radius:13px; padding:8px 10px; }
.sc-kpis small{ display:block; font-size:10px; color:rgba(255,255,255,.6); } .sc-kpis b{ font-size:19px; font-weight:700; letter-spacing:-.02em; }
.sc-line{ width:100%; height:78px; margin-top:12px; overflow:visible; }
.sc-line .stroke{ stroke-dasharray:420; stroke-dashoffset:420; animation:scDraw 2.6s .5s cubic-bezier(.4,0,.2,1) forwards, scGlow 4s 3s ease-in-out infinite; }
.sc-line .area{ opacity:0; animation:scFade 1.4s 1.6s forwards; }
@keyframes scDraw{ to{ stroke-dashoffset:0; } } @keyframes scFade{ to{ opacity:1; } } @keyframes scGlow{ 50%{ filter:drop-shadow(0 0 6px rgba(141,227,27,.8)); } }
.sc-bars{ display:flex; align-items:flex-end; gap:8px; height:46px; margin-top:6px; }
.sc-bars i{ flex:1; height:var(--h); border-radius:7px 7px 3px 3px; background:rgba(255,255,255,.22); transform-origin:bottom; animation:scRise 1.1s var(--d) cubic-bezier(.2,.9,.3,1) both, scBar 5s calc(1.4s + var(--d)) ease-in-out infinite; }
.sc-bars i:nth-child(3n+1){ background:#8DE31B; }
@keyframes scRise{ from{ transform:scaleY(0); } } @keyframes scBar{ 50%{ transform:scaleY(.78); } }
@keyframes scBob{ 50%{ transform:translateY(-10px); } }

.sc-card.ring{ --dp:26; right:-2%; bottom:6%; display:flex; align-items:center; gap:10px; padding:10px 14px 10px 10px; animation:scBob 6s -2s ease-in-out infinite; }
.sc-card.ring svg{ width:58px; height:58px; transform:rotate(-90deg); } .sc-card.ring circle{ fill:none; stroke-width:7; } .sc-card.ring .bg{ stroke:rgba(255,255,255,.15); }
.sc-card.ring .fg{ stroke:#8DE31B; stroke-linecap:round; stroke-dasharray:201; stroke-dashoffset:201; animation:scRing 2.2s .8s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes scRing{ to{ stroke-dashoffset:8; } }
.sc-card.ring b{ display:block; font-size:17px; font-weight:700; } .sc-card.ring small{ font-size:10.5px; color:rgba(255,255,255,.65); }

.sc-chip{ position:absolute; display:flex; align-items:center; gap:9px; padding:9px 13px 9px 10px; border-radius:16px; background:rgba(15,24,21,.55); border:1px solid rgba(255,255,255,.16); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); box-shadow:0 18px 36px -20px rgba(0,0,0,.6); }
.sc-chip i{ font-size:19px; color:#8DE31B; } .sc-chip b{ display:block; font-size:11.5px; font-weight:600; white-space:nowrap; } .sc-chip small{ font-size:10px; color:rgba(255,255,255,.6); }
.sc-chip.c1{ --dp:34; left:-4%; top:56%; animation:scBob 6.5s -1s ease-in-out infinite; }
.sc-chip.c2{ --dp:22; right:-3%; top:2%; animation:scBob 7.5s -3s ease-in-out infinite; }
.sc-chip.c3{ --dp:30; left:8%; bottom:-6%; animation:scBob 8s -4s ease-in-out infinite; }

.sc-copy{ position:absolute; left:40px; right:40px; bottom:36px; }
.sc-copy h2{ font-size:clamp(22px,2.6vw,32px); line-height:1.2; font-weight:600; letter-spacing:-.025em; max-width:430px; margin:0; }
.sc-copy p{ margin:10px 0 0; color:rgba(255,255,255,.7); font-size:13.5px; max-width:400px; }

/* ---------- panel form ---------- */
.lg-form{ grid-column:2; grid-row:1; display:flex; align-items:center; justify-content:center; padding:20px; z-index:2; }
.lg-card{ width:100%; max-width:392px; animation:lgIn .7s cubic-bezier(.2,.9,.3,1) both; }
@keyframes lgIn{ from{ opacity:0; transform:translateY(18px); } }
.lg-brand{ display:flex; align-items:center; gap:8px; font-weight:700; letter-spacing:.06em; font-size:12.5px; margin-bottom:26px; color:var(--ink); }
.lg-brand .mark{ color:var(--lime-2); font-size:22px; display:flex; animation:scSpin 14s linear infinite; }
.lg-title{ font-size:28px; font-weight:700; letter-spacing:-.03em; margin:0; }
.lg-sub{ color:var(--muted); font-size:13.5px; margin:6px 0 24px; }
.lg-muted{ color:var(--muted); }
.lg-ico{ width:54px; height:54px; border-radius:18px; display:flex; align-items:center; justify-content:center; font-size:24px; margin-bottom:16px; background:var(--lime-soft); color:var(--forest-2); animation:lgPop .6s cubic-bezier(.3,1.6,.5,1) both; }
html[data-theme="dark"] .lg-ico{ color:var(--lime); }
@keyframes lgPop{ from{ transform:scale(.4); opacity:0; } }
.lg-alert{ display:flex; gap:8px; align-items:flex-start; margin-bottom:18px; padding:11px 14px; border-radius:16px; font-size:13px; background:#FDE9EA; color:#8A1C24; animation:lgShake .45s; }
.lg-alert.ok{ background:#E4F8EC; color:#1E5B2C; animation:none; }
html[data-theme="dark"] .lg-alert{ background:rgba(220,70,70,.16); color:#FFB4B4; } html[data-theme="dark"] .lg-alert.ok{ background:var(--lime-soft); color:var(--lime); }
@keyframes lgShake{ 20%,60%{ transform:translateX(-6px); } 40%,80%{ transform:translateX(6px); } }
.lg-field{ position:relative; } .lg-field > i:first-child{ position:absolute; left:14px; top:50%; transform:translateY(-50%); color:var(--muted); pointer-events:none; }
.lg-field .input-field{ padding-left:40px; } .lg-eye{ position:absolute; right:10px; top:50%; transform:translateY(-50%); color:var(--muted); padding:6px; }
.lg-submit{ padding:13px 20px; position:relative; overflow:hidden; } .lg-submit:disabled{ opacity:.8; cursor:progress; }
.lg-spin{ display:inline-block; animation:scSpin .8s linear infinite; }
.lg-link{ color:var(--muted); font-weight:600; } .lg-link:hover{ color:var(--ink); }
.lg-code{ text-align:center; font-size:24px; letter-spacing:.35em; font-weight:600; padding-left:.35em; }
/* Turnstile: kartu verifikasi selebar kolom form, tinggi tetap agar form tidak melompat saat widget dimuat */
.cf-box{ border:1px solid var(--line); border-radius:18px; background:var(--surface-2); padding:10px 12px 12px; }
.cf-head{ display:flex; align-items:center; gap:8px; margin-bottom:8px; font-size:12px; font-weight:600; color:var(--ink); }
.cf-head > .bi{ color:var(--forest-3, #2F6F5F); font-size:15px; } .cf-head small{ margin-left:auto; font-weight:500; color:var(--muted); font-size:11px; } .cf-head small.ok{ color:#1E7B45; font-weight:600; }
.cf-slot{ position:relative; min-height:65px; border-radius:12px; overflow:hidden; } .cf-slot iframe{ max-width:100%; display:block; }
.cf-skel{ position:absolute; inset:0; border-radius:12px; background:linear-gradient(90deg,var(--surface) 25%,var(--line) 50%,var(--surface) 75%); background-size:200% 100%; animation:cfShim 1.4s linear infinite; }
.cf-slot iframe ~ .cf-skel, .cf-slot:has(iframe) .cf-skel{ display:none; }
@keyframes cfShim{ to{ background-position:-200% 0; } }
html[data-lmode="full"] .cf-box{ background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.2); } html[data-lmode="full"] .cf-head{ color:#fff; } html[data-lmode="full"] .cf-head small{ color:rgba(255,255,255,.6); }

/* ---------- mode layar penuh ---------- */
html[data-lmode="full"] .auth-shell{ display:flex; justify-content:flex-end; padding:0; }
html[data-lmode="full"] .lg-scene{ position:fixed; inset:0; border-radius:0; min-height:0; z-index:0; }
html[data-lmode="full"] .sc-stage{ left:30%; top:46%; width:min(46vw,560px); }
html[data-lmode="full"] .sc-copy{ left:max(5vw,40px); bottom:max(6vh,36px); } html[data-lmode="full"] .sc-copy h2{ font-size:clamp(26px,3.2vw,44px); max-width:560px; }
html[data-lmode="full"] .lg-form{ position:relative; width:min(50%,560px); margin-right:3vw; }
html[data-lmode="full"] .lg-card{ padding:34px 32px; border-radius:30px; color:#fff; background:rgba(12,26,22,.58); border:1px solid rgba(255,255,255,.16); backdrop-filter:blur(22px) saturate(1.2); -webkit-backdrop-filter:blur(22px) saturate(1.2); box-shadow:0 40px 80px -30px rgba(0,0,0,.65); }
html[data-lmode="full"] .lg-brand, html[data-lmode="full"] .lg-title, html[data-lmode="full"] .lg-card .form-label{ color:#fff; }
html[data-lmode="full"] .lg-sub, html[data-lmode="full"] .lg-muted, html[data-lmode="full"] .lg-link, html[data-lmode="full"] .lg-field > i:first-child, html[data-lmode="full"] .lg-eye{ color:rgba(255,255,255,.66); }
html[data-lmode="full"] .lg-card .input-field{ background:rgba(255,255,255,.09); border-color:rgba(255,255,255,.2); color:#fff; }
html[data-lmode="full"] .lg-card .input-field::placeholder{ color:rgba(255,255,255,.4); }
html[data-lmode="full"] .lg-ico{ background:rgba(141,227,27,.16); color:#8DE31B; }

/* ---------- responsif & aksesibilitas ---------- */
@media (max-width:980px){
  .auth-shell{ grid-template-columns:1fr; } .lg-scene{ display:none; } .lg-form{ grid-column:1; }
  html[data-lmode="full"] .lg-scene{ display:block; } html[data-lmode="full"] .auth-shell{ justify-content:center; }
  html[data-lmode="full"] .lg-form{ width:100%; margin:0; padding:16px; } html[data-lmode="full"] .sc-stage{ left:50%; top:22%; width:min(88vw,360px); opacity:.85; }
  html[data-lmode="full"] .sc-copy{ display:none; }
}
@media (prefers-reduced-motion:reduce){
  .auth-shell *, .auth-shell *::before, .auth-shell *::after{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition:none !important; }
  .sc-line .stroke{ stroke-dashoffset:0; } .sc-line .area{ opacity:1; } .sc-card.ring .fg{ stroke-dashoffset:8; }
}

.sc-stage [data-depth="14"]{ --dp:14; }
.sc-stage [data-depth="22"]{ --dp:22; }
.sc-stage [data-depth="26"]{ --dp:26; }
.sc-stage [data-depth="30"]{ --dp:30; }
.sc-stage [data-depth="34"]{ --dp:34; }
