/* ============ Halaman login — PT Hakaaston MEP Maintenance ============ */
:root {
    --red: #e3000f; --red-d: #b3000c; --gold: #f5c518; --ink: #0f172a; --ink-2: #475569; --ink-3: #64748b;
    --mx: 0; --my: 0;
}
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
.lg-body { font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #fff; background: #1a0508; min-height: 100vh; overflow-x: hidden; position: relative; -webkit-font-smoothing: antialiased; }

/* ---------- latar ---------- */
.lg-bg { position: fixed; inset: -6%; background: url('../img/bg_tol_lampung.jpg') center / cover no-repeat; filter: blur(3px) saturate(1.15); animation: kenburns 32s ease-in-out infinite alternate; transform: scale(1.06); }
.lg-shade { position: fixed; inset: 0; background:
    radial-gradient(1100px 600px at 12% 8%, rgba(227, 0, 15, .55), transparent 60%),
    radial-gradient(900px 600px at 95% 100%, rgba(245, 197, 24, .28), transparent 60%),
    linear-gradient(115deg, rgba(20, 4, 8, .94) 0%, rgba(58, 6, 14, .82) 45%, rgba(15, 23, 42, .78) 100%);
    background-size: 140% 140%, 140% 140%, 100% 100%; animation: shadeShift 18s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.06) translate3d(0, 0, 0); } to { transform: scale(1.2) translate3d(-2.5%, -1.5%, 0); } }
@keyframes shadeShift { from { background-position: 0 0, 100% 100%, 0 0; } to { background-position: 30% 20%, 70% 80%, 0 0; } }

.lg-orbs { position: fixed; inset: 0; pointer-events: none; overflow: hidden; }
.lg-orbs i { position: absolute; border-radius: 50%; filter: blur(6px); opacity: .42; animation: orb var(--d, 16s) ease-in-out infinite alternate; background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .22), var(--c, rgba(227, 0, 15, .35)) 55%, transparent 72%);
    transform: translate3d(calc(var(--mx) * var(--p, 30px)), calc(var(--my) * var(--p, 30px)), 0); }
.lg-orbs i:nth-child(1) { width: 260px; height: 260px; left: 6%; top: 62%; --d: 17s; --p: 40px; }
.lg-orbs i:nth-child(2) { width: 140px; height: 140px; left: 40%; top: 10%; --d: 13s; --c: rgba(245, 197, 24, .4); --p: -30px; }
.lg-orbs i:nth-child(3) { width: 90px; height: 90px; left: 58%; top: 74%; --d: 11s; --c: rgba(255, 255, 255, .25); --p: 55px; }
.lg-orbs i:nth-child(4) { width: 320px; height: 320px; right: -6%; top: -8%; --d: 21s; --c: rgba(245, 197, 24, .3); --p: -45px; }
.lg-orbs i:nth-child(5) { width: 70px; height: 70px; left: 24%; top: 28%; --d: 9s; --c: rgba(227, 0, 15, .5); --p: 25px; }
@keyframes orb { from { margin-top: -18px; margin-left: -10px; } to { margin-top: 26px; margin-left: 14px; } }

/* ---------- jalan di dasar halaman ---------- */
.lg-road { position: fixed; left: 0; right: 0; bottom: 0; height: 46px; background: linear-gradient(to top, rgba(8, 8, 12, .85), rgba(8, 8, 12, 0)); pointer-events: none; overflow: hidden; }
.lg-dash { position: absolute; left: 0; right: 0; bottom: 14px; height: 4px; opacity: .8; background: repeating-linear-gradient(90deg, var(--gold) 0 46px, transparent 46px 92px); animation: dash 1.6s linear infinite; }
.lg-beam { position: absolute; bottom: 8px; left: -240px; width: 200px; height: 10px; border-radius: 10px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .9), rgba(255, 244, 190, .9)); filter: blur(3px); animation: beam var(--t, 7s) linear infinite; animation-delay: var(--w, 0s); }
.lg-beam.b2 { --t: 9.5s; --w: 2.5s; bottom: 22px; height: 6px; background: linear-gradient(90deg, transparent, rgba(227, 0, 15, .95)); }
.lg-beam.b3 { --t: 6s; --w: 4.5s; width: 140px; bottom: 12px; }
@keyframes dash { to { background-position: -92px 0; } }
@keyframes beam { from { transform: translateX(0); } to { transform: translateX(calc(100vw + 480px)); } }

