*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Palette based on Way Kanan branding */
    --navy: #0A1B2E;
    --navy2: #0D2B45;
    --teal: #1A7FA8;
    --teal2: #3BB9E0;
    --gold: #C9A227;
    --gold2: #E6BC3A;
    --wk-blue: #07273f;
    --white: #FFFFFF;
    --light: #E8F4F8;
    --muted: #8FAFC4;
    --border: rgba(255, 255, 255, 0.14);
}

html,
body {
    height: 90%;
    font-family: 'Inter', sans-serif;
    background: #fff;
}

/* WRAPPER  */
.page {
    display: flex;
    min-height: 90vh;
    margin: 2%;
    background: #fff;
    -webkit-box-shadow: 0px 3px 15px 5px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 3px 15px 5px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 3px 15px 5px rgba(0, 0, 0, 0.75);
    -webkit-border-top-left-radius: 30px;
    -webkit-border-bottom-left-radius: 30px;
    -moz-border-radius-topleft: 30px;
    -moz-border-radius-bottomleft: 30px;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

/* ------------------
       LEFT - LOGIN (RICH KINERJA THEME)
    ------------------ */
.left {
    flex: 0 0 32%;
    min-width: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px 40px;
    background: linear-gradient(160deg, var(--wk-blue) 0%, #0D2B45 40%, #0A1B2E 100%);
    position: relative;
    z-index: 2;
    overflow: hidden;
    -webkit-border-top-left-radius: 30px;
    -webkit-border-bottom-left-radius: 30px;
    -moz-border-radius-topleft: 30px;
    -moz-border-radius-bottomleft: 30px;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

/* Radial glows overlay untuk kedalaman warna */
.left::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 90%, rgba(59, 185, 224, .22) 0%, transparent 60%),
        radial-gradient(ellipse at 90% 15%, rgba(201, 162, 39, .15) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(190, 30, 45, .2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

/* MULTI-PATTERN DYNAMIC BACKGROUND */
.kinerja-bg-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.45;
    /* Sedikit dinaikkan agar pola baru lebih terlihat estetik */
}

.kinerja-bg-particles span {
    position: absolute;
    bottom: -60px;
    display: block;
    animation: raiseUp 14s linear infinite;
}

/* 1. Pola Panah / Tren Akuntabilitas Naik */
.kinerja-bg-particles span.arrow {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 18px solid rgba(230, 188, 58, 0.25);
    /* Emas */
}

/* 2. Pola Lingkaran Target Capaian (Target Ring) */
.kinerja-bg-particles span.target-ring {
    width: 24px;
    height: 24px;
    border: 2px dashed rgba(59, 185, 224, 0.4);
    /* Teal */
    border-radius: 50%;
    background: transparent;
}

.kinerja-bg-particles span.target-ring::after {
    content: '';
    position: absolute;
    inset: 6px;
    background: rgba(59, 185, 224, 0.2);
    border-radius: 50%;
}

/* 3. Pola Kotak Data Transparansi (Red Square) */
.kinerja-bg-particles span.red-square {
    width: 16px;
    height: 16px;
    background: rgba(190, 30, 45, 0.35);
    /* Merah Way Kanan */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* 4. Pola Garis Horizontal Denyut Kinerja Digital (Network Pulse) */
.kinerja-bg-particles span.network-pulse {
    width: 35px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

/* Variasi Posisi, Animasi, Ukuran, dan Rotasi agar Pola Terdistribusi Menarik */
.kinerja-bg-particles span:nth-child(1) {
    left: 8%;
    animation-duration: 16s;
    animation-delay: 0s;
    transform: scale(1.2);
}

.kinerja-bg-particles span:nth-child(2) {
    left: 22%;
    animation-duration: 10s;
    animation-delay: 2.5s;
}

.kinerja-bg-particles span:nth-child(3) {
    left: 40%;
    animation-duration: 18s;
    animation-delay: 1s;
    transform: scale(0.9);
}

.kinerja-bg-particles span:nth-child(4) {
    left: 55%;
    animation-duration: 12s;
    animation-delay: 4s;
}

.kinerja-bg-particles span:nth-child(5) {
    left: 70%;
    animation-duration: 15s;
    animation-delay: 1.5s;
    transform: scale(1.1);
}

.kinerja-bg-particles span:nth-child(6) {
    left: 88%;
    animation-duration: 11s;
    animation-delay: 5s;
}

.kinerja-bg-particles span:nth-child(7) {
    left: 33%;
    animation-duration: 17s;
    animation-delay: 7s;
}

.kinerja-bg-particles span:nth-child(8) {
    left: 78%;
    animation-duration: 13s;
    animation-delay: 3s;
    transform: scale(0.8);
}

.kinerja-bg-particles span:nth-child(9) {
    left: 15%;
    animation-duration: 19s;
    animation-delay: 5.5s;
}

.kinerja-bg-particles span:nth-child(10) {
    left: 63%;
    animation-duration: 14s;
    animation-delay: 8s;
}

@keyframes raiseUp {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    15% {
        opacity: 1;
    }

    85% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-95vh) rotate(360deg);
        opacity: 0;
    }
}

.login-box {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 3;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 36px;
    gap: 10px;
}

.brand-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal2) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 8px 32px rgba(26, 110, 142, .45);
    position: relative;
    overflow: hidden;
}

.brand-logo::after {
    content: '🛡';
    font-size: 30px;
    filter: brightness(1.2);
}

.brand h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .5px;
    color: var(--white);
}

.brand h1 span {
    color: var(--gold);
}

.period-badge {
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold2) 100%);
    color: var(--navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    padding: 3px 14px;
    border-radius: 20px;
    text-transform: uppercase;
}

