/* ══════════════════════════════════
   LEFT — BRANDING PANEL
══════════════════════════════════ */
.lp {
    flex: 1;
    min-width: 0;
    padding: 48px 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    background: linear-gradient(
        148deg,
        var(--b9) 0%,
        var(--b8) 50%,
        #1a5c8a 100%
    );
}

/* decorative blobs on left panel */
.lp::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(99, 179, 237, 0.16) 0%,
        transparent 65%
    );
    top: -100px;
    right: -100px;
    pointer-events: none;
}

.lp::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(13, 148, 136, 0.18) 0%,
        transparent 65%
    );
    bottom: -60px;
    left: -40px;
    pointer-events: none;
}

/* Container Utama */
.lp-brand {
    display: flex; /* Membuat isi berjejer ke samping */
    align-items: center; /* Membuat logo dan teks sejajar secara vertikal di tengah */
    gap: 12px; /* Jarak antara logo dan teks */
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

/* Wrapper Teks (Dinas Kominfo & Kota Pekalongan) */
.lp-brand > div {
    display: flex;
    flex-direction: column; /* Membuat teks nama dan sub tetap bertumpuk atas-bawah */
    justify-content: center;
}

/* Penyesuaian Logo */
.lp-logo {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    flex-shrink: 0; /* Mencegah logo gepeng */
    background: linear-gradient(145deg, var(--b5), var(--b9));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(43, 108, 176, 0.5);
}

.lp-logo img {
    width: 30px; /* Sesuaikan agar tidak terlalu besar di dalam kotak */
    height: auto;
    display: block;
}

/* Penyesuaian Teks */
.lp-brand-name {
    font-family: "Instrument Serif", serif;
    font-size: 18px; /* Sedikit diperbesar agar proporsional */
    color: #fff;
    line-height: 1.1; /* Rapatkan jarak antar baris */
    display: block;
}

.lp-brand-sub {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
    display: block;
}

/* hero icon */
.lp-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
}

.icon-rig {
    position: relative;
    width: 128px;
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ring 1 */
.r1 {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(99, 179, 237, 0.3);
    animation: spin 14s linear infinite;
}

.r1::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--b3);
    box-shadow: 0 0 8px var(--b3);
}

/* ring 2 */
.r2 {
    position: absolute;
    inset: 16px;
    border-radius: 50%;
    border: 1px dashed rgba(99, 179, 237, 0.2);
    animation: spin 9s linear infinite reverse;
}

.r2::after {
    content: "";
    position: absolute;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(13, 148, 136, 0.7);
}

/* ring 3 */
.r3 {
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    border: 1px solid rgba(99, 179, 237, 0.1);
    animation: spin 6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* core icon box */
.icon-core {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    z-index: 1;
    background: linear-gradient(145deg, var(--b5), var(--b9));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow:
        0 8px 28px rgba(43, 108, 176, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    animation: float 4.5s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* stats */
.lp-stats {
    display: flex;
    gap: 9px;
    position: relative;
    z-index: 2;
    margin-bottom: 0;
}

.stat {
    flex: 1;
    padding: 11px 13px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(99, 179, 237, 0.15);
    backdrop-filter: blur(6px);
}

.stat-n {
    font-family: "Instrument Serif", serif;
    font-size: 21px;
    color: #fff;
    line-height: 1;
    margin-bottom: 3px;
}

.stat-l {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.38);
}

/* tagline */
.lp-text {
    position: relative;
    z-index: 2;
}

.tagline {
    font-family: "Instrument Serif", serif;
    font-size: 25px;
    color: #fff;
    line-height: 1.38;
    margin-bottom: 10px;
}

.tagline em {
    font-style: italic;
    color: var(--b3);
}

.lp-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.48);
    line-height: 1.72;
}

