/* ============================================================
   ASALAKUR PROJECT — brand bengkel
   Login: foto bengkel gelap + kartu putih (sesuai mockup)
   Dimuat terakhir, menimpa tema GajiPro.
   ============================================================ */
:root{
  --al-orange:#f5a21a;
  --al-orange-d:#e08a00;
  --al-ember:#ffb01f;
  --al-blue:#2563eb;
  --al-navy:#07192c;
  --al-ink:#0f172a;
  --brand:#f5a21a;
  --brand-d:#e08a00;
  --brand-l:#fff7e8;
}

/* ================= LOGIN ================= */
#loginScreen{
  position:relative;
  display:block;
  padding:0;
  min-height:100dvh;
  background:linear-gradient(180deg,#0a1c31 0%,#081a2d 42%,#061525 100%);
  overflow:hidden;
}
.login-bg{
  position:absolute;left:0;right:0;top:0;z-index:0;
  height:min(690px,80vh);
  background:url('/assets/asalakur-hero.jpg') 64% 0%/cover no-repeat;
  -webkit-mask-image:linear-gradient(180deg,#000 0%,#000 76%,transparent 100%);
  mask-image:linear-gradient(180deg,#000 0%,#000 76%,transparent 100%);
}
.login-bg::after{
  content:'';position:absolute;inset:0;
  background:
    linear-gradient(98deg,rgba(6,20,36,.96) 0%,rgba(6,20,36,.91) 21%,rgba(6,20,36,.58) 42%,rgba(6,20,36,.16) 64%,rgba(6,20,36,.20) 100%),
    linear-gradient(180deg,rgba(6,20,36,.46) 0%,rgba(6,20,36,.06) 24%,rgba(7,22,39,.30) 60%,rgba(7,22,39,.86) 90%,rgba(7,25,44,.98) 100%);
}
.lg-wrap{
  position:relative;z-index:2;
  display:flex;flex-direction:column;
  width:100%;max-width:430px;min-height:100dvh;
  margin:0 auto;padding:20px 18px 0;
}
.lg-head{flex:none;}

/* ---- logo ---- */
.lg-brand{display:flex;align-items:center;gap:9px;}
.lg-mark{width:48px;height:43px;flex:none;filter:drop-shadow(0 6px 14px rgba(0,0,0,.5));}
.lg-word{display:flex;flex-direction:column;line-height:1;}
.lg-word b{
  font-size:clamp(23px,6.5vw,26px);font-weight:800;letter-spacing:.4px;
  color:#fff;line-height:1;
}
.lg-word span{
  margin-top:4px;font-size:clamp(17px,4.9vw,20px);font-weight:800;
  letter-spacing:2.2px;color:var(--al-orange);line-height:1;
}
.lg-tag{
  margin:12px 0 0;font-size:11.5px;line-height:1.4;font-weight:500;
  color:rgba(255,255,255,.72);letter-spacing:.1px;
}

/* ---- hero copy ---- */
.lg-title{
  margin:24px 0 0;font-size:33px;line-height:1.1;font-weight:800;
  letter-spacing:-.8px;color:#fff;
}
.lg-title em{font-style:normal;color:var(--al-orange);margin-left:7px;}
.lg-sub{
  margin:8px 0 0;font-size:12.8px;line-height:1.55;font-weight:400;
  color:rgba(255,255,255,.78);max-width:300px;
}
.lg-rule{
  display:block;width:44px;height:4px;border-radius:3px;
  background:var(--al-orange);margin-top:12px;
}

/* ---- feature chips ---- */
.lg-feats{
  list-style:none;margin:16px 0 0;padding:0;
  display:flex;align-items:center;gap:0;
}
.lg-feats li{
  display:flex;align-items:center;gap:8px;flex:1;min-width:0;
  position:relative;padding:0 8px;
}
.lg-feats li:first-child{padding-left:0;}
.lg-feats li:last-child{padding-right:0;}
.lg-feats li+li::before{
  content:'';position:absolute;left:0;top:50%;transform:translateY(-50%);
  width:1px;height:30px;background:rgba(255,255,255,.15);
}
.lg-feat-ic{
  width:34px;height:34px;border-radius:10px;flex:none;
  display:grid;place-items:center;color:#fab219;
  background:#12293f;
  border:1px solid rgba(255,255,255,.07);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.lg-feat-ic svg{width:19px;height:19px;}
.lg-feats li>span:last-child{
  font-size:10px;line-height:1.3;font-weight:600;
  color:rgba(255,255,255,.86);letter-spacing:.1px;white-space:nowrap;
}

/* ---- kartu login ---- */
.lg-card{
  position:relative;z-index:3;
  margin-top:18px;
  background:#fff;
  border-radius:24px;
  padding:20px 18px 18px;
  color:var(--al-ink);
  box-shadow:0 26px 60px rgba(0,0,0,.42),0 2px 0 rgba(255,255,255,.35) inset;
}
.lg-card-head{display:flex;align-items:center;gap:13px;margin-bottom:17px;}
.lg-ava{
  width:52px;height:52px;border-radius:50%;flex:none;
  display:grid;place-items:center;
  background:#fdf0da;color:#f2941c;
}
.lg-ava svg{width:28px;height:28px;}
.lg-ava.blue{background:#e9f0fe;color:var(--al-blue);}
.lg-ava.blue svg{width:26px;height:26px;}
.lg-card-title{min-width:0;}
.lg-card-title h2{
  margin:0;font-size:21px;line-height:1.15;font-weight:800;
  letter-spacing:-.5px;color:var(--al-ink);
}
.lg-card-title p{
  margin:4px 0 0;font-size:11.6px;line-height:1.45;font-weight:400;color:#6b7280;
}
.lg-label{
  display:block;font-size:12.5px;font-weight:800;color:#111827;
  margin:0 0 7px;letter-spacing:-.1px;
}
#loginScreen .input-wrap{position:relative;display:flex;align-items:center;margin:0 0 13px;}
#loginScreen .input-wrap>svg{
  position:absolute;left:14px;top:50%;transform:translateY(-50%);
  width:18px;height:18px;color:#98a2b3;pointer-events:none;
}
#loginScreen .input-wrap input{
  width:100%;height:50px;border-radius:12px;
  border:1.5px solid #e3e8ef;background:#fff;
  padding:0 44px 0 41px;font-size:13.5px;color:#111827;
  box-shadow:0 1px 2px rgba(16,24,40,.03);
}
#loginScreen .input-wrap input::placeholder{color:#9aa3af;font-weight:400;}
#loginScreen .input-wrap input:focus{
  outline:none;border-color:#f6b23a;background:#fff;
  box-shadow:0 0 0 4px rgba(245,162,26,.12);
}
#loginScreen .eye-btn{
  position:absolute;right:9px;top:50%;transform:translateY(-50%);
  padding:7px;color:#98a2b3;display:grid;place-items:center;
}
#loginScreen .eye-btn svg{width:18px;height:18px;}

