/* =====================================================================
 |  login.css - Login / Forgot password
 |  Mpangilio wa mtindo wa mobile-banking: nembo juu kushoto, lugha juu kulia,
 |  maelezo + kadi ya kuingia katikati, mstari wa chini. Skrini moja (bila kuscroll).
 ===================================================================== */
body.login-page{
  --fh:clamp(46px,6.9vh,60px);          /* urefu wa kisanduku/kitufe (hufuata urefu wa skrini) */
  --gap:clamp(12px,2.3vh,22px);
  --lp-ink:#111216; --lp-sub:#3b3d44; --lp-mut:#5d6068;
  --lp-card:rgba(247,243,241,.93); --lp-card-line:rgba(255,255,255,.75);
  --lp-field:#fbf9f8; --lp-field-line:#cdc7c4; --lp-field-ink:#111216;
  --lp-btn:var(--accent-strong); --lp-btn-h:var(--accent);
  --lp-link:var(--accent-strong); --lp-line:rgba(0,0,0,.10);
  min-height:100vh; min-height:100dvh; margin:0; display:flex; flex-direction:column;
  font-family:'Inter',-apple-system,'Segoe UI',Arial,sans-serif; color:var(--lp-ink);
  background:linear-gradient(180deg,#d9dade 0%,#e6dedc 46%,#f1e2db 100%) !important; position:relative; overflow-x:hidden;
}
body.login-page::before,body.login-page::after{ display:none !important; }
.lp-bg{ position:fixed; inset:0; z-index:0; pointer-events:none; }
.lp-bg svg{ position:absolute; left:0; bottom:0; width:100%; height:62%; }
.lp-wrap{ position:relative; z-index:2; width:100%; max-width:1480px; margin:0 auto; padding-left:40px; padding-right:40px; }

/* ---- kichwa: nembo kushoto, lugha kulia ---- */
.lp-head{ display:flex; align-items:center; justify-content:space-between; padding-top:clamp(14px,4.4vh,40px); }
.lp-top{ display:flex; align-items:center; gap:14px; min-width:0; }
.lp-top img{ max-height:clamp(44px,8vh,76px); max-width:150px; object-fit:contain; }
.lp-top .lp-brand{ font-family:'Poppins',sans-serif; font-weight:700; font-size:clamp(17px,2.4vh,21px); letter-spacing:.2px; line-height:1.2; color:var(--lp-ink); }
.lp-top .lp-brand small{ display:block; font-family:'Inter',sans-serif; font-weight:500; font-size:12.5px; color:var(--lp-mut); letter-spacing:.2px; margin-top:2px; }
.lp-lang{ display:flex; align-items:center; gap:9px; font-size:15.5px; color:#2b2d33; white-space:nowrap; cursor:default; }
.lp-lang svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; opacity:.8; }
.lp-lang .chev{ width:16px; height:16px; }

/* ---- sehemu kuu ---- */
.lp-stage{ flex:1; display:flex; align-items:center; justify-content:space-between; gap:clamp(30px,5vw,80px); padding-top:clamp(8px,2vh,24px); padding-bottom:clamp(8px,2vh,24px); }
.lp-stage.center{ justify-content:center; }
.lp-left{ flex:0 1 600px; min-width:0; }
.lp-left h1{ font-family:'Poppins',sans-serif; font-weight:600; font-size:clamp(30px,5.6vh,50px); line-height:1.14; margin:0 0 clamp(8px,1.6vh,14px); color:var(--lp-ink); letter-spacing:-.4px; }
.lp-left p.lead{ font-size:clamp(14px,1.9vh,16.5px); color:var(--lp-sub); margin:0 0 clamp(14px,2.6vh,24px); line-height:1.5; max-width:520px; }
.lp-feats{ display:flex; align-items:center; margin-bottom:clamp(14px,3vh,28px); }
.lp-feat{ display:flex; align-items:center; gap:12px; font-weight:600; font-size:15px; color:#1c1e24; padding:0 24px; border-left:1px solid #cdc4c0; }
.lp-feat:first-child{ padding-left:0; border-left:0; }
.lp-feat svg{ width:34px; height:34px; fill:none; stroke:var(--accent-strong); stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; flex:0 0 auto; }

.lp-slides{ display:grid; grid-template-columns:200px 1fr; gap:14px; padding:12px; border-radius:28px; background:rgba(255,255,255,.55); border:1px solid rgba(255,255,255,.8); box-shadow:0 18px 40px -30px rgba(80,60,50,.4); height:clamp(170px,27vh,236px); }
.ls-text{ position:relative; padding:6px 2px 0 6px; display:flex; flex-direction:column; }
.ls-item{ display:none; } .ls-item.on{ display:block; animation:lsIn .35s ease; }
.ls-item b{ display:block; font-size:15px; line-height:1.25; color:var(--lp-ink); margin-bottom:8px; }
.ls-item p{ margin:0; font-size:13.5px; line-height:1.45; color:var(--lp-mut); }
.ls-dots{ position:absolute; left:6px; bottom:4px; display:flex; gap:7px; }
.ls-dots i{ width:8px; height:8px; border-radius:8px; background:#cfc8c5; cursor:pointer; transition:width .2s,background .2s; }
.ls-dots i.on{ width:24px; background:var(--accent-strong); }
.ls-img{ border-radius:20px; overflow:hidden; background:radial-gradient(circle at 30% 20%,var(--accent) 0%,var(--accent-strong) 45%,#14163a 100%); display:flex; align-items:center; justify-content:center; }
.ls-img svg{ width:100%; height:100%; display:block; }
@keyframes lsIn{ from{ opacity:0; transform:translateY(4px);} to{ opacity:1; transform:none;} }

/* ---- kadi ya kuingia ---- */
.lp-right{ flex:0 0 min(585px,100%); display:flex; flex-direction:column; align-items:stretch; }
.lp-stage.center .lp-right{ flex-basis:min(585px,100%); }
.lp-card{ background:var(--lp-card); border:1px solid var(--lp-card-line); border-radius:30px; padding:clamp(22px,5vh,46px) clamp(26px,3.2vw,52px) clamp(20px,4vh,34px); box-shadow:0 24px 50px -34px rgba(70,50,45,.45); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px); }
.lp-card h2{ margin:0; text-align:center; font-family:'Poppins',sans-serif; font-weight:700; font-size:clamp(25px,4.2vh,34px); color:var(--lp-ink); }
.lp-greet{ text-align:center; color:var(--lp-sub); margin:clamp(2px,.8vh,6px) 0 clamp(14px,3.2vh,28px); font-size:clamp(14px,2vh,17px); }
.lp-group{ margin-bottom:var(--gap); }
.lp-lab{ display:block; font-size:14.5px; color:var(--lp-mut); font-weight:400; margin:0 0 clamp(5px,1vh,8px) 2px; }
.lp-field,.pwd-wrap{ position:relative; display:block; }
.lp-in{ display:block; width:100%; height:var(--fh); border:1px solid var(--lp-field-line); background:var(--lp-field); color:var(--lp-field-ink); border-radius:16px; font-size:16px; padding:0 58px 0 20px; box-shadow:none; outline:none; transition:border-color .15s, box-shadow .15s; }
.lp-in:focus{ border-color:var(--accent-strong); box-shadow:0 0 0 3px rgba(79,70,229,.10); }
.lp-in::placeholder{ color:#a6a09d; }
.lp-in:-webkit-autofill{ -webkit-box-shadow:0 0 0 100px var(--lp-field) inset; -webkit-text-fill-color:var(--lp-field-ink); }
.lp-ico,.pwd-eye{ position:absolute; top:0; right:0; width:58px; height:var(--fh); display:flex; align-items:center; justify-content:center; color:#2c2e34; }
.lp-ico svg{ width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.pwd-eye{ cursor:pointer; font-size:19px; z-index:5; }
.pwd-eye:hover{ color:var(--accent-strong); }
.pwd-wrap > .lp-in{ padding-right:58px; }

/* kitufe laini (tambarare, bila mng'ao) */
.btn-login{ display:block; width:100%; height:var(--fh); margin-top:clamp(6px,1.4vh,12px); border:0; border-radius:14px; background:var(--lp-btn); color:#fff; font-size:17px; font-weight:500; letter-spacing:.2px; box-shadow:none; filter:none; transition:background .15s; cursor:pointer; }
.btn-login:hover,.btn-login:focus{ background:var(--lp-btn-h); color:#fff; outline:none; }
.btn-login:active{ transform:translateY(1px); }

.lp-links{ display:flex; align-items:center; justify-content:center; margin-top:clamp(12px,2.4vh,20px); }
.lp-links > a,.lp-links > label{ flex:1; text-align:center; color:var(--lp-link); font-size:15.5px; font-weight:400; margin:0; cursor:pointer; text-decoration:none; }
.lp-links > a:hover{ text-decoration:underline; }
.lp-links .sep{ width:1px; height:24px; background:#cfc8c5; flex:0 0 1px; }
.lp-links.one > a{ flex:1; }
.lp-rem{ display:flex; align-items:center; justify-content:center; gap:9px; }
.lp-rem input{ appearance:none; -webkit-appearance:none; width:18px; height:18px; margin:0; border:1.5px solid #9d9894; border-radius:5px; background:#fff; cursor:pointer; position:relative; flex:0 0 auto; }
.lp-rem input:checked{ background:var(--accent-strong); border-color:var(--accent-strong); }
.lp-rem input:checked::after{ content:""; position:absolute; left:5px; top:1.5px; width:5px; height:10px; border:solid #fff; border-width:0 2px 2px 0; transform:rotate(45deg); }

.lp-alert{ border-radius:14px; font-size:14px; padding:11px 14px; margin:0 0 var(--gap); }
.lp-alert.err{ background:#fdecec; color:#9b1c1c; border:1px solid #f6c9c9; } .lp-alert.ok{ background:#e9f8ee; color:#176a35; border:1px solid #bfe7cc; }

.lp-support{ display:flex; align-items:center; justify-content:center; gap:10px; margin-top:clamp(12px,2.6vh,24px); color:var(--lp-sub); font-size:14.5px; text-align:center; }
.lp-support svg{ width:22px; height:22px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }

/* ---- mstari wa chini ---- */
.lp-foot{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:6px 20px; padding-top:clamp(10px,2vh,18px); padding-bottom:clamp(12px,2.4vh,22px); border-top:1px solid var(--lp-line); font-size:14px; color:#3e4047; margin-top:auto; max-width:1400px; padding-left:0; padding-right:0; width:calc(100% - 80px); }

/* ---- skrini ndogo kwa urefu ---- */
@media (max-height:700px){ .lp-slides{ display:none; } .lp-feats{ margin-bottom:0; } .lp-support{ display:none; } }
@media (max-height:600px){ .lp-left p.lead,.lp-feats{ display:none; } .lp-top .lp-brand small{ display:none; } }

/* ---- tablet / simu: kadi peke yake ---- */
@media (max-width:1000px){
  .lp-wrap{ padding-left:22px; padding-right:22px; } .lp-foot{ width:calc(100% - 44px); }
  .lp-left{ display:none; }
  .lp-stage{ justify-content:center; } .lp-right{ flex:0 1 585px; }
}

/* ---- Simu: usiku wa bluu + kadi ya kioo + kitufe cha machungwa (kama mobile banking) ---- */
@media (max-width:700px){
  body.login-page{
    --fh:clamp(48px,6.6vh,56px);
    --lp-ink:#fff; --lp-sub:rgba(236,239,255,.78); --lp-mut:rgba(236,239,255,.72);
    --lp-card:rgba(255,255,255,.07); --lp-card-line:rgba(255,255,255,.12);
    --lp-field:rgba(255,255,255,.04); --lp-field-line:rgba(255,255,255,.30); --lp-field-ink:#fff;
    --lp-btn:#e8710a; --lp-btn-h:#d96704; --lp-link:#ff9a3d; --lp-line:rgba(255,255,255,.12);
    background:linear-gradient(180deg,#0f1438 0%,#0a0d2a 55%,#05061a 100%) !important;
  }
  .lp-bg svg{ opacity:.16; filter:grayscale(1) brightness(.45); height:48%; }
  .lp-wrap{ padding-left:20px; padding-right:20px; } .lp-foot{ width:calc(100% - 40px); }
  /* Jina + maelezo viko katikati, juu kidogo ya kadi; lugha juu kulia */
  /* Kadi iko katikati kamili ya skrini: safu 3 (juu | kadi | chini), juu na chini ni sawa */
  body.login-page{ display:grid; grid-template-rows:minmax(0,1fr) auto minmax(0,1fr); }
  .lp-foot{ align-self:end; margin-top:0; }
  .lp-head{ display:flex; flex-direction:column; align-items:center; justify-content:flex-end; padding-top:calc(46px + env(safe-area-inset-top)); padding-bottom:clamp(10px,2vh,20px); }
  .lp-lang{ position:absolute; top:calc(clamp(14px,2.6vh,24px) + env(safe-area-inset-top)); right:20px; color:#fff; font-size:14.5px; z-index:3; }
  .lp-top{ flex-direction:column; text-align:center; gap:8px; justify-content:center; }
  .lp-top img{ max-height:clamp(34px,5.6vh,52px); }
  .lp-top{ gap:6px; }
  .lp-top .lp-brand{ font-size:21px; text-align:center; } .lp-top .lp-brand small{ margin-top:3px; }
  .lp-stage{ align-items:center; padding-top:0; padding-bottom:0; }
  .lp-right{ flex:1 1 100%; }
  .lp-card{ border-radius:28px; padding:clamp(20px,3.6vh,32px) 22px clamp(18px,3vh,26px); background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.05)); box-shadow:0 30px 60px -28px rgba(0,0,0,.7); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px); }
  .lp-lab{ font-size:14px; } .lp-in{ font-size:16px; border-radius:16px; padding:0 54px 0 18px; }
  .lp-ico,.pwd-eye{ color:rgba(255,255,255,.85); } .lp-in::placeholder{ color:rgba(255,255,255,.35); }
  .lp-in:focus{ border-color:#ff9a3d; box-shadow:none; background:rgba(255,255,255,.07); }
  .lp-in:-webkit-autofill{ -webkit-box-shadow:0 0 0 100px #1c2150 inset; }
  .btn-login{ border-radius:14px; }
  .lp-links > a,.lp-links > label{ font-size:14.5px; } .lp-links .sep{ background:rgba(255,255,255,.22); }
  .lp-rem input{ background:transparent; border-color:rgba(255,255,255,.55); }
  .lp-alert.err{ background:rgba(239,68,68,.16); border-color:rgba(239,68,68,.35); color:#fecaca; } .lp-alert.ok{ background:rgba(34,197,94,.14); border-color:rgba(34,197,94,.3); color:#bbf7d0; }
  .lp-support{ color:rgba(236,239,255,.75); font-size:13.5px; flex-direction:column; gap:6px; }
  .lp-foot{ justify-content:center; text-align:center; color:rgba(236,239,255,.6); font-size:12.5px; border-top-color:rgba(255,255,255,.10); padding-bottom:calc(clamp(12px,2.4vh,20px) + env(safe-area-inset-bottom)); }
}

@media (max-width:700px) and (max-height:740px){ .lp-top img{ max-height:34px; } .lp-top .lp-brand{ font-size:18px; } .lp-top .lp-brand small{ display:none; } .lp-head{ padding-top:calc(40px + env(safe-area-inset-top)); } }
