/* =====================================================================================
   login.css : HALAMAN LOGIN PitiDen (tema gelap kaca, hijau-ungu sesuai logo)
   -------------------------------------------------------------------------------------
   Markup-nya ada di index.html, di antara komentar "BLOK LOGIN : MULAI / SELESAI".
   Bagian 1 (PENGATURAN CEPAT) cukup untuk 90% perubahan warna & ukuran.
   Layar pembuka (splash) ada di BAGIAN 9; logikanya di login.js.

   Peta isi:
     1 PENGATURAN CEPAT   2 KERANGKA & LATAR   3 HEADER   4 KOLOM KIRI (hero)
     5 ILUSTRASI MELAYANG 6 KARTU LOGIN        7 FOOTER   8 LAYAR KECIL   9 SPLASH
   ===================================================================================== */

/* ============================== 1. PENGATURAN CEPAT ============================== */
:root {
    --lg-latar: #0b0f19;                         /* warna dasar halaman */
    --lg-hijau: #4ade80;  --lg-hijau-tua: #16a34a;
    --lg-ungu: #c084fc;   --lg-ungu-tua: #9333ea;
    --lg-teks: #f8fafc;   --lg-redup: #94a3b8;
    --lg-kaca: rgba(18, 24, 38, 0.75);           /* warna kartu kaca */
    --lg-garis: rgba(255, 255, 255, 0.08);       /* garis tepi kartu */
    --lg-gradasi: linear-gradient(135deg, #22c55e 0%, #9333ea 100%);   /* tombol & bar */
    --lg-kartu-lebar: 430px;
    --lg-font: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* ============================== 2. KERANGKA & LATAR ============================== */
.login-page {
    box-sizing: border-box; position: relative; min-height: 100vh; min-height: 100dvh;
    display: flex; flex-direction: column; justify-content: space-between;
    color: var(--lg-teks); font-family: var(--lg-font); background-color: var(--lg-latar);
    background-size: 40px 40px;                  /* pola kotak-kotak halus */
    background-image: linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px);
    overflow: hidden auto;
}
.login-page *, .login-page *::before, .login-page *::after { box-sizing: border-box; }
.lg-glow { position: fixed; border-radius: 50%; pointer-events: none; animation: lgGlow 3s ease-in-out infinite; }   /* cahaya latar */
.lg-glow-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: rgba(16, 185, 129, .15); filter: blur(120px); }
.lg-glow-2 { bottom: -10%; right: -10%; width: 600px; height: 600px; background: rgba(147, 51, 234, .15); filter: blur(140px); animation-delay: 1.5s; }
@keyframes lgGlow { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
.lg-kaca { background: var(--lg-kaca); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--lg-garis); }
.lg-teks-gradasi { background: linear-gradient(135deg, #4ade80 0%, #c084fc 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ============================== 3. HEADER ============================== */
.lg-header { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; padding: 24px; display: flex; align-items: center; justify-content: space-between; }
.lg-brand { display: flex; align-items: center; gap: 12px; }
.lg-brand-logo { width: 44px; height: 44px; border-radius: 12px; padding: 6px; display: flex; align-items: center; justify-content: center; border-color: rgba(16, 185, 129, .3); }
.lg-brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.lg-brand-nama { display: block; font-weight: 800; font-size: 1.12rem; letter-spacing: -.3px; line-height: 1; }
.lg-brand-sub { display: block; margin-top: 3px; font: 600 .62rem/1 ui-monospace, Menlo, monospace; letter-spacing: .12em; color: #34d399; }
.lg-online { display: flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font: 500 .72rem ui-monospace, Menlo, monospace; color: #cbd5e1; }
.lg-online i { width: 8px; height: 8px; border-radius: 50%; background: #34d399; animation: lgPing 1.6s ease-in-out infinite; }
.lg-online.offline i { background: #f87171; animation: none; }
@keyframes lgPing { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ============================== 4. KOLOM KIRI (HERO) + 6. KARTU ============================== */
.lg-main { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; padding: 8px 24px; flex: 1; display: grid; grid-template-columns: 7fr 5fr; gap: 48px; align-items: center; }
.lg-hero { display: flex; flex-direction: column; align-items: flex-start; }
.lg-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: .75rem; font-weight: 600; color: #d8b4fe; border-color: rgba(168, 85, 247, .3); margin-bottom: 22px; }
.lg-badge b { padding: 2px 8px; border-radius: 6px; background: rgba(168, 85, 247, .2); font: 700 .62rem ui-monospace, Menlo, monospace; }
.lg-judul { color: var(--lg-teks); margin: 0 0 14px; font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.lg-desk { max-width: 34rem; margin: 0 0 18px; color: var(--lg-redup); font-size: .95rem; line-height: 1.7; }
.lg-pills { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-size: .78rem; color: var(--lg-redup); }
.lg-pills span { display: inline-flex; align-items: center; gap: 6px; }
.lg-pills .bi-check-circle-fill { color: #34d399; }
.lg-pills span:nth-child(even) .bi-check-circle-fill { color: #c084fc; }

/* ============================== 5. ILUSTRASI MELAYANG ============================== */
.lg-visual { position: relative; width: 100%; max-width: 450px; height: 290px; margin: 6px 0; display: flex; align-items: center; justify-content: center; }
.lg-visual-glow { position: absolute; width: 250px; height: 250px; border-radius: 50%; background: linear-gradient(45deg, rgba(16, 185, 129, .2), rgba(147, 51, 234, .2)); filter: blur(40px); }
.lg-floor { position: absolute; width: 270px; height: 270px; border-radius: 26px; overflow: hidden; background: rgba(15, 23, 42, .85); border: 1px solid rgba(100, 116, 139, .4); box-shadow: 0 25px 50px rgba(0, 0, 0, .5);
    transform: perspective(900px) rotateX(58deg) rotateZ(-35deg) translateY(34px);
    background-image: linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 30px 30px; }
.lg-floor::before, .lg-floor::after { content: ''; position: absolute; left: 0; width: 100%; height: 3px; animation: lgGlow 3s ease-in-out infinite; }
.lg-floor::before { top: 33%; background: linear-gradient(90deg, transparent, #34d399, transparent); }
.lg-floor::after { top: 66%; background: linear-gradient(90deg, transparent, #c084fc, transparent); animation-delay: 1s; }
.lg-float { position: absolute; animation: lgFloat 6s ease-in-out infinite; }
.lg-float.tunda { animation-delay: 3s; }
@keyframes lgFloat { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-15px) rotate(1deg); } }
.lg-pusat { z-index: 3; width: 150px; padding: 16px 14px; border-radius: 22px; text-align: center; border: 2px solid rgba(74, 222, 128, .35); box-shadow: 0 20px 50px rgba(16, 185, 129, .25); background: rgba(15, 23, 42, .9); }
.lg-pusat img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 14px rgba(168, 85, 247, .45)); }
.lg-pusat small { display: block; margin-top: 8px; font: 700 .6rem ui-monospace, Menlo, monospace; letter-spacing: .16em; color: #34d399; }
.lg-mini { z-index: 4; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: rgba(15, 23, 42, .85); box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.lg-mini .ikon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: .95rem; }
.lg-mini small { display: block; font-size: .62rem; color: var(--lg-redup); }
.lg-mini b { font-size: .75rem; }
.lg-mini.kiri { left: 0; top: 24px; border-color: rgba(168, 85, 247, .3); }
.lg-mini.kiri .ikon { background: rgba(168, 85, 247, .2); color: #d8b4fe; }
.lg-mini.kanan { right: 0; bottom: 30px; border-color: rgba(16, 185, 129, .3); }
.lg-mini.kanan .ikon { background: rgba(16, 185, 129, .2); color: #6ee7b7; }

/* ============================== 6. KARTU LOGIN ============================== */
.lg-card { position: relative; width: 100%; max-width: var(--lg-kartu-lebar); margin: 0 auto; padding: 34px; border-radius: 26px; box-shadow: 0 25px 60px rgba(0, 0, 0, .5); border-color: rgba(255, 255, 255, .1); }
.lg-card::before { content: ''; position: absolute; top: -1px; left: 12.5%; width: 75%; height: 2px; background: linear-gradient(90deg, transparent, #a855f7, transparent); }
.lg-card h2 { color: var(--lg-teks); margin: 0; font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; }
.lg-card .lg-sub { margin: 6px 0 22px; font-size: .78rem; color: var(--lg-redup); line-height: 1.6; }
.login-google-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 16px; border: 0; border-radius: 14px; background: #fff; color: #1f2937; font: 600 .92rem var(--lg-font); cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); transition: transform .2s, box-shadow .2s; }
.login-google-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(147, 51, 234, .35); }
.login-google-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.login-msg { min-height: 1.2em; margin: 14px 0 0; font-size: .78rem; line-height: 1.5; text-align: center; }
.login-msg.text-muted { color: var(--lg-redup) !important; }
.login-msg.text-danger { color: #fca5a5 !important; }
.login-setup { margin-top: 16px; padding: 14px; border-radius: 14px; background: rgba(168, 85, 247, .12); border: 1px solid rgba(168, 85, 247, .3); color: #e9d5ff; font-size: .82rem; }
.lg-card-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .07); text-align: center; font-size: .7rem; color: #64748b; line-height: 1.7; }
.lg-card-foot a { color: #34d399; text-decoration: none; }
.lg-card-foot a:hover { text-decoration: underline; }

/* ============================== 7. FOOTER ============================== */
.lg-footer { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 24px auto 0; padding: 16px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: .75rem; color: #64748b; border-top: 1px solid rgba(30, 41, 59, .7); }
.lg-footer .kiri { display: flex; align-items: center; gap: 8px; }
.lg-footer .titik { width: 8px; height: 8px; border-radius: 50%; background: #10b981; }
.lg-footer .kanan { display: flex; align-items: center; gap: 12px; }
.lg-footer a { color: #64748b; text-decoration: none; }
.lg-footer a:hover { color: #cbd5e1; }
.lg-footer .pemisah { width: 1px; height: 12px; background: #334155; }

/* ============================== 8. LAYAR KECIL ============================== */
@media (max-width: 991.98px) {
    .lg-main { grid-template-columns: 1fr; gap: 28px; padding: 8px 18px; }
    .lg-card { order: -1; padding: 26px 22px; }        /* kartu login di atas pada HP */
    .lg-hero { align-items: center; text-align: center; }
    .lg-visual, .lg-pills { display: none; }
    .lg-header { padding: 18px; }
    .lg-footer { justify-content: center; text-align: center; }
}
@media (max-width: 480px) { .lg-online span { display: none; } .lg-judul { font-size: 1.7rem; } }

/* ============================== 9. SPLASH / LAYAR PEMBUKA ============================== */
/* Tampil sebentar saat aplikasi dibuka. Logika (progres & kapan hilang) ada di login.js. */
#preloader { position: fixed; inset: 0; z-index: 3000; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #070a12; font-family: var(--lg-font); color: var(--lg-teks); transition: opacity .7s ease; }
#preloader.selesai { opacity: 0; pointer-events: none; }
.pl-logo { position: relative; width: 120px; height: 120px; margin-bottom: 28px; display: flex; align-items: center; justify-content: center; }
.pl-logo::before { content: ''; position: absolute; inset: 0; border: 2px dashed rgba(16, 185, 129, .4); border-radius: 50%; animation: plPutar 12s linear infinite; }
.pl-logo::after { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(168, 85, 247, .3); border-radius: 50%; animation: lgPing 1.8s ease-in-out infinite; }
.pl-logo img { width: 74px; height: auto; filter: drop-shadow(0 0 12px rgba(168, 85, 247, .5)); }
@keyframes plPutar { to { transform: rotate(360deg); } }
.pl-nama { color: var(--lg-teks); margin: 0 0 6px; font-size: 1.25rem; font-weight: 700; letter-spacing: .08em; }
.pl-status { margin: 0 0 22px; font: 400 .7rem ui-monospace, Menlo, monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--lg-redup); text-align: center; padding: 0 20px; }
.pl-bar { width: 256px; max-width: 80vw; height: 7px; padding: 2px; border-radius: 999px; background: #1e293b; border: 1px solid rgba(51, 65, 85, .5); overflow: hidden; }
.pl-bar div { height: 100%; width: 0; border-radius: 999px; background: var(--lg-gradasi); box-shadow: 0 0 10px #4ade80; transition: width .3s ease-out; }
.pl-persen { margin-top: 14px; font: 400 .72rem ui-monospace, Menlo, monospace; color: #64748b; }
.pl-kaki { position: absolute; bottom: 24px; font: 400 .68rem ui-monospace, Menlo, monospace; letter-spacing: .1em; color: #475569; }


/* ============================== 10. PANEL AUTENTIKASI MULTI-LANGKAH (Google, No HP/OTP, Profil, Lupa Akun) ==============================
   Markup di index.html (BLOK LOGIN), logika di login.js BLOK 4. Satu panel tampil pada satu waktu (kelas .au-panel). */
.au-panel { display: none; }
.au-panel.aktif { display: block; animation: auMasuk .25s ease; }
@keyframes auMasuk { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.au-atau { display: flex; align-items: center; gap: 10px; margin: 16px 0; font-size: .7rem; color: #64748b; letter-spacing: .08em; }
.au-atau::before, .au-atau::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, .1); }
.au-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: var(--lg-teks); font: 600 .9rem var(--lg-font); cursor: pointer; transition: background .2s, transform .2s; }
.au-btn:hover { background: rgba(255, 255, 255, .11); transform: translateY(-1px); }
.au-btn:disabled { opacity: .55; cursor: wait; transform: none; }
.au-btn.utama { border: 0; background: var(--lg-gradasi); box-shadow: 0 8px 22px rgba(147, 51, 234, .3); }
.au-btn.utama:hover { filter: brightness(1.08); }
.au-field { margin-bottom: 12px; text-align: left; }
.au-field label { display: block; margin-bottom: 5px; font-size: .72rem; font-weight: 600; color: var(--lg-redup); }
.au-field input { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: var(--lg-teks); font: 500 .92rem var(--lg-font); outline: none; transition: border-color .2s, box-shadow .2s; }
.au-field input:focus { border-color: #a855f7; box-shadow: 0 0 0 3px rgba(168, 85, 247, .22); }
.au-field input[readonly] { opacity: .65; }
.au-field input.otp { text-align: center; letter-spacing: .5em; font-size: 1.4rem; font-weight: 700; }
.au-field .au-hint { margin-top: 4px; font-size: .68rem; color: #64748b; }
.au-telp { display: flex; gap: 8px; }
.au-telp .kode { flex: 0 0 64px; text-align: center; padding-left: 0; padding-right: 0; }
.au-link { background: none; border: 0; padding: 0; color: #34d399; font: 600 .76rem var(--lg-font); cursor: pointer; }
.au-link:hover { text-decoration: underline; }
.au-link:disabled { color: #64748b; cursor: default; text-decoration: none; }
.au-baris { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.au-info { padding: 12px 14px; border-radius: 12px; background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .25); color: #a7f3d0; font-size: .76rem; line-height: 1.6; text-align: left; }
#recaptcha-box { position: fixed; bottom: 0; right: 0; z-index: 4000; }