#loginScreen .login-row{
  display:flex;align-items:center;justify-content:space-between;
  margin:2px 0 17px;font-size:12.5px;
}
#loginScreen .check{
  display:flex;align-items:center;gap:8px;color:#1f2937;
  font-weight:600;cursor:pointer;font-size:12.5px;
}
#loginScreen .check input{
  appearance:none;-webkit-appearance:none;
  width:19px;height:19px;border-radius:5px;border:1.7px solid #c6d0dc;
  background:#fff;display:grid;place-items:center;margin:0;flex:none;cursor:pointer;
  transition:.15s;
}
#loginScreen .check input:checked{background:var(--al-blue);border-color:var(--al-blue);}
#loginScreen .check input:checked::after{
  content:'';width:9px;height:5px;
  border-left:2px solid #fff;border-bottom:2px solid #fff;
  transform:rotate(-45deg) translateY(-1px);
}
#loginScreen .link-btn{
  color:var(--al-blue);font-size:12.2px;font-weight:700;padding:2px;
}

#loginScreen .btn-login{
  position:relative;width:100%;height:53px;border-radius:13px;
  display:flex;align-items:center;justify-content:center;gap:11px;
  background:linear-gradient(96deg,#fdb022 0%,#f7a91b 48%,#f39c12 100%);
  color:#14202e;font-size:15px;font-weight:800;letter-spacing:-.1px;
  box-shadow:0 10px 22px rgba(243,156,18,.34);
}
#loginScreen .btn-login:hover{background:linear-gradient(96deg,#ffbb33,#f0a013);}
#loginScreen .btn-login:active{transform:translateY(1px);}
#loginScreen .btn-login:disabled{opacity:.7;color:#3a2a06;}
#loginScreen .btn-login svg{position:static;right:auto;width:19px;height:19px;flex:none;}

#loginScreen .divider{
  display:flex;align-items:center;gap:10px;margin:15px 0;
  font-size:11px;color:#9ca3af;font-weight:500;
}
#loginScreen .divider::before,#loginScreen .divider::after{
  content:'';flex:1;height:1px;background:#e5e7eb;
}

