/* DIPAYUDA - Sign In / Register / Forgot & Reset Password screens */
:root{
  color-scheme:light;
  --ink:#10292f; --muted:#5f736d; --line:#e1e9e5; --field:#fbfdfc; --brand:#0a6a4c; --brand-d:#064d38;
  --wash:#f2f7f4; --ring:rgba(10,106,76,.18); --danger:#b83a2c; --warn:#c98a12; --f:'Inter',system-ui,sans-serif;
  box-sizing:border-box; padding-top:env(safe-area-inset-top,0px); padding-bottom:env(safe-area-inset-bottom,0px);
}
*,*::before,*::after{box-sizing:inherit}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
body{margin:0;min-height:100vh;font-family:var(--f);font-size:15px;line-height:1.55;color:var(--ink);background:#fff;-webkit-font-smoothing:antialiased}
.shell{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);min-height:100vh}
.left{position:relative;overflow:hidden;display:flex;flex-direction:column;--pad:clamp(32px,6vw,104px);padding:36px var(--pad);background:linear-gradient(165deg,#f7fbf9 0%,#eaf3ee 100%)}
.left-in{position:sticky;top:0;display:flex;flex-direction:column;min-height:calc(100vh - 72px);flex:1}
.radar{position:absolute;right:-300px;bottom:-300px;width:820px;height:820px;pointer-events:none}
.radar .pin{filter:drop-shadow(0 5px 6px rgba(6,77,56,.22))}.radar text{font-family:var(--f)}
.brand{position:relative;display:flex;align-items:center;gap:10px;font-weight:700;font-size:17px;letter-spacing:.06em;color:var(--brand-d);text-decoration:none}
.hero{position:relative;flex:1;display:flex;flex-direction:column;justify-content:center;max-width:540px;padding:48px 0}
h1{margin:0 0 20px;font-weight:600;font-size:clamp(40px,4.5vw,64px);line-height:1.03;letter-spacing:-.047em}
.lead{margin:0 0 44px;max-width:40ch;color:var(--muted);font-size:17px;line-height:1.6}
.feats{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.feats li{display:grid;grid-template-columns:22px 1fr;gap:16px;padding:18px 0;border-bottom:1px solid var(--line)}
.feats svg{width:20px;height:20px;margin-top:2px;stroke:var(--brand);fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.feats b{display:block;font-weight:600;font-size:15px;letter-spacing:-.01em}
.feats span{display:block;color:var(--muted);font-size:14px}
.copy{position:relative;color:var(--muted);font-size:13px}

.right{display:flex;flex-direction:column;padding:32px clamp(24px,6vw,104px);background:#fff;border-left:1px solid var(--line)}
.top{display:flex;justify-content:flex-end}
.top a{color:var(--muted);text-decoration:none;font-weight:500;font-size:14px;padding:8px 2px;border-bottom:1px solid transparent}
.top a:hover{color:var(--brand);border-color:var(--brand)}
.center{flex:1;display:flex;align-items:center;padding:24px 0}
.form{width:100%;max-width:400px;margin:0 auto}
h2{margin:0 0 8px;font-weight:600;font-size:34px;letter-spacing:-.04em;line-height:1.1}
.sub{margin:0 0 32px;color:var(--muted)}
.field{margin-bottom:18px}
label{display:block;font-weight:500;font-size:13.5px;margin-bottom:8px}
.in{position:relative;display:flex}
input[type=email],input[type=password],input[type=text],input[type=tel]{width:100%;height:52px;border:1px solid #d3dfd9;background:var(--field);color:var(--ink);border-radius:10px;padding:0 16px;font:inherit;transition:border-color .15s,box-shadow .15s}
input.pw{padding-right:48px}
input::placeholder{color:#93a79f}
input:hover{border-color:#b4c9bf}
input:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 4px var(--ring)}
.bad input[type]{border-color:var(--danger)}
.err{display:none;color:var(--danger);font-size:13px;margin-top:7px}
.bad .err{display:block}
.hint{color:var(--muted);font-size:12.5px;margin-top:7px}
.pre{flex:none;display:grid;place-items:center;padding:0 14px;border:1px solid #d3dfd9;border-right:0;border-radius:10px 0 0 10px;background:var(--wash);color:var(--muted);font-weight:500;font-size:14.5px}
.pre+input{border-radius:0 10px 10px 0}
.eye{position:absolute;right:6px;top:6px;width:40px;height:40px;border:0;background:none;border-radius:8px;color:var(--muted);cursor:pointer;display:grid;place-items:center}
.eye:hover{color:var(--brand);background:var(--wash)}
.eye svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
button:focus-visible,a:focus-visible,.check input:focus-visible{outline:3px solid var(--ring);outline-offset:2px}
.meter{display:flex;gap:6px;margin-top:10px}
.meter i{flex:1;height:4px;border-radius:4px;background:var(--line);transition:background .2s}
.meter-t{font-size:12.5px;color:var(--muted);margin-top:6px;min-height:19px}
.s1 i:nth-child(-n+1){background:var(--danger)}
.s2 i:nth-child(-n+2){background:var(--warn)}
.s3 i:nth-child(-n+3){background:#4aa57f}
.s4 i{background:var(--brand)}
.live{display:none;align-items:center;gap:6px;font-size:12.5px;font-weight:500;margin-top:7px}
.live.show{display:flex}
.live svg{width:15px;height:15px;flex:none;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.live.yes{color:var(--brand)}.live.no{color:var(--danger)}
.field.m-yes input[type]{border-color:var(--brand)}
.field.m-no input[type]{border-color:var(--danger)}
.row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:4px 0 28px}
.check{display:flex;align-items:flex-start;gap:10px;font-size:14px;color:var(--muted);font-weight:500;margin:0;cursor:pointer;line-height:1.5}
.check input{width:17px;height:17px;margin:2px 0 0;flex:none;accent-color:var(--brand)}
.check a{color:var(--brand);font-weight:600;text-decoration:none}
.check a:hover{text-decoration:underline}
.lnk{color:var(--brand);font-weight:600;text-decoration:none;font-size:14px;background:none;border:0;padding:0;font-family:inherit;cursor:pointer}
.lnk:hover{text-decoration:underline;text-underline-offset:3px}
.btn{width:100%;height:54px;border:0;border-radius:10px;background:linear-gradient(180deg,#0c7554 0%,var(--brand-d) 100%);color:#fff;font:inherit;font-weight:600;font-size:15.5px;cursor:pointer;
  box-shadow:0 1px 0 rgba(255,255,255,.22) inset,0 12px 24px -12px rgba(6,77,56,.7);transition:filter .15s,transform .1s}
.btn:hover{filter:brightness(1.08)}
.btn:active{transform:translateY(1px)}
.btn[disabled]{opacity:.75;cursor:progress}
.btn.ghost{background:#fff;color:var(--brand-d);border:1px solid #cfdcd5;box-shadow:none}
.btn.ghost:hover{background:var(--wash);filter:none}
.btn.ghost[disabled]{cursor:not-allowed;color:var(--muted)}
.alt{margin:28px 0 0;padding-top:22px;border-top:1px solid var(--line);color:var(--muted);font-size:14px}
.back{display:inline-flex;align-items:center;gap:6px;margin-bottom:28px}
.back svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ok{text-align:left}
.ok .tick{width:56px;height:56px;border-radius:16px;background:var(--wash);border:1px solid var(--line);display:grid;place-items:center;margin-bottom:22px}
.ok .tick svg{width:26px;height:26px;stroke:var(--brand);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ok p{color:var(--muted);margin:0 0 28px}
.ok p b{color:var(--ink);font-weight:600;word-break:break-all}
.ok .btn+.btn{margin-top:12px}
/* ===== Compact for small laptops (e.g. 1366x768, 1280x720) ===== */
@media (min-width:961px) and (max-width:1440px),(min-width:961px) and (max-height:820px){
  body{font-size:14px;line-height:1.5}
  .left{--pad:clamp(28px,4.5vw,72px);padding:24px var(--pad)}
  .left-in{min-height:calc(100vh - 48px)}
  .radar{width:620px;height:620px;right:-230px;bottom:-230px}
  .brand{font-size:15px}
  .brand .brand-symbol{width:26px;height:26px}
  .brand .brand-logo-img{max-height:32px}
  .hero{max-width:460px;padding:24px 0}
  h1{font-size:clamp(30px,3.4vw,44px);margin-bottom:12px}
  .lead{font-size:14.5px;margin-bottom:24px}
  .feats li{padding:11px 0;gap:12px}
  .feats svg{width:18px;height:18px}
  .feats b{font-size:14px}
  .feats span{font-size:13px}
  .copy{font-size:12px}
  .right{padding:20px clamp(24px,4.5vw,72px)}
  .top a{font-size:13px;padding:4px 2px}
  .center{padding:12px 0}
  .form{max-width:360px}
  h2{font-size:26px;margin-bottom:6px}
  .sub{margin-bottom:20px}
  .note{margin-bottom:14px;padding:10px 12px;font-size:13px}
  .field{margin-bottom:12px}
  label{font-size:13px;margin-bottom:6px}
  input[type=email],input[type=password],input[type=text],input[type=tel]{height:44px;border-radius:9px}
  input.pw{padding-right:44px}
  .pre{font-size:13.5px;padding:0 12px}
  .eye{top:3px;right:4px;width:38px;height:38px}
  .row{margin:2px 0 18px}
  .check,.lnk,.alt{font-size:13px}
  .btn{height:46px;font-size:14.5px}
  .alt{margin-top:18px;padding-top:16px}
  .back{margin-bottom:18px}
  .ok .tick{width:48px;height:48px;margin-bottom:16px}
  .ok p{margin-bottom:20px}
}
@media (max-width:960px){
  .shell{grid-template-columns:1fr}
  .left{padding:24px 24px 4px}
  .left-in{position:static;min-height:0}
  .hero{padding:28px 0 20px}
  h1{font-size:34px;margin-bottom:10px}
  .lead{margin:0;font-size:15px}
  .feats,.copy,.radar,.top{display:none}
  .right{border-left:0;padding:16px 24px 40px}
  .center{align-items:flex-start}
}
/* ---- Additions for the CodeIgniter integration (dynamic logo, notifications, links as buttons) ---- */
.brand .brand-symbol{width:30px;height:30px;position:relative;display:block;flex:none}
.brand .brand-symbol span{position:absolute;width:14px;height:14px;border-radius:50%}
.brand .brand-symbol span:nth-child(1){left:4.4px;top:.8px;background:#0a6a4c}
.brand .brand-symbol span:nth-child(2){left:0;top:10.5px;background:#064d38}
.brand .brand-symbol span:nth-child(3){left:11.5px;top:14.1px;background:#0d8460}
.brand .brand-logo-img{width:auto;max-width:200px;max-height:40px}
.brand .auth-brand-text{display:grid;line-height:1.1}
.brand .auth-brand-text b{font-weight:700;text-transform:uppercase}
.brand .auth-brand-text small{display:none}
.note{margin:0 0 20px;padding:12px 14px;border:1px solid;border-radius:10px;font-size:13.5px;line-height:1.5}
.note p{margin:0}.note p+p{margin-top:4px}
.note.err{display:block;background:#fdf2f0;border-color:#f0cbc5;color:#8f2a1f}
.note.good{background:var(--wash);border-color:#cfe0d8;color:var(--brand-d)}
a.btn{display:grid;place-items:center;text-decoration:none}
.ok .tick.warn svg{stroke:var(--warn)}
.ok h2{margin-bottom:12px}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
/* Failed sign-in message: icon + title, fades in smoothly */
.note.has-ico{display:flex;align-items:flex-start;gap:10px;animation:noteIn .25s ease-out}
.note.has-ico svg{flex:0 0 auto;width:18px;height:18px;margin-top:1px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.note.has-ico b{display:block;font-weight:700}
.note.has-ico p{margin:1px 0 0;font-size:13px}
@keyframes noteIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.note.has-ico{animation:none}}