/* ══════════════════════════════════
   RIGHT — FORM PANEL
══════════════════════════════════ */
.rp {
    width: 390px;
    flex-shrink: 0;
    background: #fff;
    border-left: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.rp::-webkit-scrollbar {
    display: none;
}

.rp-inner {
    padding: 46px 38px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* head */
.rp-head {
    margin-bottom: 32px;
    animation: up 0.55s 0.1s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@keyframes up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.rp-eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--b5);
    margin-bottom: 9px;
}

.rp-eyebrow::before {
    content: "";
    width: 18px;
    height: 2px;
    background: linear-gradient(90deg, var(--b5), var(--b3));
    border-radius: 2px;
    flex-shrink: 0;
}

.rp-title {
    font-family: "Instrument Serif", serif;
    font-size: 27px;
    color: var(--b9);
    line-height: 1.22;
    margin-bottom: 5px;
}

.rp-sub {
    font-size: 13px;
    color: var(--g5);
    line-height: 1.62;
}

/* form */
.lform {
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: up 0.55s 0.2s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* field */
.fg {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flbl {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--g6);
    display: flex;
    align-items: center;
    gap: 5px;
}

.flbl i {
    font-size: 12px;
    color: var(--b4);
}

.fw {
    position: relative;
}

/* left icon */
.fi {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--g4);
    pointer-events: none;
    transition: color var(--tr);
}

.fw:focus-within .fi {
    color: var(--b5);
}

/* input */
.finp {
    width: 100%;
    padding: 11px 42px 11px 40px;
    background: var(--g1);
    border: 1.5px solid var(--g2);
    border-radius: var(--r);
    font-size: 13.5px;
    font-family: "DM Sans", sans-serif;
    color: var(--g8);
    outline: none;
    transition:
        border-color var(--tr),
        background var(--tr),
        box-shadow var(--tr);
}

.finp::placeholder {
    color: var(--g4);
}

.finp:focus {
    border-color: var(--b4);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.12);
}

.finp.err {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}

/* eye button */
.eye {
    position: absolute;
    right: 11px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 5px 6px;
    border-radius: 8px;
    color: var(--g4);
    font-size: 15.5px;
    cursor: pointer;
    line-height: 1;
    transition:
        color var(--tr),
        background var(--tr);
}

.eye:hover {
    color: var(--b5);
    background: var(--b0);
}

/* focus accent line under input */
.fline {
    position: absolute;
    bottom: 0;
    left: 8%;
    right: 8%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--b4), transparent);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.fw:focus-within .fline {
    transform: scaleX(1);
}

/* error message */
.err-msg {
    display: none;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    color: #dc2626;
    animation: errPop 0.18s ease both;
}

@keyframes errPop {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* extras row */
.extras {
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: up 0.55s 0.26s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* custom checkbox */
.chk-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.chk-inp {
    display: none;
}

.chk-box {
    width: 16px;
    height: 16px;
    border-radius: 5px;
    flex-shrink: 0;
    border: 1.5px solid var(--g3);
    background: var(--g1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--tr);
}

.chk-inp:checked ~ .chk-box {
    background: var(--b5);
    border-color: var(--b5);
    box-shadow: 0 0 0 2px rgba(66, 153, 225, 0.18);
}

.chk-inp:checked ~ .chk-box::after {
    content: "\F272";
    font-family: "bootstrap-icons";
    font-size: 9.5px;
    color: #fff;
}

.chk-lbl {
    font-size: 12.5px;
    color: var(--g5);
}

.forgot {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--b6);
    text-decoration: none;
    transition: color var(--tr);
}

.forgot:hover {
    color: var(--b8);
}

/* error banner */
.banner {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--r);
    background: #fff5f5;
    border: 1.5px solid #fca5a5;
    font-size: 13px;
    color: #b91c1c;
    animation: up 0.2s ease both;
}

.banner i {
    font-size: 16px;
    flex-shrink: 0;
    color: #ef4444;
}

