:root{font-family:'Plus Jakarta Sans',system-ui,sans-serif;color:var(--text-slate-strong);background:var(--surface);font-synthesis:none;text-rendering:optimizeLegibility}
*{box-sizing:border-box}
body.auth-page{margin:0;min-height:100vh;background:linear-gradient(180deg,#DCE8FF 0%,#EEF4FF 260px,#F4F7FC 100%)}
.auth-layout{width:100%;min-height:100vh;padding:56px 64px;display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr)}
.auth-hero{position:relative;isolation:isolate;overflow:hidden;min-height:640px;padding:48px;display:flex;flex-direction:column;gap:20px;border-radius:24px 0 0 24px;background:linear-gradient(135deg,var(--navy-deep) 0%,var(--navy-mid) 55%,#1D5BD8 100%);color:var(--white)}
.auth-brand{position:relative;z-index:1;display:flex;align-items:center;gap:12px}
.auth-emblem{flex:none;width:52px;height:52px;object-fit:contain}
.auth-brand b{display:block;color:var(--white);font-size:20px;font-weight:800;letter-spacing:.06em}
.auth-brand small{display:block;font-size:12px;color:#A5B4FC}
.auth-copy{position:relative;z-index:1;margin-top:28px}
.auth-copy h1{margin:0;font-size:clamp(36px,3.1vw,44px);line-height:1.08;font-weight:800;letter-spacing:-.02em}
.auth-copy p{max-width:460px;margin:18px 0 0;font-size:16px;line-height:1.6;color:#C7D2FE}
.auth-title-mobile,.auth-copy-mobile{display:none}
.auth-pills{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.auth-pills span{padding:6px 12px;border:1px solid #23407F;border-radius:999px;background:var(--navy-800);font-size:13px}
.auth-graph{position:absolute;z-index:-1;left:0;right:0;bottom:0;width:100%;height:300px;opacity:.9}
.auth-main{min-width:0;min-height:640px;padding:44px 40px;display:flex;align-items:center;justify-content:center;border-radius:0 24px 24px 0;background:var(--white)}
.auth-stack{width:100%;max-width:440px;display:flex;flex-direction:column;gap:18px}
.auth-card{width:100%;padding:0;border:0;background:transparent}
.auth-heading h2{margin:0;font-size:26px;line-height:1.25;font-weight:800;letter-spacing:-.01em}
.auth-heading p{margin:6px 0 0;font-size:14px;line-height:1.55;color:var(--text-slate)}
.auth-form{display:flex;flex-direction:column;gap:14px}
.auth-field{display:flex;flex-direction:column;gap:7px}
.auth-field label,.auth-legend{font-size:13px;font-weight:700;color:#1E293B}
.auth-field input{width:100%;min-height:42px;padding:12px 14px;border:1px solid var(--border-slate);border-radius:12px;background:var(--white);color:var(--text-slate-strong);font:500 15px 'Plus Jakarta Sans',system-ui,sans-serif}
.auth-password{position:relative}
.auth-password input{padding-right:104px}
.auth-password-toggle{position:absolute;top:50%;right:8px;transform:translateY(-50%);min-height:36px;padding:0 12px;border:0;border-radius:8px;background:transparent;color:var(--accent-blue);font:700 13px 'Plus Jakarta Sans',system-ui,sans-serif;cursor:pointer}
.auth-password-toggle:hover{background:#1e5eff14}
.auth-password-toggle:focus-visible{outline:2px solid var(--accent-blue);outline-offset:1px}
.auth-field input:focus{outline:0;border-color:var(--accent-blue);box-shadow:0 0 0 3px #1e5eff24}
.auth-primary{min-height:52px;padding:0 18px;border:0;border-radius:12px;background:var(--accent-blue);color:var(--white);font:700 15px 'Plus Jakarta Sans',system-ui,sans-serif;cursor:pointer}
.auth-primary:hover{background:#1748CF}
.auth-error{margin:0;color:var(--danger-text);font-size:13px;line-height:1.5}
.auth-status{padding:11px 13px;border-radius:10px;background:#EEF3FF;color:#1E3A8A;font-size:13px;line-height:1.5}
.auth-secondary{min-height:42px;padding:0 14px;border:1px solid var(--border-slate);border-radius:10px;background:var(--white);color:var(--text-slate-strong);font:700 13px 'Plus Jakarta Sans',system-ui,sans-serif;cursor:pointer}
.auth-foot{margin:2px 0 0;color:var(--text-slate);font-size:12px;line-height:1.55}
.auth-audit{display:flex;gap:8px;align-items:center;margin-top:4px;color:var(--text-slate);font-size:12px;line-height:1.5}
.auth-audit svg{flex:none}
.auth-resend{display:flex;flex-direction:column;gap:10px;padding-top:14px;border-top:1px solid var(--divider-cool)}
@media(max-width:1050px) and (min-width:761px){.auth-layout{padding:32px 28px;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr)}.auth-hero{padding:36px;min-height:620px}.auth-main{padding:36px 28px;min-height:620px}.auth-copy h1{font-size:36px}}
@media(max-width:760px){
 body.auth-page{min-height:100svh;background:linear-gradient(145deg,#101F54,#244B9E)}
 .auth-layout{min-height:100svh;padding:0;display:flex;flex-direction:column;background:transparent}
 .auth-hero{flex:1;min-height:275px;padding:32px 24px;gap:20px;border-radius:0;background:transparent}
 .auth-brand{display:flex}
 .auth-emblem{width:48px;height:48px}
 .auth-copy{margin-top:0}
 .auth-copy h1{margin-top:8px;font-size:30px;line-height:1.1}
 .auth-title-desktop,.auth-copy-desktop,.auth-layout:not(.auth-layout-login) .auth-pills{display:none!important}
 .auth-title-mobile,.auth-copy-mobile{display:block}
 .auth-graph{display:none}
 .auth-copy p{margin-top:10px;font-size:14px;line-height:1.5}
 .auth-main{flex:0 0 auto;min-height:0;padding:28px 24px 32px;border-radius:24px 24px 0 0;align-items:flex-start}
 .auth-stack{gap:16px;max-width:none}
 .auth-heading h2{font-size:24px}
 .auth-field input{min-height:54px}
 .auth-primary{min-height:54px;font-size:16px}
}
.auth-code-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.auth-code-digit{width:100%;min-width:0;min-height:58px;text-align:center;font:600 22px 'JetBrains Mono',monospace;border:1px solid var(--border-slate);border-radius:12px;background:var(--white);color:var(--text-slate-strong)}
.auth-code-digit:focus{outline:0;border-color:var(--accent-blue);background:#F5F8FF;box-shadow:0 0 0 3px #1e5eff24}

/* Frame the desktop photo around the subject and blend it behind the form. */
body.auth-page:has(.auth-layout-login){background:#081a42}
.auth-layout-login {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  padding: 32px 5vw;
  grid-template-columns: minmax(0,1fr) minmax(320px,390px);
  align-items: center;
}
.auth-layout-login .auth-hero { display: contents; }
.auth-layout-login .auth-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(165deg,#081a42b3,transparent 40%),linear-gradient(0deg,#081a4280,transparent 55%);
}
.auth-layout-login .auth-hero-photo {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: min(80%, calc(135% - 615px));
  height: 100%;
  object-fit: cover;
  object-position: 45% top;
  mask-image: linear-gradient(to right,#000 73%,transparent);
}
.auth-layout-login .auth-brand-login{gap:12px;align-items:center;color:var(--white)}
.auth-layout-login .auth-brand-login { align-self: start; }
.auth-polri-mark,.auth-brand-login .auth-emblem{width:44px;height:44px;object-fit:contain}
.auth-brand-login .auth-emblem{width:58px;height:58px}
.auth-brand-divider{height:34px;width:1px;background:#ffffff66}
.auth-wordmark b{font-size:clamp(22px,4vw,30px);letter-spacing:.015em}
.auth-wordmark b span{color:#9cbdff}
.auth-wordmark{display:flex;align-items:center;gap:12px}
.auth-wordmark small{color:#e1eaff;font-weight:600;line-height:1.35}
.auth-wordmark .auth-moto{font-weight:500;opacity:.85}
.auth-layout-login .auth-main{width:100%;min-height:0;padding:clamp(24px,3vw,38px);border:1px solid var(--white);border-radius:20px;background:#fffffffa;box-shadow:0 24px 80px #030e3966}
.auth-layout-login .auth-heading h1{margin:0;color:#102b68;font-size:28px;letter-spacing:-.02em}
@media(max-width:900px){
 .auth-layout-login{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0;padding:0;background:var(--white)}
 /* Topbar solid di atas, video utuh di bawahnya: tidak dipotong dan tidak diperbesar supaya tetap tajam. */
 .auth-layout-login .auth-hero{display:flex;flex:none;min-height:0;padding:0;gap:0;border-radius:0;background:#081a42}
 .auth-layout-login .auth-hero::after{display:none}
 .auth-layout-login .auth-brand-login{order:-1;align-self:stretch;padding:14px 24px;background:#081a42;box-shadow:0 1px 0 #ffffff1f}
 .auth-layout-login .auth-hero-photo{position:static;width:100%;height:auto;aspect-ratio:1440/900;object-fit:cover;mask-image:none;animation:none}
 .auth-layout-login .auth-main{flex:1 0 auto;width:100%;padding:26px 24px 32px;border:0;border-radius:0;box-shadow:none}
 .auth-layout-login .auth-stack{max-width:520px;margin-inline:auto}
}
@media(max-width:480px){
 .auth-layout-login .auth-brand-login{gap:8px}
 .auth-polri-mark,.auth-brand-login .auth-emblem{width:28px;height:28px}
 .auth-wordmark b{font-size:20px}
 /* Dua baris: SAS di kiri, nama sistem dan semboyan bertumpuk di kanannya. */
 .auth-wordmark{gap:8px}
 .auth-tagline{display:flex;flex-direction:column}
 .auth-wordmark small{font-size:10px;line-height:1.25}
}

/* ===== Gerak halaman masuk: masuk berurutan, umpan balik jelas, hanya transform dan opacity. ===== */
@keyframes masuk-naik{from{opacity:0;transform:translateY(16px) scale(.985)}}
@keyframes masuk-turun{from{opacity:0;transform:translateY(-10px)}}
@keyframes masuk-zoom{from{opacity:0;transform:scale(1.08)}}
@keyframes masuk-getar{0%,100%{transform:none}20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}
@keyframes masuk-kilau{from{transform:translateX(-120%) skewX(-20deg)}to{transform:translateX(220%) skewX(-20deg)}}
.auth-layout-login .auth-hero-photo{animation:masuk-zoom 1.6s cubic-bezier(.2,.8,.2,1) both}
.auth-brand{animation:masuk-turun .6s cubic-bezier(.2,.8,.2,1) .1s both}
.auth-main{animation:masuk-naik .6s cubic-bezier(.2,.8,.2,1) .2s both}
.auth-form>*,.auth-heading{animation:masuk-naik .5s cubic-bezier(.2,.8,.2,1) both}
.auth-heading{animation-delay:.3s}
.auth-form>:nth-child(1){animation-delay:.36s}.auth-form>:nth-child(2){animation-delay:.42s}.auth-form>:nth-child(3){animation-delay:.48s}
.auth-form>:nth-child(4){animation-delay:.54s}.auth-form>:nth-child(n+5){animation-delay:.6s}
.auth-field input{transition:border-color .2s,box-shadow .2s,transform .15s}
.auth-field input:focus{transform:translateY(-1px)}
.auth-primary,.auth-secondary,.auth-password-toggle{transition:transform .14s cubic-bezier(.2,.8,.2,1),background-color .2s,box-shadow .2s}
.auth-primary{position:relative;overflow:hidden}
.auth-primary::after{content:"";position:absolute;inset:0;width:40%;background:linear-gradient(90deg,transparent,#ffffff59,transparent);transform:translateX(-120%) skewX(-20deg);pointer-events:none}
.auth-primary:hover{transform:translateY(-1px);box-shadow:0 12px 24px -12px #1e5effb3}
.auth-primary:hover::after{animation:masuk-kilau .8s ease}
:is(.auth-primary,.auth-secondary):active{transform:scale(.97)}
.auth-error{animation:masuk-getar .4s ease both}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
