/* auth pages v2: split layout */
:root{--ink:#111418;--muted:#6b7480;--cyan:#6bdcf6;--cyan-d:#2bbfe3;--cyan-soft:#d8f4fb}
html{zoom:.9}
html,body{min-height:100%;background:radial-gradient(900px 520px at 88% -8%,#b9edfa 0%,transparent 62%),radial-gradient(800px 600px at -5% 105%,#dbe7f4 0%,transparent 60%),linear-gradient(165deg,#eef2f7 0%,#d9f2fa 100%) fixed!important}
body{font-family:'Inter',system-ui,sans-serif;color:var(--ink);-webkit-font-smoothing:antialiased}
body .auth-wrapper{min-height:calc(100vh / .9);display:flex;align-items:center;justify-content:center;padding:1.5rem;background:transparent!important}
body .auth-wrapper::before,body .auth-wrapper::after,body .auth-card::after,.aurora-blob-1,.dot-grid,.logo-blob,.auth-divider{display:none!important}

/* kartu dua kolom */
body .auth-card{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:1fr auto auto auto 1fr;width:100%;max-width:980px;min-height:580px;padding:0!important;background:rgba(255,255,255,.92)!important;border:1px solid rgba(255,255,255,.85)!important;border-radius:36px!important;box-shadow:0 24px 70px rgba(40,90,120,.16)!important;overflow:hidden}
.auth-card>.auth-header,.auth-card>.auth-form-wrap,.auth-card>.auth-footer{grid-column:1}
.auth-card>.auth-header{grid-row:2}
.auth-card>.auth-form-wrap{grid-row:3}
.auth-card>.auth-footer{grid-row:4}

/* kolom kiri */
body .auth-header{background:none!important;border:0!important;padding:0 2.75rem .5rem!important;text-align:center}
.auth-brand img{width:72px;height:72px;border-radius:50%!important;object-fit:cover;border:3px solid #fff;box-shadow:0 8px 22px rgba(40,90,120,.2);transition:none!important;transform:none!important}
.auth-brand h1{color:var(--ink)!important;font-weight:700;font-size:1.6rem;letter-spacing:-.02em;margin-top:.6rem}
.auth-brand h1::after{content:"";display:block;width:34px;height:3px;border-radius:3px;background:var(--cyan-d);margin:.45rem auto 0}
.auth-brand p{color:var(--muted)!important;font-size:.88rem;margin-top:.5rem}
body .auth-form-wrap{padding:.75rem 2.75rem 1rem!important}
.auth-form label{font-size:.8rem;font-weight:500;color:#4b5563!important}
.input-wrap{position:relative}
body .input-wrap input{width:100%;min-height:50px;padding:.75rem 1.1rem .75rem 3.5rem!important;font-size:.92rem;font-family:inherit;color:var(--ink)!important;background:#fff!important;border:1px solid rgba(17,20,24,.12)!important;border-radius:999px!important;box-shadow:none!important;outline:none}
body .input-wrap input::placeholder{color:#9aa4b0}
body .input-wrap input:focus{border-color:var(--cyan-d)!important;box-shadow:0 0 0 3px rgba(107,220,246,.35)!important}
body .input-wrap .input-icon{position:absolute!important;left:7px!important;top:50%!important;transform:translateY(-50%)!important;width:36px!important;height:36px!important;padding:9px;border-radius:50%;background:var(--cyan-soft);color:#0b6b86!important}
body .auth-form .btn{width:100%;min-height:50px;border:0!important;border-radius:999px!important;background:linear-gradient(135deg,#7fe3f8,#52d3f0)!important;color:#06303b!important;font-weight:600;font-size:.95rem;box-shadow:0 8px 20px rgba(82,211,240,.4)!important;display:flex;align-items:center;justify-content:center;gap:.5rem;cursor:pointer;transform:none!important}
body .auth-form .btn::before{display:none!important}
body .auth-form .btn:hover{filter:brightness(.96)}
body .auth-footer{text-align:center;padding:0 2.75rem !important;color:var(--muted)!important;font-size:.85rem}
body .auth-footer a{color:var(--ink)!important;font-weight:600;text-decoration:none}
body .auth-footer a:hover{color:#0b8aa8!important;text-decoration:underline}
body .auth-error{background:#ffe3e3!important;color:#b42323!important;border:0!important;border-radius:16px!important;padding:.7rem 1rem;font-size:.85rem}

/* panel kanan */
.auth-side{grid-column:2;grid-row:1/-1;position:relative;margin:12px;border-radius:140px 28px 28px 60px;overflow:hidden;display:flex;align-items:center;justify-content:center;background:radial-gradient(480px 340px at 88% 4%,rgba(107,220,246,.22),transparent 62%),linear-gradient(160deg,#1a2030 0%,#0c0e12 100%)}
.auth-side-art{position:absolute;inset:0;width:100%;height:100%}
.auth-side-art .trail{fill:none;stroke:rgba(255,255,255,.22);stroke-width:1.5;stroke-dasharray:5 7}
.auth-side-art .node circle{fill:rgba(255,255,255,.05);stroke:rgba(255,255,255,.35);stroke-width:1.5}
.auth-side-art .node .ic{fill:none;stroke:#6bdcf6;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.auth-side-art .node text{fill:rgba(255,255,255,.72);font:600 12px Inter,sans-serif;text-anchor:middle}
.auth-side-brand{position:relative;z-index:1;text-align:center;color:#fff;padding:0 1rem}
.auth-side-brand h2{font-size:2rem;font-weight:700;letter-spacing:-.02em;margin:0}
.auth-side-brand .bar{display:block;width:36px;height:3px;border-radius:3px;background:var(--cyan);margin:.65rem auto}
.auth-side-brand p{margin:0;font-size:.82rem;color:rgba(255,255,255,.7)}

@media(max-width:860px){
  body .auth-card{grid-template-columns:1fr;grid-template-rows:auto;max-width:440px;min-height:0;padding:1.75rem 0!important}
  .auth-side{display:none}
  .auth-card>.auth-header,.auth-card>.auth-form-wrap,.auth-card>.auth-footer{grid-row:auto}
  body .auth-header,body .auth-form-wrap,body .auth-footer{padding-left:1.5rem!important;padding-right:1.5rem!important}
}

/* ===== v3: rapikan tinggi & jarak (register 4 field) ===== */
body .auth-wrapper{align-items:flex-start;padding:1.5rem}
body .auth-card{margin:auto;grid-template-rows:1fr auto auto auto 1fr;min-height:0}
body .auth-header{padding:1.9rem 2.75rem .25rem!important}
.auth-brand img{width:58px;height:58px}
.auth-brand h1{font-size:1.4rem;margin-top:.45rem}
.auth-brand h1::after{margin-top:.35rem}
.auth-brand p{margin-top:.35rem;font-size:.85rem}
body .auth-form-wrap{padding:.6rem 2.75rem .5rem!important}
.auth-form .form-group{margin-bottom:.8rem!important}
.auth-form label{display:block;margin-bottom:.3rem}
body .input-wrap input{min-height:46px;padding-left:3.3rem!important}
body .input-wrap .input-icon{width:32px!important;height:32px!important;padding:8px;left:7px!important}
body .auth-form .btn{min-height:46px;margin-top:.35rem}
body .auth-footer{padding:.25rem 2.75rem 1.6rem!important}
.auth-side{margin:12px}
@media(max-width:860px){body .auth-wrapper{align-items:flex-start}body .auth-card{padding:0!important}body .auth-header{padding-top:1.5rem!important}}

/* ===== v4: panel kanan tidak ter-crop, tinggi kartu seragam ===== */
body .auth-card{min-height:620px}
.auth-side-art{padding:18px}
.auth-side-brand{transform:translateY(-4px)}

/* ===== v5: login HP gaya ITSM (hanya <=640px) ===== */
@media (max-width:640px){
  body .auth-wrapper{padding:0!important;align-items:stretch!important}
  body .auth-card{
    display:flex!important;flex-direction:column;width:100%!important;max-width:none!important;
    margin:0!important;min-height:0!important;padding:0!important;
    background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;overflow:visible!important
  }
  /* header berwarna di atas */
  body .auth-header{
    background:linear-gradient(160deg,#8fe7fa 0%,#52d3f0 55%,#2bbfe3 100%)!important;
    padding:calc(env(safe-area-inset-top,0px) + 2rem) 1.5rem 3.4rem!important;text-align:center
  }
  .auth-brand img{width:64px;height:64px;border:3px solid #fff}
  .auth-brand h1{font-size:1.45rem;color:#06303b!important}
  .auth-brand h1::after{background:#fff}
  .auth-brand p{color:rgba(6,48,59,.78)!important}
  /* lembar putih: penuh lebar, sudut atas besar, sampai bawah layar */
  body .auth-form-wrap{
    background:#fff!important;position:relative;margin-top:-1.8rem;
    border-radius:28px 28px 0 0;padding:1.6rem 1.5rem .5rem!important
  }
  body .auth-footer{
    background:#fff!important;flex:1 1 auto;padding:.5rem 1.5rem 2rem!important
  }
}
