/* Halaman depan WBS (/ dan /masuk). Pola tampilan mengikuti login admin.nbagroup.co.id */
* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #ffffff;
    color: #22301f;
    font-family: "Plus Jakarta Sans", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 3px solid rgba(239, 108, 0, .45);
    outline-offset: 2px;
}

.lp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.lp {
    display: flex;
    min-height: 100vh;
}

/* ---------- Kiri: pilihan / form masuk ---------- */
.lp-panel {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 40px 24px;
}

.lp-box {
    width: 100%;
    max-width: 410px;
}

.lp-logo {
    display: block;
    height: 44px;
    margin-bottom: 36px;
}

.lp-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    padding: 5px 11px;
    border: 1px solid #ffe2cc;
    border-radius: 30px;
    background: #fff4ec;
    color: #c25600;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
}

.lp h1 {
    margin: 0;
    color: #1c2a1a;
    font-family: "Sora", sans-serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
}

.lp-intro {
    margin: 9px 0 0;
    color: #7c8a78;
    font-size: 14px;
    line-height: 1.5;
}

.lp-choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}

.lp-choice {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #e0e5d9;
    border-radius: 14px;
    background: #ffffff;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.lp-choice:hover {
    border-color: #ef6c00;
    box-shadow: 0 8px 22px rgba(239, 108, 0, .14);
    transform: translateY(-1px);
}

.lp-choice__icon {
    display: grid;
    flex: 0 0 44px;
    place-items: center;
    height: 44px;
    border-radius: 12px;
    background: #fff4ec;
    color: #ef6c00;
    font-size: 18px;
}

.lp-choice--team .lp-choice__icon {
    background: #f1f4ee;
    color: #46563f;
}

.lp-choice__text {
    flex: 1;
    min-width: 0;
}

.lp-choice__title {
    display: block;
    color: #1c2a1a;
    font-size: 15.5px;
    font-weight: 700;
}

.lp-choice__desc {
    display: block;
    margin-top: 3px;
    color: #7c8a78;
    font-size: 13px;
    line-height: 1.45;
}

.lp-choice__go {
    color: #b9c3b3;
    font-size: 13px;
}

.lp-choice:hover .lp-choice__go {
    color: #ef6c00;
}

.lp-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    color: #7c8a78;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.lp-back:hover {
    color: #ef6c00;
}

#lp-login .lp-badge {
    display: flex;
    width: max-content;
}

.lp-alert {
    display: flex;
    gap: 9px;
    margin: 20px 0 0;
    padding: 10px 12px;
    border: 1px solid #cfe0f1;
    border-radius: 9px;
    background: #eef5fc;
    color: #1d4f80;
    font-size: 13px;
    line-height: 1.45;
}

.lp-alert i {
    margin-top: 2px;
}

.lp-alert--error {
    border-color: #fecaca;
    background: #fee2e2;
    color: #991b1b;
}

.lp-form {
    display: flex;
    flex-direction: column;
    gap: 17px;
    margin-top: 28px;
}

.lp-label {
    display: block;
    margin-bottom: 7px;
    color: #46563f;
    font-size: 12.5px;
    font-weight: 700;
}

.lp-input {
    position: relative;
    display: flex;
    align-items: center;
}

.lp-input > i {
    position: absolute;
    left: 15px;
    color: #9aa896;
    font-size: 14px;
    pointer-events: none;
}

.lp-input input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    border: 1px solid #e0e5d9;
    border-radius: 11px;
    outline: none;
    background: #f8faf6;
    color: #22301f;
    font: inherit;
    font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.lp-input input[type="password"],
.lp-input input#password {
    padding-right: 46px;
}

.lp-input input:focus {
    border-color: #ef6c00;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(239, 108, 0, .13);
}

.lp-eye {
    position: absolute;
    right: 6px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #9aa896;
    cursor: pointer;
}

.lp-eye:hover {
    color: #ef6c00;
}

.lp-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 50px;
    margin-top: 5px;
    border: 0;
    border-radius: 12px;
    background: #ef6c00;
    color: #ffffff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease;
}

.lp-submit:hover {
    background: #e16400;
    box-shadow: 0 10px 24px rgba(239, 108, 0, .32);
}

/* Sedang memeriksa (lihat setBusy di admin.js): warna tetap, tidak bisa diklik dua kali */
.lp-submit:disabled {
    background: #ef6c00;
    box-shadow: none;
    cursor: progress;
}

.lp-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    color: #b9c3b3;
    font-size: 11.5px;
    font-weight: 600;
}

.lp-divider::before,
.lp-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #eceee8;
}

