/* APKERNA V6 — Login PIN neon, database tetap kompatibel */
body:has(.masuk-layout){background:#20272a;overflow-x:hidden}
.masuk-layout{min-height:100vh;min-height:100dvh;background:#20272a;position:relative;isolation:isolate}
.masuk-layout>.ak-login-background-image{position:fixed;inset:0;width:100%;height:100%;min-height:100dvh;object-fit:cover;object-position:center;z-index:0;pointer-events:none;user-select:none;filter:saturate(.72) brightness(.43)}
.masuk-layout>.ak-login-background-overlay{position:fixed;inset:0;z-index:1;pointer-events:none;background:linear-gradient(135deg,rgba(18,24,27,.86),rgba(22,29,31,.67) 48%,rgba(15,20,23,.88));backdrop-filter:blur(1px)}
.masuk-layout>.utama{position:relative;z-index:2}.masuk-layout::before{display:none}.masuk-layout .utama{margin-left:0;min-height:100vh;min-height:100dvh}
.masuk-layout .konten{min-height:100vh;min-height:100dvh;max-width:none;padding:70px 20px 38px;display:flex;align-items:center;justify-content:center}
.masuk-layout .notifikasi{background:rgba(119,25,35,.92);border:1px solid rgba(255,160,171,.55);color:#fff;position:fixed;z-index:50;top:14px;left:50%;transform:translateX(-50%);max-width:min(620px,calc(100% - 28px));box-shadow:0 10px 34px #0008;border-radius:12px}.masuk-layout .notifikasi.sukses{background:rgba(5,112,83,.94)}

.pin-login-card{--c1:#1aff8b;--c2:#00e9ff;--c3:#6e6cff;--c4:#ff4e9f;--c5:#ffd400;position:relative;width:min(382px,calc(100vw - 32px));border-radius:31px;background:linear-gradient(180deg,rgba(48,58,61,.97),rgba(31,40,43,.98));color:#f8ffff;padding:61px 24px 24px;box-shadow:0 28px 75px #000a,0 0 36px rgba(0,255,232,.09);isolation:isolate}
.pin-login-card::before{content:"";position:absolute;inset:-3px;border-radius:34px;background:conic-gradient(from 10deg,var(--c1),var(--c2),var(--c3),var(--c4),var(--c5),var(--c1));z-index:-2;animation:pinHue 8s linear infinite;filter:saturate(1.15)}
.pin-login-card::after{content:"";position:absolute;inset:1px;border-radius:29px;background:linear-gradient(180deg,#303a3d 0%,#20292c 100%);z-index:-1}
@keyframes pinHue{to{filter:hue-rotate(360deg) saturate(1.15)}}
.pin-logo-wrap{position:absolute;top:-47px;left:50%;transform:translateX(-50%);width:94px;height:94px;border-radius:50%;display:grid;place-items:center;background:#283237;box-shadow:0 0 0 3px #fff3,0 0 18px #00ffd5,0 0 38px #00ffd566;z-index:3}
.pin-logo-wrap::before{content:"";position:absolute;inset:-3px;border-radius:50%;background:conic-gradient(var(--c1),var(--c5),var(--c4),var(--c2),var(--c1));z-index:-1}
.pin-logo{display:grid;place-items:center;width:82px;height:82px;border-radius:50%;overflow:hidden;background:#fff}.pin-logo .logo-perusahaan-img{width:100%;height:100%;object-fit:contain}.pin-logo .ikon-svg{width:48px;height:48px;color:#0baf81}
.pin-login-content h1{margin:7px 0 4px;text-align:center;color:#13f6ed;font-size:27px;line-height:1.05;text-shadow:0 0 8px #05e7ddaa,0 0 19px #05e7dd66;letter-spacing:-.5px}.pin-subtitle{text-align:center;margin:0 0 18px;color:#f0f4f4;font-size:12px}
.pin-form{margin:0}.pin-dots{height:34px;display:flex;justify-content:center;align-items:center;gap:17px}.pin-dot{width:14px;height:14px;border:2px solid #aeb8ba;border-radius:50%;box-shadow:inset 0 0 7px #0006;transition:.15s}.pin-dot.filled{border-color:#21fff1;background:#12e7db;box-shadow:0 0 7px #12e7db,0 0 15px #12e7dbaa,inset 0 0 4px #fff}
.pin-divider{height:1px;background:linear-gradient(90deg,transparent,#9ba6aa 15%,#9ba6aa 85%,transparent);opacity:.68;margin:4px 0 12px}
.pin-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:9px 10px}.pin-key{height:49px;border:1px solid #778286;border-radius:9px;color:#fff;font-weight:800;font-size:20px;background:linear-gradient(180deg,#5c676a,#455053);box-shadow:inset 0 1px 0 #ffffff22,0 4px 8px #0004;cursor:pointer;transition:transform .08s,filter .12s,box-shadow .12s}.pin-key:hover{filter:brightness(1.13);box-shadow:0 0 12px #00ffe733,inset 0 1px 0 #ffffff33}.pin-key:active{transform:translateY(2px) scale(.98)}
.pin-key-clear{background:linear-gradient(135deg,#ffbf00,#ff9e00);border-color:#ffc928;color:white}.pin-key-back{background:linear-gradient(135deg,#ff4d9b,#f4327f);border-color:#ff67aa}.pin-key-back svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle}
.pin-options{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:10px 1px 9px;font-size:11px}.pin-remember{display:inline-flex;align-items:center;gap:6px;cursor:pointer;color:#f4f7f7}.pin-remember input{accent-color:#10dfc8;width:13px;height:13px;margin:0}.pin-link{border:0;background:none;color:#11f2df;font-size:11px;font-weight:700;padding:0;cursor:pointer;text-decoration:none}.pin-link:hover{text-decoration:underline}
.pin-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px}.pin-actions button{height:43px;border-radius:7px;font-weight:800;font-size:13px;cursor:pointer}.pin-cancel{border:2px solid #ff4b9d;background:#ffffff08;color:#ff69ad;box-shadow:0 0 10px #ff3d8a28 inset}.pin-submit{border:0;background:linear-gradient(100deg,#11d7cf,#00f1ec);color:#0d3435;box-shadow:0 0 15px #00e9e66b;font-weight:900!important}.pin-submit:disabled{filter:grayscale(.6);opacity:.42;box-shadow:none;cursor:not-allowed}
.pin-register-divider{display:flex;align-items:center;gap:10px;color:#cad1d2;font-size:10px;margin:17px 0 10px}.pin-register-divider::before,.pin-register-divider::after{content:"";height:1px;background:#737d80;flex:1;opacity:.65}.pin-register{width:100%;height:42px;border:0;border-radius:8px;background:linear-gradient(90deg,#08eb84,#05d99e,#00d9b5);color:#fff;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;box-shadow:0 0 15px #00e49b55}.pin-register svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.9}.pin-inline-note{margin:10px 0 0;padding:9px 10px;border-radius:8px;background:#10181999;color:#dfe9e9;font-size:10px;line-height:1.45;text-align:center}

.legacy-login-content{padding:4px 2px 0}.legacy-login-content h2{text-align:center;margin:8px 0 5px;color:#13f6ed;font-size:24px;text-shadow:0 0 12px #05e7dd88}.legacy-login-content>p{text-align:center;color:#d5dfe0;font-size:11px;line-height:1.45;margin:0 5px 15px}.legacy-form{display:flex;flex-direction:column;gap:10px}.legacy-form>label:not(.pin-remember){display:flex;flex-direction:column;gap:5px;color:#eaf1f1;font-size:11px;font-weight:700}.legacy-form small{font-weight:400;color:#aebbbc}.legacy-form input[type=email],.legacy-form input[type=password]{height:44px;border:1px solid #69787b;border-radius:9px;background:#151d1f;color:#fff;padding:0 12px;outline:none}.legacy-form input:focus{border-color:#16efe2;box-shadow:0 0 0 3px #00e6dc22}.legacy-remember{margin-top:2px}.legacy-back{height:39px;border:1px solid #6d797c;border-radius:8px;background:#303a3d;color:#fff;cursor:pointer}

/* Setup awal tetap memakai kartu glass sederhana */
.login-glass-card{width:min(455px,100%);background:linear-gradient(135deg,rgba(42,53,56,.95),rgba(25,33,35,.98));color:#fff;border:1px solid #ffffff55;border-radius:22px;box-shadow:0 22px 74px #0008;padding:35px 32px 28px}.login-brand{display:flex;align-items:center;justify-content:center;gap:12px;font-size:25px;font-weight:800;margin:0 0 25px}.login-brand-mark{height:43px;width:43px;display:inline-flex;align-items:center;justify-content:center;border:2px solid #ffffffc9;border-radius:50%;overflow:hidden;background:#fff}.login-brand-mark .logo-perusahaan-img{width:100%;height:100%;object-fit:contain}.login-glass-card h1{font-size:28px;margin:5px 0 9px;text-align:center}.login-subtitle{font-size:13px;color:#dfe8e8;line-height:1.5;text-align:center;margin:0 0 23px}.login-glass-form{display:flex;flex-direction:column;gap:12px}.login-input-wrap{display:flex;align-items:center;gap:10px;height:49px;border:1px solid #738083;border-radius:10px;background:#1b2527;padding:0 12px}.login-input-wrap>svg{width:19px;height:19px;stroke:#fff;stroke-width:1.65}.login-input-wrap input{width:100%;background:transparent;border:0;outline:0;color:#fff;font-size:13px}.login-input-wrap input::placeholder{color:#bdc7c8}.login-a11y{position:absolute;clip:rect(0 0 0 0);width:1px;height:1px;overflow:hidden}.login-visibility{display:grid;place-items:center;background:transparent;border:0;color:#fff}.login-visibility svg{width:20px;height:20px;stroke:currentColor;fill:none}.login-primary{display:flex;justify-content:center;align-items:center;min-height:46px;border:0;border-radius:9px;background:linear-gradient(100deg,#10dfc9,#00e8ee);color:#153437;font-weight:900;font-size:14px;text-decoration:none;cursor:pointer;box-shadow:0 0 16px #00eadd55}.login-foot{display:flex;gap:13px;align-items:center;justify-content:center;margin-top:22px;color:#cbd4d5;font-size:11px}.login-foot span{height:1px;width:52px;background:#738083}.login-note{text-align:center;font-size:11px;color:#cbd4d5;margin-top:6px}

@media(max-width:560px){.masuk-layout .konten{padding:66px 14px 24px}.pin-login-card{width:min(355px,calc(100vw - 24px));padding:58px 20px 21px;border-radius:27px}.pin-login-card::before{border-radius:30px}.pin-login-card::after{border-radius:25px}.pin-logo-wrap{width:86px;height:86px;top:-43px}.pin-logo{width:74px;height:74px}.pin-login-content h1{font-size:24px}.pin-key{height:46px}.pin-dots{gap:15px}.pin-dot{width:13px;height:13px}.login-glass-card{padding:28px 21px}}
@media(prefers-reduced-motion:reduce){.pin-login-card::before{animation:none}.pin-key{transition:none}}