.brand-sub {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: .3px;
}

/* FORM  */
.form-group {
    margin-bottom: 16px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .8px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.input-wrap {
    position: relative;
}

.input-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--muted);
    pointer-events: none;
}

.input-wrap svg.right-icon {
    left: -4px
}

.form-input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    background: rgba(255, 255, 255, .06);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--white);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.form-input.has-toggle {
    padding-right: 44px;
}

.form-input::placeholder {
    color: var(--muted);
}

.form-input:focus {
    border-color: var(--teal2);
    background: rgba(255, 255, 255, .09);
    box-shadow: 0 0 0 3px rgba(27, 138, 175, .18);
}

.form-input.captcha-field:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, .18);
}

.captcha-hint {
    font-size: 11px;
    color: var(--muted);
    margin-top: 5px;
}

/* BUTTONS  */
.btn-row {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    flex: 1;
    padding: 13px 20px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .15s, box-shadow .15s, filter .15s;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal2) 100%);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(26, 110, 142, .4);
}

.btn-primary:hover {
    box-shadow: 0 10px 28px rgba(26, 110, 142, .55);
    filter: brightness(1.07);
}

.btn-secondary {
    background: rgba(255, 255, 255, .07);
    color: var(--white);
    border: 1.5px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, .12);
}

.footer-text {
    text-align: center;
    margin-top: 28px;
    font-size: 12px;
    color: var(--muted);
    line-height: 1.6;
}

/* ------------------
       RIGHT - IMAGE PANEL
    ------------------ */
.right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-image: url('../images/e-saway.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
}

.right::before,
.right::after {
    content: none;
}

.panel-inner {
    display: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .page {
        flex-direction: column;
        -webkit-border-top-left-radius: 0px;
        -webkit-border-bottom-left-radius: 0px;
        -moz-border-radius-topleft: 0px;
        -moz-border-radius-bottomleft: 0px;
        border-top-left-radius: 0px;
        border-bottom-left-radius: 0px;
    }

    .left {
        flex: none;
        min-width: 0;
        width: 100%;
        padding: 36px 24px;
        order: 1;
        -webkit-border-top-left-radius: 0px;
        -webkit-border-bottom-left-radius: 0px;
        -moz-border-radius-topleft: 0px;
        -moz-border-radius-bottomleft: 0px;
        border-top-left-radius: 0px;
        border-bottom-left-radius: 0px;
    }

    .right {
        order: 2;
        width: 100%;
        min-height: 300px;
        /* padding: 16px; */
    }
}

@media (max-width: 480px) {
    .left {
        padding: 28px 16px;
        -webkit-border-top-left-radius: 0px;
        -webkit-border-bottom-left-radius: 0px;
        -moz-border-radius-topleft: 0px;
        -moz-border-radius-bottomleft: 0px;
        border-top-left-radius: 0px;
        border-bottom-left-radius: 0px;
    }

    .right {
        padding: 12px;
        min-height: 240px;
    }
}

.pw-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    padding: 4px;
    line-height: 0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s, background .15s;
}

.pw-toggle:hover {
    color: var(--white);
    background: rgba(255, 255, 255, .08);
}

.ui-pnotify {
    top: 25px;
    right: 25px;
    position: absolute;
    height: auto;
    /* Ensures notices are above everything */

    z-index: 9999;
}

/* Hides position: fixed from IE6 */

html>body>.ui-pnotify {
    position: fixed;
}

.ui-pnotify .ui-pnotify-shadow {
    -webkit-box-shadow: 0px 2px 10px rgba(50, 50, 50, 0.5);
    -moz-box-shadow: 0px 2px 10px rgba(50, 50, 50, 0.5);
    box-shadow: 0px 2px 10px rgba(50, 50, 50, 0.5);
}

.ui-pnotify-container {
    background-position: 0 0;
    padding: .8em;
    height: 100%;
    margin: 0;
}

.ui-pnotify-sharp {
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}

.ui-pnotify-title {
    display: block;
    margin-bottom: .4em;
    margin-top: 0;
}

.ui-pnotify-text {
    display: block;
}

.ui-pnotify-icon,
.ui-pnotify-icon span {
    display: block;
    float: left;
    margin-right: .2em;
}

/* Alternate stack initial positioning. */

.ui-pnotify.stack-topleft,
.ui-pnotify.stack-bottomleft {
    left: 25px;
    right: auto;
}

.ui-pnotify.stack-bottomright,
.ui-pnotify.stack-bottomleft {
    bottom: 25px;
    top: auto;
}

.ui-pnotify-closer,
.ui-pnotify-sticker {
    float: right;
    margin-left: .2em;
}

/* theming */

.alert-success {
    color: #ffffff;
    background-color: rgba(38, 185, 154, 0.88);
    border-color: rgba(38, 185, 154, 0.88);
}

.alert-info {
    color: #E9EDEF;
    background-color: rgba(52, 152, 219, 0.88);
    border-color: rgba(52, 152, 219, 0.88);
}

.alert-warning {
    color: #E9EDEF;
    background-color: rgba(243, 156, 18, 0.88);
    border-color: rgba(243, 156, 18, 0.88);
}

.alert-danger,
.alert-error {
    color: #E9EDEF;
    background-color: rgba(231, 76, 60, 0.88);
    border-color: rgba(231, 76, 60, 0.88);
}

.alert-dark,
.btn-dark {
    color: #E9EDEF;
    background-color: rgba(52, 73, 94, 0.88);
    border-color: rgba(52, 73, 94, 0.88);
}

.btn-dark:hover {
    color: #F7F7F7;
}