/* kartu admin / pekerja */
#loginScreen .switch-panel{
  width:100%;display:flex;align-items:center;gap:12px;
  padding:12px;border-radius:14px;
  background:#fff;border:1.5px solid #e8edf3;
  text-align:left;transition:.16s;font-family:inherit;
}
#loginScreen .switch-panel:hover{border-color:#d7e3f5;background:#fbfcff;}
#loginScreen .switch-panel:active{transform:translateY(1px);}
.lg-admin-ic{
  width:44px;height:44px;border-radius:50%;flex:none;
  display:grid;place-items:center;
  background:#e9f0fe;color:var(--al-blue);
}
.lg-admin-ic svg{width:23px;height:23px;}
.lg-admin-ic.amber{background:#fdf0da;color:#f2941c;}
.lg-admin-ic.amber svg{width:25px;height:25px;}
.lg-admin-txt{display:flex;flex-direction:column;min-width:0;flex:1;}
.lg-admin-txt b{font-size:13.6px;font-weight:800;color:#111827;letter-spacing:-.2px;line-height:1.25;}
.lg-admin-txt i{
  font-style:normal;font-size:10.9px;line-height:1.4;color:#6b7280;
  margin-top:2px;
}
.lg-chev{width:17px;height:17px;flex:none;color:#111827;}

.login-panel{display:none}
.login-panel.active{display:block;animation:alPanel .22s ease both}
@keyframes alPanel{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* ---- footer ---- */
.lg-foot{margin-top:18px;padding-bottom:calc(18px + env(safe-area-inset-bottom));}
.lg-foot-feats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;}
.lg-foot-feats>div{display:flex;align-items:center;gap:8px;min-width:0;}
.lg-fic{
  width:29px;height:29px;border-radius:8px;flex:none;
  display:grid;place-items:center;color:rgba(255,255,255,.72);
  border:1px solid rgba(255,255,255,.22);
  background:rgba(255,255,255,.03);
}
.lg-fic svg{width:14px;height:14px;}
.lg-foot-feats>div>span:last-child{
  font-size:9.4px;line-height:1.3;font-weight:500;color:rgba(255,255,255,.72);
}
.lg-foot-note{
  margin-top:16px;padding-top:14px;
  border-top:1px solid rgba(255,255,255,.14);
  text-align:center;font-size:10.4px;color:rgba(255,255,255,.55);
}
.lg-foot-note b{color:#fff;font-weight:800;letter-spacing:.3px;}

@media (max-width:359px){
  .lg-title{font-size:29px;}
  .lg-sub{font-size:12px;}
  .lg-feats li>span:last-child{font-size:9px;}
  .lg-card{padding:18px 15px 16px;}
  .lg-foot-feats>div>span:last-child{font-size:8.8px;}
}

/* ---------------- HEADER APP ---------------- */
.head-brand{gap:8px;}
.head-mark{width:30px;height:30px;border-radius:8px;box-shadow:0 0 0 1px rgba(255,140,60,.35),0 3px 8px rgba(120,40,0,.3);}
.head-word{
  display:flex;flex-direction:column;align-items:flex-start;
  font-size:15px;font-weight:800;letter-spacing:1.3px;color:#1b2229;line-height:1;
}
.head-word i{
  font-style:normal;margin-top:3px;
  font-size:7.5px;font-weight:800;letter-spacing:3.6px;color:var(--al-orange-d);
}

/* ---------------- Aksen bara ---------------- */
.sal-card{
  background:linear-gradient(135deg,#ff9838 0%,#f76b0d 48%,#dd4a00 100%);
  box-shadow:0 14px 28px rgba(214,72,0,.24);
}
.sal-card::after{background:rgba(255,255,255,.10);}
.st-bar{background:#fff0e2;}
.st-bar i{background:linear-gradient(90deg,#ffb15c,#f2620a);}
.sched-btn{background:#fff0e4;color:#c9500a;}
.nav-item.active{color:var(--al-orange-d);}
.bottomnav{border-top-color:#f1ece7;}
.tile{border-color:#f2efec;}
.quick{border-color:#f2efec;}
.greet{border-color:#f2efec;}
.sched{border-color:#f2efec;}
.sec-h{color:#1b2229;}

/* frame desktop */
@media (min-width:520px){
  body:has(#loginScreen:not(.hidden)){background:#04101d;padding:24px 0;}
  body:has(#loginScreen:not(.hidden))::before{background:#04101d;}
  #appRoot:has(#loginScreen:not(.hidden)){
    max-width:430px;background:var(--al-navy);border-radius:28px;
    box-shadow:0 30px 70px rgba(0,0,0,.55);overflow:hidden;
  }
  .lg-wrap{min-height:calc(100vh - 48px);}
  #loginScreen{min-height:calc(100vh - 48px);}
  .lg-card{border-radius:26px;}
}