.lp-support {
    margin: 18px 0 0;
    color: #9aa896;
    font-size: 12.5px;
    line-height: 1.55;
    text-align: center;
}

.lp-support strong {
    color: #46563f;
}

/* ---------- Kanan: panel oranye ---------- */
.lp-hero {
    position: relative;
    display: flex;
    flex: none;
    flex-direction: column;
    justify-content: space-between;
    width: 46%;
    max-width: 620px;
    overflow: hidden;
    padding: 54px 56px;
    background: linear-gradient(150deg, #ff8a2b 0%, #ef6c00 52%, #d35e00 100%);
    color: #ffffff;
}

.lp-ring {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    pointer-events: none;
}

.lp-ring--a {
    top: -170px;
    right: -170px;
    width: 460px;
    height: 460px;
}

.lp-ring--b {
    bottom: -150px;
    left: -90px;
    width: 340px;
    height: 340px;
}

.lp-hero__brand {
    position: relative;
    font-family: "Sora", sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.lp-hero__brand small {
    display: block;
    margin-top: 2px;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    opacity: .85;
}

.lp-hero__body {
    position: relative;
}

.lp-hero h2 {
    margin: 0;
    font-family: "Sora", sans-serif;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.17;
}

.lp-hero p {
    max-width: 440px;
    margin: 18px 0 0;
    font-size: 14.5px;
    line-height: 1.6;
    opacity: .92;
}

.lp-facts {
    display: flex;
    gap: 26px;
    margin-top: 34px;
}

.lp-fact {
    padding-left: 26px;
    border-left: 1px solid rgba(255, 255, 255, .3);
}

.lp-fact:first-child {
    padding-left: 0;
    border-left: 0;
}

/* Ikon (atau angka 24/7) di atas, deskripsi di bawah; tingginya disamakan */
.lp-fact > i,
.lp-fact > strong {
    display: block;
    font-size: 24px;
    line-height: 1;
}

.lp-fact > strong {
    font-family: "Sora", sans-serif;
    font-weight: 800;
    white-space: nowrap;
}

.lp-fact span {
    display: block;
    margin-top: 10px;
    font-size: 12.5px;
    font-weight: 600;
    opacity: .9;
}

.lp-hero__foot {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 12.5px;
    font-weight: 600;
    opacity: .92;
}

/* ---------- Halaman tidak ditemukan (404) ---------- */
.lp-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-height: 100vh;
    padding: 40px 20px;
    background: radial-gradient(circle at 50% 0%, #fff4ec 0, #ffffff 55%);
    text-align: center;
}

.lp-error__box {
    width: 100%;
    max-width: 460px;
}

.lp-error__logo {
    margin: 0 auto 30px;
}

.lp-error__code {
    margin: 0 0 6px;
    background: linear-gradient(150deg, #ff8a2b 0%, #ef6c00 52%, #d35e00 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: "Sora", sans-serif;
    font-size: 96px;
    font-weight: 800;
    line-height: 1;
}

.lp-error h1 {
    margin: 0;
    color: #1c2a1a;
    font-family: "Sora", sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
}

.lp-error__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}

.lp-error__btn {
    width: auto;
    padding: 0 26px;
    text-decoration: none;
}

.lp-error__link {
    color: #46563f;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.lp-error__link:hover {
    color: #ef6c00;
}

.lp-error__debug {
    margin: 28px 0 0;
    padding: 10px 12px;
    border: 1px dashed #e0e5d9;
    border-radius: 9px;
    color: #7c8a78;
    font-size: 12.5px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.lp-error__foot {
    margin: 0;
    color: #b9c3b3;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 480px) {
    .lp-error__code {
        font-size: 76px;
    }

    .lp-error h1 {
        font-size: 24px;
    }
}

/* Layar menengah: panel oranye lebih sempit, keterangan dirapatkan */
@media (max-width: 1200px) {
    .lp-hero {
        padding: 48px 40px;
    }

    .lp-facts {
        gap: 18px;
    }

    .lp-fact {
        padding-left: 18px;
    }

    .lp-fact > i,
    .lp-fact > strong {
        font-size: 21px;
    }
}

/* ---------- Layar kecil: panel oranye disembunyikan ---------- */
@media (max-width: 900px) {
    .lp-hero {
        display: none;
    }

    .lp-panel {
        align-items: flex-start;
        padding: 28px 20px;
    }

    .lp-logo {
        height: 38px;
        margin-bottom: 28px;
    }

    .lp h1 {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-choice,
    .lp-input input,
    .lp-submit {
        transition: none;
    }

    .lp-choice:hover {
        transform: none;
    }
}
