/* Tampilan login baru (admin dan Layanan Mandiri), turunan desain admin baru */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap; src: url(../fonts/admin-modern/plus-jakarta-sans-latin.woff2) format("woff2"); }
@font-face { font-family: "Material Symbols Rounded"; font-style: normal; font-weight: 400; font-display: block; src: url(../fonts/admin-modern/material-symbols-rounded.woff2) format("woff2"); }

body.msk {
  --bg: #F4F6FB; --surface: #FFFFFF; --ink: #1B2433; --muted: #6B7689; --line: #E5E9F2;
  --brand: #0F9D75; --brand2: #2563EB; --tint: #E3F5EE; --danger: #C0392B;
  margin: 0; min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(420px, .9fr);
  background: var(--bg) !important; background-image: none !important; color: var(--ink);
  font: 400 14.5px/1.5 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body.msk *, body.msk *::before, body.msk *::after { box-sizing: border-box; }
.msk-ms { font-family: "Material Symbols Rounded"; font-feature-settings: "liga"; font-size: 20px; line-height: 1; font-weight: 400; display: inline-block; }

/* panel samping */
.msk-sisi { position: relative; min-height: 100vh; padding: 32px 44px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  background: linear-gradient(140deg, rgba(8,48,40,.9) 0%, rgba(15,157,117,.78) 55%, rgba(37,99,235,.72) 100%), var(--latar) center / cover; }
.msk-kembali { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 600; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); border-radius: 99px; padding: 8px 14px; backdrop-filter: blur(6px); transition: background .2s; }
.msk-kembali:hover, .msk-kembali:focus { background: rgba(255,255,255,.24); color: #fff; text-decoration: none; }
.msk-sisi-isi { max-width: 520px; text-align: left; }
.msk-chip { display: inline-block; background: rgba(255,255,255,.18); border-radius: 99px; padding: 4px 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.msk-sisi h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin: 14px 0 12px; color: #fff; }
.msk-sisi p { margin: 0; opacity: .9; font-size: 15px; }

/* kolom form */
body.msk .top-content { display: flex; align-items: center; justify-content: center; padding: 32px 24px; min-height: 100vh; }
body.msk .inner-bg { padding: 0; width: 100%; }
body.msk .container, body.msk .row { width: 100% !important; max-width: 440px; margin: 0 auto !important; padding: 0 !important; float: none !important; left: auto; background: transparent !important; }
body.msk .form-box[class*="col-sm-"] { width: 100% !important; float: none !important; left: auto; }
body.msk .top-content, body.msk .inner-bg { background: transparent !important; box-shadow: none !important; }
body.msk .row::before, body.msk .row::after { display: none; }
body.msk .form-box, body.msk .form-box.col-sm-6 { display: block !important; flex-direction: column !important; margin: 0 !important; padding: 32px 30px 22px !important; max-width: none; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 1px 2px rgba(20,30,60,.05), 0 18px 48px rgba(20,30,60,.10); text-align: left; }
body.msk .form-top, body.msk .form-bottom, body.msk .form-box > [class*="form-"] { background: none !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; text-align: left; overflow: visible !important; max-height: none !important; float: none; width: 100% !important; color: var(--ink) !important; }
body.msk .form-login, body.msk .form-bottom > .form-login { width: 100% !important; margin: 0 0 14px !important; }
body.msk .form-login input.form-control { width: 100% !important; }
body.msk .login-footer-top h1 br { display: none; }
body.msk .login-footer-top h1 { font-family: "Plus Jakarta Sans", system-ui, sans-serif !important; letter-spacing: -.01em !important; padding: 0 !important; }
body.msk .login-footer-top h3 { letter-spacing: 0 !important; text-transform: none !important; }
/* formulir pendaftaran Layanan Mandiri butuh kartu lebih lebar */
body.msk .container:has(form[action*="daftar"]), body.msk .container:has(form[action*="daftar"]) .row { max-width: 720px; }
body.msk .form-top > a { display: flex; align-items: center; gap: 12px; }
body.msk .form-top img { width: 56px !important; height: 56px; object-fit: contain; margin: 0 !important; display: inline-block; }
body.msk .form-top img + img { width: auto !important; height: 34px; }
body.msk .login-footer-top { margin: 16px 0 20px; }
body.msk .login-footer-top h1 { font-size: 24px !important; font-weight: 800; color: var(--ink) !important; margin: 0 0 4px; letter-spacing: -.01em; line-height: 1.25; text-transform: none; text-shadow: none !important; }
body.msk .login-footer-top h3 { font-size: 13px !important; color: var(--muted) !important; font-weight: 400; margin: 0; line-height: 1.55; text-shadow: none !important; }
body.msk .login-footer-top h3 br:first-child { display: none; }

/* isian */
body.msk .form-group { margin-bottom: 14px; }
body.msk .form-control, body.msk input[type="text"], body.msk input[type="password"], body.msk input[type="email"], body.msk input[type="number"], body.msk select, body.msk textarea {
  width: 100%; height: 48px; padding: 10px 14px; border: 1px solid var(--line) !important; border-radius: 12px !important; background: var(--bg) !important; color: var(--ink) !important;
  font: 500 15px "Plus Jakarta Sans", system-ui, sans-serif !important; text-align: left !important; box-shadow: none !important; transition: border-color .2s, box-shadow .2s, background .2s; line-height: normal;
}
body.msk textarea { height: auto; }
body.msk .form-control:focus, body.msk input:focus, body.msk select:focus { border-color: var(--brand) !important; background: var(--surface) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent) !important; outline: none; }
body.msk .form-control::placeholder { color: var(--muted); }
body.msk input[type="checkbox"] { accent-color: var(--brand); width: 16px; height: 16px; vertical-align: -3px; margin: 0 6px 0 0; display: inline-block !important; }
body.msk label { color: var(--ink) !important; font-weight: 500 !important; font-size: 13.5px; }
body.msk center { text-align: left; }
body.msk #captcha { border-radius: 10px; border: 1px solid var(--line); background: #fff; height: 48px; }
body.msk label.error, body.msk .error:not(input) { color: var(--danger) !important; font-size: 12.5px; font-weight: 500; }

/* tombol */
body.msk .btn, body.msk button[type="submit"] { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: auto; min-height: 46px; padding: 11px 18px; border-radius: 12px !important; border: 1px solid var(--line) !important;
  background: var(--surface) !important; color: var(--ink) !important; font: 700 14.5px "Plus Jakarta Sans", system-ui, sans-serif !important; text-transform: none; letter-spacing: 0; opacity: 1 !important; box-shadow: none; transition: transform .15s, box-shadow .2s, filter .2s; text-shadow: none; }
body.msk .btn:hover, body.msk .btn:focus { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(20,30,60,.10); opacity: 1 !important; }
body.msk button[type="submit"], body.msk .btn.bg-green:first-of-type, body.msk form .form-group:first-of-type + .form-group button.bg-green { width: 100%; background: linear-gradient(135deg, var(--brand), var(--brand2)) !important; color: #fff !important; border-color: transparent !important; }
body.msk .btn-block { width: 100%; }
body.msk .btn b { font-weight: 700; }
/* tautan teks (Lupa kata sandi, Masuk dengan OTP) */
body.msk a.btn[role="button"] { background: none !important; border: 0 !important; min-height: 0; padding: 4px 0; color: var(--brand) !important; font-weight: 600 !important; float: right; }
body.msk a.btn[role="button"]:hover { transform: none; box-shadow: none; text-decoration: underline; }
body.msk .text-center a.btn[role="button"] { float: none; }
/* tombol sekunder Layanan Mandiri (E-KTP, Daftar, Lupa PIN) */
body.msk .login-form .form-group a > button.btn { background: var(--surface) !important; color: var(--ink) !important; border: 1px solid var(--line) !important; }

/* notifikasi */
body.msk .alert { border-radius: 12px; border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent); background: color-mix(in srgb, var(--danger) 8%, #fff) !important; color: var(--ink) !important; padding: 12px 14px; margin: 0 0 16px; font-size: 13.5px; text-shadow: none; }
body.msk .alert p { margin: 0; }
body.msk .alert-success, body.msk .alert-info { border-color: color-mix(in srgb, var(--brand) 30%, transparent); background: var(--tint) !important; }

/* kaki kartu */
body.msk .form-bottom hr { border-color: var(--line); margin: 14px 0 10px !important; }
body.msk .login-footer-bottom { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; }
body.msk .login-footer-bottom a { color: var(--muted) !important; }

@media (max-width: 900px) {
  body.msk { grid-template-columns: 1fr; }
  .msk-sisi { min-height: 0; padding: 20px 20px 72px; gap: 28px; }
  .msk-sisi h2 { font-size: 26px; }
  body.msk .top-content { min-height: 0; padding: 0 16px 32px; margin-top: -52px; position: relative; z-index: 1; }
  body.msk .form-box { padding: 24px 20px 18px; }
}
@media (prefers-reduced-motion: reduce) { body.msk * { transition-duration: .01ms !important; } }

/* judul dan teks kartu login */
body.msk .msk-judul { margin: 18px 0 22px; }
body.msk .msk-judul h1 { font-size: 26px !important; font-weight: 800 !important; letter-spacing: -.02em !important; line-height: 1.2 !important; color: var(--ink) !important; margin: 0 0 6px !important; text-transform: none !important; -webkit-text-stroke: 0 !important; }
body.msk .msk-judul p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
body.msk .msk-info { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; border-radius: 12px; background: var(--tint); color: #0B6B50; font-size: 13px; line-height: 1.5; }
body.msk .msk-info .msk-ms { font-size: 18px; margin-top: 1px; }
body.msk .msk-meta { display: block; margin-top: 10px; color: var(--muted); font-size: 12px; }
body.msk .form-top > a img:first-child { width: 52px !important; height: 52px; }
/* label tombol huruf kalimat */
body.msk .btn, body.msk .btn b { text-transform: none !important; letter-spacing: 0 !important; }
body.msk .login-form .form-group a > button.btn { min-height: 44px; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* scrollbar tipis bertema: WebKit/Blink (Chrome, Edge, Safari) lewat ::-webkit-scrollbar, Firefox lewat scrollbar-width */
html:has(body.msk) *::-webkit-scrollbar, html:has(body.msk)::-webkit-scrollbar { width: 8px; height: 8px; }
html:has(body.msk) *::-webkit-scrollbar-track, html:has(body.msk)::-webkit-scrollbar-track { background: transparent; }
html:has(body.msk) *::-webkit-scrollbar-thumb, html:has(body.msk)::-webkit-scrollbar-thumb { background-color: color-mix(in srgb, #0F9D75 35%, #E5E9F2); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
html:has(body.msk) *::-webkit-scrollbar-thumb:hover, html:has(body.msk)::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, #0F9D75 65%, #E5E9F2); border-width: 1px; }
html:has(body.msk) *::-webkit-scrollbar-thumb:active, html:has(body.msk)::-webkit-scrollbar-thumb:active { background-color: #0F9D75; }
html:has(body.msk) *::-webkit-scrollbar-button, html:has(body.msk)::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
html:has(body.msk) *::-webkit-scrollbar-corner, html:has(body.msk)::-webkit-scrollbar-corner { background: transparent; }
@supports (-moz-appearance: none) {
  html:has(body.msk) *, html:has(body.msk) { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, #0F9D75 35%, #E5E9F2) transparent; }
}
