/* =====================================================================
   Tampilan bersama - Sistem Manajemen Kinerja & Gaji Outcome
   Dipakai oleh admin/*, user/*, dan halaman login.

   Catatan:
   - Kerangka (sidebar, header, drawer mobile) ditulis dengan CSS biasa,
     jadi tetap rapi walaupun Tailwind CDN lambat dimuat.
   - Aturan di bagian "Poles konten" sengaja TIDAK memakai @layer, supaya
     menang atas kelas utilitas Tailwind dan seluruh halaman lama otomatis
     ikut rapi tanpa mengubah markup masing-masing.
   ===================================================================== */

@layer theme, base, components, utilities;

/* Tailwind v4 memakai currentColor untuk garis tepi tanpa warna; buat abu-abu halus
   (di layer base, jadi kelas border-* di halaman tetap menang). */
@layer base {
    .app-content *, .app-content ::before, .app-content ::after,
    .app-modal *, .app-modal ::before, .app-modal ::after { border-color: #e2e8f0; }
}


:root {
    --font-sans: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --ink: #0f172a;
    --ink-2: #1e293b;
    --canvas: #f3f5f9;
    --line: #e2e8f0;
    --brand: #4f46e5;
    --brand1: #46e596;
    --brand-soft: #eef2ff;
    --sidebar-w: 17rem;
    --header-h: 4rem;
}

html { -webkit-text-size-adjust: 100%; }

.app-body {
    margin: 0;
    background: var(--canvas);
    color: #1e293b;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
.app-body.menu-open { overflow: hidden; }

/* Fokus keyboard yang terlihat di seluruh aplikasi */
:where(a, button, summary, [tabindex]):focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
    border-radius: .375rem;
}

.skip-link {
    position: absolute; left: .75rem; top: -3rem; z-index: 100;
    background: #fff; color: var(--ink); padding: .5rem .875rem; border-radius: .5rem;
    font-size: .8125rem; font-weight: 600; box-shadow: 0 4px 14px rgb(15 23 42 / .2);
    transition: top .15s;
}
.skip-link:focus { top: .75rem; }

/* ------------------------------------------------------------ kerangka */
.app-shell { display: flex; height: 100vh; height: 100dvh; overflow: hidden; }
.app-main { flex: 1 1 0%; min-width: 0; display: flex; flex-direction: column; }
.app-scroll { flex: 1 1 0%; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.app-content {
    width: 100%; max-width: 90rem; margin: 0 auto;
    padding: 1rem 1rem 3rem;
}
@media (min-width: 768px)  { .app-content { padding: 1.5rem 1.5rem 3rem; } }
@media (min-width: 1280px) { .app-content { padding: 2rem 2rem 3rem; } }

/* ------------------------------------------------------------- sidebar */
.app-sidebar {
    flex: 0 0 var(--sidebar-w); width: var(--sidebar-w);
    display: flex; flex-direction: column;
    background: var(--ink); color: #cbd5e1;
    border-right: 1px solid #1e293b;
}
.app-overlay { display: none; }

.sb-brand {
    display: flex; align-items: center; gap: .75rem;
    height: var(--header-h); padding: 0 1rem 0 1.25rem; flex-shrink: 0;
    border-bottom: 1px solid #1e293b;
}
.sb-logo {
    display: grid; place-items: center; flex-shrink: 0;
    width: 2.25rem; height: 2.25rem; border-radius: .625rem;
    background: var(--brand); color: #fff; font-size: 1rem;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 4px 10px -2px rgb(79 70 229 / .55);
}
.sb-logo--admin { background: #dc2626; box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 4px 10px -2px rgb(220 38 38 / .5); }
.sb-title { margin: 0; font-size: .875rem; font-weight: 700; color: #fff; line-height: 1.2; letter-spacing: .01em; }
.sb-sub { margin: .125rem 0 0; font-size: .6875rem; color: #94a3b8; line-height: 1.2; }
.sb-close {
    margin-left: auto; display: none; place-items: center; width: 2.25rem; height: 2.25rem;
    border: 0; border-radius: .5rem; background: transparent; color: #94a3b8; font-size: 1.125rem; cursor: pointer;
}
.sb-close:hover { background: rgb(255 255 255 / .08); color: #fff; }

.sb-nav { flex: 1 1 0%; overflow-y: auto; padding: 1rem .75rem 1.25rem; overscroll-behavior: contain; }
.sb-nav::-webkit-scrollbar { width: 6px; }
.sb-nav::-webkit-scrollbar-thumb { background: #334155; border-radius: 6px; }
.sb-group + .sb-group { margin-top: 1.25rem; }
.sb-label {
    display: flex; align-items: center; gap: .375rem;
    margin: 0 0 .375rem; padding: 0 .75rem;
    font-size: .6875rem; font-weight: 600; letter-spacing: .02em; color: #64748b;
}
.sb-label--amber { color: #fbbf24; }
.sb-link {
    position: relative; display: flex; align-items: center; gap: .75rem;
    padding: .5625rem .75rem; margin-bottom: 2px; border-radius: .625rem;
    font-size: .8125rem; font-weight: 500; line-height: 1.25; color: #cbd5e1; text-decoration: none;
    transition: background-color .15s, color .15s;
}
.sb-link i { width: 1.125rem; flex-shrink: 0; text-align: center; font-size: .875rem; color: #64748b; transition: color .15s; }
.sb-link:hover { background: rgb(255 255 255 / .06); color: #fff; }
.sb-link:hover i { color: #a5b4fc; }
.sb-link.is-active { background: rgb(99 102 241 / .2); color: #fff; font-weight: 600; }
.sb-link.is-active i { color: #a5b4fc; }
.sb-link.is-active::before {
    content: ""; position: absolute; left: -.75rem; top: .5rem; bottom: .5rem; width: 3px;
    border-radius: 0 3px 3px 0; background: #818cf8;
}
.app-sidebar :where(a, button):focus-visible { outline-color: #a5b4fc; }

.sb-foot {
    display: flex; align-items: center; gap: .75rem; flex-shrink: 0;
    padding: .875rem 1rem; background: #0b1220; border-top: 1px solid #1e293b;
}
.sb-foot-info { min-width: 0; flex: 1 1 0%; }
.sb-foot-name { margin: 0; font-size: .75rem; font-weight: 600; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-foot-sub { margin: .125rem 0 0; font-size: .6875rem; color: #94a3b8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-logout {
    display: grid; place-items: center; flex-shrink: 0; width: 2.125rem; height: 2.125rem;
    border-radius: .5rem; color: #94a3b8; font-size: .875rem; text-decoration: none; transition: background-color .15s, color .15s;
}
.sb-logout:hover { background: rgb(248 113 113 / .14); color: #fca5a5; }

/* Avatar (dipakai sidebar & header) */
.avatar {
    position: relative; display: grid; place-items: center; flex-shrink: 0; overflow: hidden;
    width: 2.25rem; height: 2.25rem; border-radius: 9999px;
    background: #4338ca; color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .02em;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* -------------------------------------------------------------- header */
.app-header {
    position: relative; z-index: 20; flex-shrink: 0;
    display: flex; align-items: center; gap: .75rem;
    min-height: var(--header-h); padding: .5rem 1rem;
    background: rgb(255 255 255 / .92); border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: saturate(1.4) blur(8px); backdrop-filter: saturate(1.4) blur(8px);
}
@media (min-width: 768px)  { .app-header { padding: .5rem 1.5rem; } }
@media (min-width: 1280px) { .app-header { padding: .5rem 2rem; } }

.hd-burger {
    display: none; place-items: center; flex-shrink: 0; width: 2.5rem; height: 2.5rem;
    margin-left: -.375rem; border: 0; border-radius: .625rem; background: transparent;
    color: #475569; font-size: 1.125rem; cursor: pointer; transition: background-color .15s;
}
.hd-burger:hover { background: #f1f5f9; }
.hd-title { min-width: 0; flex: 1 1 0%; }
.hd-title h1 {
    margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.3; color: var(--ink);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hd-sub { margin: 0; font-size: .6875rem; color: #64748b; line-height: 1.3; }
@media (min-width: 640px) { .hd-title h1 { font-size: 1.125rem; } .hd-sub { display: none; } }

.hd-right { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.hd-chip {
    display: none; align-items: center; gap: .5rem; padding: .375rem .75rem;
    background: #f8fafc; border: 1px solid var(--line); border-radius: .625rem;
    font-size: .75rem; color: #475569; white-space: nowrap;
}
.hd-chip i { color: #94a3b8; }
.hd-chip strong { color: var(--ink); font-weight: 600; }
.hd-chip small { color: #94a3b8; font-size: .6875rem; }
@media (min-width: 640px) { .hd-chip { display: inline-flex; } }

.hd-user { position: relative; }
.hd-user-btn {
    display: flex; align-items: center; gap: .625rem; padding: .25rem .5rem .25rem .25rem;
    border: 1px solid transparent; border-radius: 9999px; background: transparent; color: inherit;
    font: inherit; cursor: pointer; transition: background-color .15s, border-color .15s;
}
.hd-user-btn:hover, .hd-user-btn[aria-expanded="true"] { background: #f1f5f9; border-color: var(--line); }
.hd-user-btn .avatar { width: 2.125rem; height: 2.125rem; }
.hd-user-text { display: none; min-width: 0; text-align: left; line-height: 1.25; }
.hd-user-name { display: block; max-width: 11rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .75rem; font-weight: 600; color: var(--ink); }
.hd-user-role { display: block; font-size: .6875rem; color: #64748b; }
.hd-user-btn > .fa-chevron-down { font-size: .625rem; color: #94a3b8; transition: transform .15s; }
.hd-user-btn[aria-expanded="true"] > .fa-chevron-down { transform: rotate(180deg); }
@media (min-width: 768px) { .hd-user-text { display: block; } }

.hd-menu {
    position: absolute; right: 0; top: calc(100% + .5rem); width: 15.5rem; z-index: 30;
    background: #fff; border: 1px solid var(--line); border-radius: .875rem; padding: .375rem;
    box-shadow: 0 12px 32px -8px rgb(15 23 42 / .22), 0 2px 6px rgb(15 23 42 / .06);
    animation: menu-in .14s ease-out; transform-origin: top right;
}
.hd-menu[hidden] { display: none; }
.hd-menu-head { padding: .625rem .75rem .75rem; margin-bottom: .25rem; border-bottom: 1px solid #f1f5f9; }
.hd-menu-head p { margin: 0; }
.hd-menu-head .n { font-size: .8125rem; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.hd-menu-head .s { margin-top: .125rem; font-size: .6875rem; color: #64748b; overflow-wrap: anywhere; }
.hd-menu-item {
    display: flex; align-items: center; gap: .75rem; width: 100%; padding: .5625rem .75rem;
    border: 0; border-radius: .5rem; background: transparent; color: #334155;
    font: inherit; font-size: .8125rem; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer;
    transition: background-color .12s;
}
.hd-menu-item i { width: 1rem; text-align: center; color: #94a3b8; }
.hd-menu-item:hover { background: #f1f5f9; }
.hd-menu-item--danger { color: #b91c1c; }
.hd-menu-item--danger i { color: #f87171; }
.hd-menu-item--danger:hover { background: #fef2f2; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------- tablet & mobile */
@media (max-width: 1023.98px) {
    .app-sidebar {
        position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(18rem, 86vw);
        transform: translateX(-100%); visibility: hidden;
        transition: transform .24s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .24s;
        box-shadow: none;
    }
    .menu-open .app-sidebar {
        transform: none; visibility: visible; transition-delay: 0s, 0s;
        box-shadow: 12px 0 40px rgb(2 6 23 / .45);
    }
    .app-overlay {
        display: block; position: fixed; inset: 0; z-index: 30;
        background: rgb(15 23 42 / .55); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
        opacity: 0; pointer-events: none; transition: opacity .2s;
    }
    .menu-open .app-overlay { opacity: 1; pointer-events: auto; }
    .hd-burger, .sb-close { display: grid; }
}
#konten:focus { outline: none; }

/* ------------------------------------------------------ poles konten
   Hanya berlaku di dalam .app-content / modal, tidak menyentuh kerangka. */

/* Kartu */
.app-content .bg-white.rounded-xl:not(.shadow-2xl) {
    border-radius: .875rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / .04), 0 2px 10px -4px rgb(15 23 42 / .08);
}

/* Tabel */
.app-content table { border-collapse: collapse; }
.app-content thead th {
    font-weight: 600; font-size: .75rem; letter-spacing: 0; text-transform: none; color: #475569; vertical-align: bottom;
}
.app-content thead { background-color: #f8fafc; }
.app-content tbody tr:not([class*="bg-"]):hover { background-color: #f8fafc; }
.app-content th, .app-content td { vertical-align: middle; }
.app-content tfoot td { font-variant-numeric: tabular-nums; }
.app-content td, .app-content th { font-variant-numeric: tabular-nums; }

/* Form */
.app-content :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="hidden"], [type="submit"], [type="button"], [type="color"]), select, textarea),
.app-modal :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="hidden"], [type="submit"], [type="button"]), select, textarea) {
    border-color: #cbd5e1; border-radius: .625rem; background-color: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.app-content :is(input, select, textarea):focus,
.app-modal :is(input, select, textarea):focus {
    outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgb(99 102 241 / .18);
}
.app-content :is(input, select, textarea):disabled { background-color: #f1f5f9; color: #94a3b8; cursor: not-allowed; }
.app-content input[type="checkbox"], .app-content input[type="radio"] { accent-color: #4f46e5; }
.app-content input[type="file"] { max-width: 100%; }
.app-content label { cursor: default; }
.app-content label:has(> input:is([type="checkbox"], [type="radio"]):not(:disabled)) { cursor: pointer; }

/* Tombol */
.app-content button, .app-modal button { cursor: pointer; }
.app-content button:disabled, .app-modal button:disabled { opacity: .55; cursor: not-allowed; }
.app-content :is(button, a)[class*="bg-"] { transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s; }

/* Modal bawaan halaman */
.app-content .fixed.inset-0 { overscroll-behavior: contain; }
.app-content .fixed.inset-0 > div,
.app-modal > div {
    max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto;
    border-radius: 1rem; animation: modal-in .16s ease-out;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }

/* Petunjuk geser untuk tabel lebar di layar kecil */
.scroll-hint {
    display: none; align-items: center; gap: .375rem; margin: 0 0 .5rem;
    font-size: .6875rem; color: #64748b;
}
.scroll-hint.is-on { display: flex; }
@media (min-width: 768px) { .scroll-hint.is-on { display: none; } }
.overflow-x-auto { -webkit-overflow-scrolling: touch; }

/* ----------------------------------------------------------- mobile */
@media (max-width: 767.98px) {
    /* 16px mencegah iOS memperbesar layar saat input difokuskan */
    .app-content :is(input:not([type="checkbox"], [type="radio"], [type="file"], [type="hidden"], [type="submit"], [type="button"]), select, textarea),
    .app-modal :is(input:not([type="checkbox"], [type="radio"], [type="file"], [type="hidden"], [type="submit"], [type="button"]), select, textarea) {
        font-size: 1rem; line-height: 1.4;
    }
    .app-content :is(input:not([type="checkbox"], [type="radio"], [type="file"], [type="hidden"]), select) { min-height: 2.75rem; }
    .app-content button[class*="px-"], .app-content a[class*="px-"][class*="bg-"] { min-height: 2.5rem; }
    .app-content .p-6, .app-content .p-5 { padding: 1rem; }
    /* Tabel dengan banyak kolom digeser, bukan diperas */
    .app-content table.tbl-scroll { min-width: calc(var(--cols, 5) * 7.25rem); }
    .app-content .fixed.inset-0, .app-modal { padding: .75rem; align-items: flex-end; }
    .app-content .fixed.inset-0 > div, .app-modal > div { border-bottom-left-radius: .75rem; border-bottom-right-radius: .75rem; }
    /* Filter periode & form sebaris boleh turun baris */
    .app-content form.flex:not(.flex-col) { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
    .app-sidebar, .app-header, .app-overlay, .skip-link, .scroll-hint { display: none !important; }
    .app-shell { display: block; height: auto; overflow: visible; }
    .app-scroll { overflow: visible; }
    .app-content { max-width: none; padding: 0; }
}

/* ------------------------------------------------------ halaman login */
.login-body {
    min-height: 100vh; min-height: 100dvh; margin: 0; background: var(--ink);
    font-family: var(--font-sans); -webkit-font-smoothing: antialiased; color: #1e293b;
}
.login-wrap { display: grid; min-height: 100vh; min-height: 100dvh; }
@media (min-width: 900px) { .login-wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }

.login-panel {
    display: none; position: relative; overflow: hidden; padding: 3rem; color: #e2e8f0;
    background-color: var(--ink);
    background-image:
        radial-gradient(60rem 40rem at 0% 0%, rgb(79 70 229 / .35), transparent 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88' fill='none' stroke='white' stroke-opacity='.07'%3E%3Crect x='22' y='22' width='44' height='44'/%3E%3Crect x='22' y='22' width='44' height='44' transform='rotate(45 44 44)'/%3E%3Ccircle cx='44' cy='44' r='9'/%3E%3C/svg%3E");
}
.login-panel--admin {
    background-image:
        radial-gradient(60rem 40rem at 0% 0%, rgb(220 38 38 / .28), transparent 60%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88' fill='none' stroke='white' stroke-opacity='.07'%3E%3Crect x='22' y='22' width='44' height='44'/%3E%3Crect x='22' y='22' width='44' height='44' transform='rotate(45 44 44)'/%3E%3Ccircle cx='44' cy='44' r='9'/%3E%3C/svg%3E");
}
@media (min-width: 900px) { .login-panel { display: flex; flex-direction: column; justify-content: space-between; } }
.lp-body h2 { margin: 0 0 .75rem; font-size: 1.875rem; line-height: 1.2; font-weight: 700; color: #fff; max-width: 24rem; text-wrap: balance; }
.lp-body p { margin: 0; max-width: 24rem; font-size: .9375rem; line-height: 1.65; color: #cbd5e1; }
.login-panel small { font-size: .75rem; color: #94a3b8; }
.login-mobile-brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem; }
@media (min-width: 900px) { .login-mobile-brand { display: none; } }

.login-side { display: flex; align-items: center; justify-content: center; padding: 1.5rem 1rem; background: #bffcdd; }
@media (max-width: 899.98px) { .login-side { background: var(--ink); } }
.login-card {
    width: 100%; max-width: 26rem; padding: 2rem 1.5rem; background: #bffcdd; border-radius: 1.25rem;
    box-shadow: 0 20px 50px -20px rgb(15 23 42 / .35), 0 0 0 1px rgb(15 23 42 / .04);
}
@media (min-width: 900px) { .login-card { padding: 2.25rem 2rem; box-shadow: none; background: transparent; } }
.login-card h1 { margin: 0; font-size: 1.5rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.login-card .lead { margin: .375rem 0 0; font-size: .8125rem; color: #64748b; }

.field { display: block; }
.field + .field { margin-top: 1rem; }
.field > span.lbl { display: block; margin-bottom: .375rem; font-size: .75rem; font-weight: 600; color: #334155; }
.field-box { position: relative; display: flex; align-items: center; }
.field-box > i.lead-ico { position: absolute; left: .875rem; color: #94a3b8; font-size: .875rem; pointer-events: none; }
.field-box input {
    width: 100%; box-sizing: border-box; padding: .75rem 2.75rem .75rem 2.5rem; font: inherit; font-size: 1rem; line-height: 1.4;
    color: var(--ink); background: #fff; border: 1px solid #cbd5e1; border-radius: .75rem;
    transition: border-color .15s, box-shadow .15s;
}
.field-box input:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgb(99 102 241 / .18); }
.field-box input[aria-invalid="true"] { border-color: #f87171; }
.field-box .reveal {
    position: absolute; right: .25rem; display: grid; place-items: center; width: 2.5rem; height: 2.5rem;
    border: 0; border-radius: .625rem; background: transparent; color: #94a3b8; cursor: pointer;
}
.field-box .reveal:hover { color: #475569; background: #f1f5f9; }
.field-hint { margin: .375rem 0 0; font-size: .6875rem; color: #64748b; }

.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 100%;
    padding: .8125rem 1rem; border: 0; border-radius: .75rem; font: inherit; font-size: .875rem; font-weight: 600;
    color: #fff; background: var(--brand); cursor: pointer; transition: background-color .15s, box-shadow .15s;
    box-shadow: 0 6px 16px -6px rgb(79 70 229 / .6);
}
.btn-primary1 {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 100%;
    padding: .8125rem 1rem; border: 0; border-radius: .75rem; font: inherit; font-size: .875rem; font-weight: 600;
    color: #fff; background: var(--brand1); cursor: pointer; transition: background-color .15s, box-shadow .15s;
    box-shadow: 0 6px 16px -6px rgb(79 70 229 / .6);
}
.btn-primary:hover { background: #4338ca; }
.btn-primary--inline { width: auto; }
.btn-primary--admin { background: #dc2626; box-shadow: 0 6px 16px -6px rgb(220 38 38 / .55); }
.btn-primary--admin:hover { background: #b91c1c; }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }

.alert { display: flex; gap: .625rem; align-items: flex-start; padding: .75rem .875rem; border-radius: .75rem; font-size: .75rem; line-height: 1.5; border: 1px solid; }
.alert i { margin-top: .125rem; }
.alert--error { background: #fef2f2; border-color: #fecaca; color: #b91c1c; }
.alert--warn  { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.alert--ok    { background: #ecfdf5; border-color: #a7f3d0; color: #047857; }

/* ------------------------------------------------- halaman ganti password */
.pw-grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .pw-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem; margin-top: .5rem; }
.pw-meter i { height: .25rem; border-radius: 9999px; background: #e2e8f0; transition: background-color .2s; }
.pw-meter[data-level="1"] i:nth-child(-n+1) { background: #ef4444; }
.pw-meter[data-level="2"] i:nth-child(-n+2) { background: #f59e0b; }
.pw-meter[data-level="3"] i:nth-child(-n+3) { background: #22c55e; }
.pw-meter[data-level="4"] i { background: #16a34a; }
.pw-rules { list-style: none; padding: 0; display: grid; gap: .5rem; }
.pw-rules li { display: flex; align-items: center; gap: .625rem; font-size: .75rem; color: #64748b; transition: color .15s; }
.pw-rules li i { display: grid; place-items: center; width: 1.125rem; height: 1.125rem; border-radius: 9999px; background: #e2e8f0; color: #fff; font-size: .5625rem; transition: background-color .15s; }
.pw-rules li.ok { color: #047857; }
.pw-rules li.ok i { background: #10b981; }
