/* EcoForWorld KVKS v3.7 — skrin log masuk & tukar kata laluan baharu + mesej "Log masuk berjaya" */
.auth-v37{--a-ink:#123b2e;--a-deep:#0d3427;--a-green:#1f6b4f;--a-lime:#b9ef74;--a-cream:#f6f3ea;--a-line:#d9e2dc;--a-muted:#5d7068;--a-red:#b3412c;
  position:relative;min-height:100dvh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:28px 16px calc(24px + env(safe-area-inset-bottom));
  background:radial-gradient(1200px 600px at 10% -10%,#d9f0c4 0%,transparent 60%),radial-gradient(900px 600px at 110% 110%,#cfe9dd 0%,transparent 55%),var(--a-cream);overflow:hidden;color:var(--a-ink)}
.auth-v37 .auth-bg i{position:absolute;border-radius:50% 0 50% 0;background:linear-gradient(135deg,#9fd67a,#2f8a5f);opacity:.13;pointer-events:none}
.auth-v37 .auth-bg i:nth-child(1){width:220px;height:220px;top:6%;left:-60px;transform:rotate(18deg)}
.auth-v37 .auth-bg i:nth-child(2){width:160px;height:160px;bottom:8%;right:-40px;transform:rotate(-30deg)}
.auth-v37 .auth-bg i:nth-child(3){width:90px;height:90px;top:58%;left:8%;transform:rotate(60deg);opacity:.09}
.auth-v37>section.auth-card{position:relative;z-index:1;width:100%;max-width:460px;padding:0;background:#fff;border:1px solid var(--a-line);border-radius:28px;box-shadow:0 30px 60px -30px rgba(13,52,39,.35),0 2px 6px rgba(13,52,39,.05);overflow:hidden;display:block}
/* Jenama */
.auth-v37 .auth-brand{background:linear-gradient(160deg,#134a37 0%,#0d3427 70%);color:#fff;padding:22px 24px 24px;position:relative}
.auth-v37 .auth-brand::after{content:"";position:absolute;right:-50px;top:-50px;width:190px;height:190px;border-radius:50%;background:radial-gradient(circle,rgba(185,239,116,.28),transparent 70%)}
.auth-v37 img.auth-kvks{display:block;width:100%;max-width:300px;height:auto;margin:0 0 20px;padding:10px 14px;background:#fff;border-radius:14px;box-sizing:border-box}
.auth-v37 .auth-brandrow{display:flex;align-items:center;gap:14px;position:relative;z-index:1}
.auth-v37 img.auth-appicon{width:64px;height:64px;margin:0;border-radius:18px;background:#fff;padding:4px;box-shadow:0 8px 20px rgba(0,0,0,.25);flex:none}
.auth-v37 .auth-name{margin:0;font-size:clamp(30px,8vw,38px);line-height:1.05;font-weight:800;letter-spacing:-.03em;color:#fff}
.auth-v37 .auth-sub{margin:6px 0 0;font-size:12.5px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--a-lime);line-height:1.4}
.auth-v37 .auth-steps{list-style:none;margin:18px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:8px;position:relative;z-index:1}
.auth-v37 .auth-steps li{display:flex;align-items:center;gap:6px;font-size:12.5px;font-weight:600;padding:7px 11px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);color:#e9f5ec}
/* Borang */
.auth-v37 .auth-body{padding:26px 24px 24px}
.auth-v37 h1{font-size:26px;margin:0 0 6px;letter-spacing:-.02em;color:var(--a-ink)}
.auth-v37 .auth-lead{margin:0 0 20px;color:var(--a-muted);line-height:1.6;font-size:15px}
.auth-v37 form{display:grid;gap:14px}
.auth-v37 .auth-field{display:grid;gap:6px}
.auth-v37 .auth-field>label{font-size:14px;font-weight:700;color:var(--a-ink)}
.auth-v37 .auth-input{position:relative;display:flex;align-items:center}
.auth-v37 .auth-input>svg{position:absolute;left:14px;width:20px;height:20px;fill:none;stroke:#7b8f86;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.auth-v37 .auth-input input{width:100%;min-height:52px;box-sizing:border-box;font:inherit;font-size:16px;color:var(--a-ink);background:#f7faf8;border:1.5px solid var(--a-line);border-radius:14px;padding:12px 14px 12px 46px;transition:border-color .15s,box-shadow .15s,background .15s}
.auth-v37 .auth-input.has-eye input{padding-right:54px}
.auth-v37 .auth-input input::placeholder{color:#a3b2ab}
.auth-v37 .auth-input input:focus{outline:none;border-color:var(--a-green);background:#fff;box-shadow:0 0 0 4px rgba(31,107,79,.14)}
.auth-v37 .auth-input:focus-within>svg{stroke:var(--a-green)}
.auth-v37 .auth-input.is-invalid input{border-color:var(--a-red);background:#fff8f6}
.auth-v37 .auth-input.is-invalid input:focus{box-shadow:0 0 0 4px rgba(179,65,44,.14)}
.auth-v37 .auth-eye{position:absolute;right:5px;width:44px;height:44px;display:grid;place-items:center;border:0;border-radius:11px;background:transparent;color:#5d7068;cursor:pointer;padding:0}
.auth-v37 .auth-eye:hover{background:#eaf2ed;color:var(--a-green)}
.auth-v37 .auth-eye:focus-visible{outline:3px solid rgba(31,107,79,.35);outline-offset:0}
.auth-v37 .auth-eye svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.auth-v37 .auth-err{margin:0;min-height:0;font-size:13px;font-weight:600;color:var(--a-red);line-height:1.4}
.auth-v37 .auth-err:empty{display:none}
.auth-v37 .auth-caps{margin:0;font-size:12.5px;font-weight:700;color:#8a5a00;background:#fff4d6;border-radius:8px;padding:5px 9px;justify-self:start}
.auth-v37 .auth-meter{margin:-6px 0 0;font-size:12.5px;font-weight:700;color:var(--a-muted)}
.auth-v37 .auth-meter.ok{color:var(--a-green)}
.auth-v37 .auth-row{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:-2px}
.auth-v37 .auth-remember{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--a-muted);cursor:pointer;min-height:44px}
.auth-v37 .auth-remember input{width:18px;height:18px;min-height:0;accent-color:var(--a-green);margin:0;padding:0;border:0;flex:none}
.auth-v37 .auth-link{background:none;border:0;padding:0 2px;min-height:44px;font:inherit;font-size:14px;font-weight:700;color:var(--a-green);cursor:pointer}
.auth-v37 .auth-link:hover{text-decoration:underline}
.auth-v37 .auth-help{font-size:13.5px;line-height:1.6;color:#3f5a4f;background:#eef6f0;border:1px solid #d4e7da;border-radius:12px;padding:12px 14px}
.auth-v37 .auth-alert{display:none;font-size:14px;font-weight:600;line-height:1.5;color:#7c2414;background:#fdecea;border:1px solid #f4c7bf;border-radius:12px;padding:11px 14px}
.auth-v37 .auth-alert.is-shown:not(:empty){display:block}
.auth-v37 .auth-note{font-size:14px;font-weight:600;color:#1f5a40;background:#e7f5ec;border:1px solid #c6e5d1;border-radius:12px;padding:11px 14px;margin:0 0 16px}
.auth-v37 .auth-submit{position:relative;display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:54px;margin-top:4px;border:0;border-radius:14px;background:linear-gradient(180deg,#25805d,#1b6347);color:#fff;font:inherit;font-size:16.5px;font-weight:800;letter-spacing:.01em;cursor:pointer;box-shadow:0 10px 22px -10px rgba(27,99,71,.8);transition:transform .08s,filter .15s}
.auth-v37 .auth-submit:hover{filter:brightness(1.06)}
.auth-v37 .auth-submit:active{transform:translateY(1px)}
.auth-v37 .auth-submit:focus-visible{outline:3px solid var(--a-lime);outline-offset:3px}
.auth-v37 .auth-submit:disabled{cursor:progress;filter:saturate(.7);opacity:.92}
.auth-v37 .auth-submit.is-secondary{background:#fff;color:var(--a-green);border:1.5px solid var(--a-green);box-shadow:none;min-height:50px}
.auth-v37 .auth-spin{display:none;width:18px;height:18px;border-radius:50%;border:2.5px solid rgba(255,255,255,.45);border-top-color:#fff;animation:authspin .7s linear infinite}
.auth-v37 .auth-submit.is-secondary .auth-spin{border-color:rgba(31,107,79,.3);border-top-color:var(--a-green)}
.auth-v37 .auth-submit.is-busy .auth-spin{display:inline-block}
.auth-v37 .auth-hint{margin:18px 0 0;font-size:13px;line-height:1.65;color:var(--a-muted)}
.auth-v37 details.auth-admin{margin:16px 0 0;padding-top:12px;border-top:1px solid var(--a-line);font-size:14px;color:var(--a-muted)}
.auth-v37 details.auth-admin summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-weight:700}
.auth-v37 details.auth-admin form{margin-top:8px}
.auth-v37 a.auth-back{display:inline-flex;align-items:center;min-height:44px;margin-top:10px;color:var(--a-green);font-weight:700;text-decoration:none}
.auth-v37 .auth-foot{position:relative;z-index:1;margin:0;font-size:12.5px;color:#6b7f76;text-align:center}
/* Berjaya */
.auth-v37 .auth-done{padding:40px 24px 34px;text-align:center}
.auth-v37 .auth-done h2{margin:18px 0 6px;font-size:26px;color:var(--a-ink);letter-spacing:-.02em}
.auth-v37 .auth-done p{margin:0;color:var(--a-muted);font-size:15.5px;line-height:1.6}
.auth-v37 .auth-tick{width:86px;height:86px;margin:0 auto;border-radius:50%;background:#e4f5ea;display:grid;place-items:center;animation:authpop .45s cubic-bezier(.2,1.4,.4,1) both}
.auth-v37 .auth-tick svg{width:60px;height:60px;fill:none;stroke:#1f8a5b;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}
.auth-v37 .auth-tick circle{stroke-dasharray:151;stroke-dashoffset:151;animation:authdraw .6s .1s ease forwards}
.auth-v37 .auth-tick path{stroke-dasharray:40;stroke-dashoffset:40;animation:authdraw .35s .55s ease forwards}
.auth-v37 .auth-bar{height:5px;border-radius:9px;background:#e6efe9;margin:22px auto 0;max-width:220px;overflow:hidden}
.auth-v37 .auth-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#1f8a5b,var(--a-lime));animation:authfill 1.45s ease forwards}
.auth-v37 .auth-card.is-shake{animation:authshake .4s}
.auth-v37 .is-floating.eco-lang-switch{z-index:5}
@keyframes authspin{to{transform:rotate(360deg)}}
@keyframes authpop{from{transform:scale(.5);opacity:0}to{transform:none;opacity:1}}
@keyframes authdraw{to{stroke-dashoffset:0}}
@keyframes authfill{to{width:100%}}
@keyframes authshake{20%,60%{transform:translateX(-7px)}40%,80%{transform:translateX(7px)}}
@media (max-width:899px){.auth-v37{justify-content:flex-start;padding-top:calc(66px + env(safe-area-inset-top))}}
@media (min-width:900px){
  .auth-v37>section.auth-card{max-width:940px;display:grid;grid-template-columns:1.05fr 1fr}
  .auth-v37 .auth-brand{padding:38px 38px;display:flex;flex-direction:column;justify-content:center}
  .auth-v37 img.auth-kvks{max-width:340px;margin-bottom:34px}
  .auth-v37 img.auth-appicon{width:84px;height:84px;border-radius:22px}
  .auth-v37 .auth-name{font-size:46px}
  .auth-v37 .auth-steps{margin-top:30px;flex-direction:column;align-items:flex-start}
  .auth-v37 .auth-steps li{font-size:14px;padding:9px 14px}
  .auth-v37 .auth-body,.auth-v37 .auth-done{padding:44px 40px;align-self:center}
}
@media (prefers-reduced-motion:reduce){.auth-v37 *{animation-duration:.01ms!important;animation-delay:0s!important}}
/* Toast selepas masuk */
.eco-welcome{position:fixed;left:50%;top:calc(14px + env(safe-area-inset-top));z-index:9999;display:flex;align-items:center;gap:12px;width:min(440px,calc(100vw - 24px));box-sizing:border-box;padding:13px 12px 13px 14px;border-radius:16px;background:#123b2e;color:#fff;box-shadow:0 18px 40px -12px rgba(0,0,0,.45);transform:translate(-50%,-140%);opacity:0;transition:transform .35s cubic-bezier(.2,1.2,.4,1),opacity .25s}
.eco-welcome.on{transform:translate(-50%,0);opacity:1}
.eco-welcome-ic{flex:none;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#b9ef74;color:#0d3427;font-weight:900;font-size:18px}
.eco-welcome div{flex:1;min-width:0}.eco-welcome strong{display:block;font-size:15px}.eco-welcome small{display:block;font-size:13px;color:#d4e8dc;margin-top:2px;line-height:1.4}
.eco-welcome button{flex:none;width:36px;height:36px;border:0;border-radius:10px;background:rgba(255,255,255,.1);color:#fff;font-size:20px;cursor:pointer}
@media (prefers-reduced-motion:reduce){.eco-welcome{transition:none}}
/* Skrin awal (semak sesi) */
.auth-v37 .auth-boot{padding:30px 24px;display:flex;align-items:center;gap:12px;color:var(--a-muted);font-weight:600}
.auth-v37 .auth-boot .auth-spin{display:inline-block;border-color:rgba(31,107,79,.25);border-top-color:var(--a-green)}