/* ---------- tata letak ---------- */
.lg-shell { position: relative; z-index: 2; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; max-width: 1240px; margin: 0 auto; padding: 40px clamp(18px, 4vw, 48px) 70px; }
.lg-hero { animation: heroIn .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes heroIn { from { opacity: 0; transform: translate3d(-34px, 0, 0); } to { opacity: 1; transform: none; } }
.lg-brand { display: inline-flex; background: #fff; padding: 12px 20px; border-radius: 16px; box-shadow: 0 10px 34px rgba(0, 0, 0, .35); animation: pop .8s .1s cubic-bezier(.2, 1.4, .4, 1) both; }
.lg-brand img { height: 44px; display: block; }
@keyframes pop { from { opacity: 0; transform: scale(.8) translateY(-10px); } to { opacity: 1; transform: none; } }
.lg-title { margin: 26px 0 8px; font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.04; font-weight: 800; letter-spacing: -.02em; text-shadow: 0 6px 30px rgba(0, 0, 0, .35); }
.lg-title span { display: block; background: linear-gradient(100deg, #fff 0%, #ffd9dc 38%, var(--gold) 70%, #fff 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: -220% 0; } }
.lg-type { margin: 0 0 26px; font-size: clamp(1rem, 1.7vw, 1.3rem); font-weight: 600; color: #ffd9dc; min-height: 1.6em; display: flex; align-items: center; gap: 2px; }
.lg-type::before { content: ''; width: 34px; height: 3px; border-radius: 3px; background: var(--gold); margin-right: 12px; flex: none; }
.lg-caret { display: inline-block; width: 2px; height: 1.15em; background: var(--gold); margin-left: 3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.lg-feats { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; max-width: 520px; }
.lg-feats li { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    animation: featIn .7s calc(.45s + var(--i) * .13s) cubic-bezier(.2, .8, .2, 1) both; transition: transform .25s, background .25s, border-color .25s; }
.lg-feats li:hover { transform: translateX(8px); background: rgba(255, 255, 255, .15); border-color: rgba(245, 197, 24, .6); }
.lg-feats li > i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; font-size: 1.05rem; color: #fff; background: linear-gradient(135deg, var(--red), var(--red-d)); box-shadow: 0 6px 16px rgba(227, 0, 15, .45); }
.lg-feats b { display: block; font-size: .95rem; } .lg-feats small { color: rgba(255, 255, 255, .72); font-size: .78rem; }
@keyframes featIn { from { opacity: 0; transform: translate3d(-24px, 10px, 0); } to { opacity: 1; transform: none; } }

.lg-stats { display: flex; gap: clamp(18px, 3vw, 40px); animation: featIn .8s 1s both; }
.lg-stats b { display: block; font-size: clamp(1.5rem, 2.8vw, 2.2rem); font-weight: 800; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums; }
.lg-stats small { color: rgba(255, 255, 255, .7); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

/* ---------- kartu login ---------- */
.lg-side { display: flex; flex-direction: column; align-items: center; gap: 14px; animation: cardIn .9s .15s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes cardIn { from { opacity: 0; transform: translate3d(0, 38px, 0) scale(.96); } to { opacity: 1; transform: none; } }
.lg-card { width: 100%; max-width: 440px; position: relative; border-radius: 26px; padding: 2px; isolation: isolate;
    background: conic-gradient(from var(--ang), transparent 0 55%, var(--gold) 72%, var(--red) 88%, transparent 100%); animation: spin 5.5s linear infinite;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 60px rgba(227, 0, 15, .25);
    /* kartu diam (tidak miring mengikuti kursor) agar ikon MEP tetap tenang */ }
@keyframes spin { to { --ang: 360deg; } }
.lg-card-in { background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 24px; padding: 30px 30px 24px; position: relative; overflow: hidden; }
.lg-card-in::before { content: ''; position: absolute; top: -90px; right: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 0, 15, .14), transparent 70%); }
.lg-card-in > * { position: relative; animation: rise .6s calc(.35s + var(--k, 0) * .08s) cubic-bezier(.2, .8, .2, 1) both; }
.lg-card-in > *:nth-child(1) { --k: 0; } .lg-card-in > *:nth-child(2) { --k: 1; } .lg-card-in > *:nth-child(3) { --k: 2; } .lg-card-in > *:nth-child(4) { --k: 3; }
.lg-card-in > *:nth-child(5) { --k: 4; } .lg-card-in > *:nth-child(6) { --k: 5; } .lg-card-in > *:nth-child(7) { --k: 6; } .lg-card-in > *:nth-child(8) { --k: 7; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
.lg-mascot { display: block; height: 92px; margin: -4px auto 4px; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .22)); animation: none !important; transform: none !important; }
.lg-card h2 { margin: 0; text-align: center; font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; }
.lg-sub { margin: 4px 0 20px; text-align: center; color: var(--ink-3); font-size: .86rem; }

.lg-alert { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; font-size: .85rem; font-weight: 600; margin-bottom: 14px; }
.lg-card.has-error { animation: spin 5.5s linear infinite, shake .55s .2s both; }
@keyframes shake { 10%, 90% { translate: -2px 0; } 20%, 80% { translate: 4px 0; } 30%, 50%, 70% { translate: -7px 0; } 40%, 60% { translate: 7px 0; } }

.lg-field { margin-bottom: 14px; }
.lg-field label { display: block; font-size: .76rem; font-weight: 700; color: var(--ink-2); margin: 0 0 6px 2px; text-transform: uppercase; letter-spacing: .05em; }
.lg-input { position: relative; display: flex; align-items: center; background: #f4f6fa; border: 2px solid transparent; border-radius: 14px; transition: border-color .2s, background .2s, box-shadow .2s, transform .2s; }
.lg-input:focus-within { background: #fff; border-color: var(--red); box-shadow: 0 0 0 5px rgba(227, 0, 15, .12); transform: translateY(-1px); }
.lg-input > i:first-child { position: absolute; left: 15px; color: #94a3b8; transition: color .2s; pointer-events: none; }
.lg-input:focus-within > i:first-child { color: var(--red); }
.lg-input select, .lg-input input { width: 100%; border: 0; background: transparent; outline: 0; font: inherit; font-weight: 600; font-size: .95rem; color: var(--ink); padding: 14px 44px 14px 44px; appearance: none; -webkit-appearance: none; border-radius: 14px; }
.lg-input input::placeholder { color: #a3aec0; font-weight: 500; }
.lg-input select:required:invalid { color: #8b97ab; }
.lg-input select option { color: var(--ink); }
.lg-chev { position: absolute; right: 16px; color: #94a3b8; pointer-events: none; font-size: .78rem; }
.lg-eye { position: absolute; right: 8px; width: 38px; height: 38px; border: 0; background: transparent; color: #94a3b8; border-radius: 10px; cursor: pointer; transition: background .2s, color .2s; }
.lg-eye:hover { background: #e8ecf3; color: var(--red); }
.lg-caps { margin: 6px 0 0 2px; font-size: .76rem; font-weight: 700; color: #b45309; animation: rise .3s both; }
.lg-note { margin: 6px 0 0 2px; font-size: .74rem; color: #b91c1c; }

.lg-btn { width: 100%; position: relative; overflow: hidden; margin-top: 6px; border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 1.02rem; letter-spacing: .01em; color: #fff; padding: 15px 18px; border-radius: 14px;
    background: linear-gradient(135deg, #ff1a2b 0%, var(--red) 45%, var(--red-d) 100%); box-shadow: 0 12px 26px rgba(227, 0, 15, .38); transition: transform .2s, box-shadow .2s, filter .2s; }
.lg-btn::after { content: ''; position: absolute; top: 0; left: -80%; width: 55%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent); transform: skewX(-20deg); animation: sweep 3.6s 1.6s ease-in-out infinite; }
@keyframes sweep { 0% { left: -80%; } 38%, 100% { left: 140%; } }
.lg-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(227, 0, 15, .5); filter: saturate(1.1); }
.lg-btn:active { transform: translateY(0) scale(.99); }
.lg-btn .lg-btn-t i { margin-right: 8px; transition: transform .25s; } .lg-btn:hover .lg-btn-t i { transform: translateX(4px); }
.lg-spin { position: absolute; inset: 0; display: none; place-items: center; background: inherit; }
.lg-spin::before { content: ''; width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: rot .7s linear infinite; }
.lg-btn.loading .lg-spin { display: grid; } .lg-btn:disabled { cursor: progress; }
@keyframes rot { to { transform: rotate(360deg); } }
.lg-foot { margin-top: 16px; text-align: center; font-size: .75rem; color: var(--ink-3); }
.lg-foot i { color: #16a34a; margin-right: 5px; }
.lg-copy { font-size: .76rem; color: rgba(255, 255, 255, .6); text-align: center; }

/* ---------- responsif ---------- */
@media (max-width: 899px) {
    .lg-shell { grid-template-columns: 1fr; gap: 22px; padding-top: 28px; align-content: start; }
    .lg-hero { text-align: center; }
    .lg-brand img { height: 36px; } .lg-title { margin-top: 18px; font-size: 2rem; }
    .lg-type { justify-content: center; margin-bottom: 4px; } .lg-type::before { display: none; }
    .lg-feats, .lg-stats { display: none; }
    .lg-card { transform: none !important; }
    .lg-card-in { padding: 24px 20px 20px; } .lg-mascot { height: 76px; }
}
@media (max-width: 380px) { .lg-title { font-size: 1.7rem; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
    .lg-card { transform: none !important; }
}