/* login button */
.btn-login {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 13px 20px;
    background: linear-gradient(135deg, var(--b6), var(--b9));
    border: none;
    border-radius: var(--r);
    font-size: 14px;
    font-weight: 700;
    font-family: "DM Sans", sans-serif;
    color: #fff;
    cursor: pointer;
    letter-spacing: 0.015em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(43, 108, 176, 0.3);
    transition:
        transform var(--tr-b),
        box-shadow var(--tr-b);
    animation: up 0.55s 0.32s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(43, 108, 176, 0.4);
}

.btn-login:active {
    transform: scale(0.98);
}

.btn-login i {
    font-size: 16px;
    transition: transform var(--tr-b);
}

.btn-login:hover i {
    transform: translateX(3px);
}

/* shimmer sweep */
.btn-login::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 35%,
        rgba(255, 255, 255, 0.18) 50%,
        transparent 65%
    );
    transform: translateX(-100%);
    animation: sweep 2.8s ease-in-out infinite;
}

@keyframes sweep {
    0%,
    100% {
        transform: translateX(-100%);
    }

    50% {
        transform: translateX(100%);
    }
}

/* loading */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.88;
}

.btn-login.loading .btn-txt {
    opacity: 0;
}

.btn-login.loading::after {
    animation: none;
}

.spin {
    display: none;
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    animation: rotate 0.65s linear infinite;
}

@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

.btn-login.loading .spin {
    display: block;
}

.btn-login.loading .btn-icon {
    display: none;
}

/* OR divider */
.or {
    display: flex;
    align-items: center;
    gap: 11px;
    animation: up 0.55s 0.36s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.or-line {
    flex: 1;
    height: 1px;
    background: var(--g2);
}

.or-txt {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--g4);
    white-space: nowrap;
}

/* SSO button */
.btn-sso {
    width: 100%;
    padding: 11px 18px;
    background: #fff;
    border: 1.5px solid var(--g2);
    border-radius: var(--r);
    font-size: 13px;
    font-weight: 600;
    font-family: "DM Sans", sans-serif;
    color: var(--g6);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: all var(--tr);
    animation: up 0.55s 0.4s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.btn-sso:hover {
    background: var(--b0);
    border-color: var(--b3);
    color: var(--b7);
    box-shadow: 0 2px 12px rgba(43, 108, 176, 0.1);
}

.btn-sso i {
    font-size: 16px;
    color: var(--b5);
}

/* ══════════════════════════════════
   RESPONSIVE — LOGIN FORM
══════════════════════════════════ */
@media (max-width: 780px) {
    .lform {
        gap: 14px;
    }

    .icon-rig {
        width: 100px;
        height: 100px;
    }

    .icon-core {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        font-size: 24px;
    }

    .r2 {
        inset: 12px;
    }

    .r3 {
        inset: 22px;
    }
}

@media (max-width: 460px) {
    .lform {
        gap: 12px;
    }

    .fg {
        gap: 4px;
    }

    .flbl {
        font-size: 10.5px;
    }

    .finp {
        padding: 10px 38px 10px 36px;
        font-size: 13px;
    }

    .fi {
        font-size: 14px;
        left: 12px;
    }

    .eye {
        right: 8px;
        font-size: 14px;
    }

    .btn-login {
        padding: 12px 16px;
        font-size: 13px;
    }

    .btn-sso {
        padding: 10px 14px;
        font-size: 12.5px;
    }

    .extras {
        flex-wrap: wrap;
        gap: 8px;
    }

    .chk-lbl {
        font-size: 12px;
    }

    .forgot {
        font-size: 12px;
    }

    .or {
        gap: 8px;
    }

    .or-txt {
        font-size: 10px;
    }

    .banner {
        padding: 9px 12px;
        font-size: 12px;
        gap: 8px;
    }
}

@media (max-width: 360px) {
    .finp {
        padding: 9px 36px 9px 34px;
        font-size: 12.5px;
    }

    .btn-login {
        padding: 11px 14px;
        font-size: 12.5px;
    }

    .btn-sso {
        padding: 9px 12px;
        font-size: 12px;
    }
}
