:root {
    --biru: #0F2A5C;
    --emas: #F4B71A;
    --emas2: #D99E0B;
    --latar: #F6F7FB;
    --abu: #4B5563;
    --garis: #8A94A6;
    --merah: #B42318;
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 24px;
    display: grid;
    place-items: center;
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--biru);
    background: var(--latar);
}

/* ---------- kartu login ---------- */
.kartu {
    width: 100%;
    max-width: 400px;
    padding: 32px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(15, 42, 92, 0.08);
}

.kepala {
    margin-bottom: 24px;
    text-align: center;
}

.logo {
    display: block;
    height: 44px;
    margin: 0 auto 8px;
}

.nama-web {
    font-size: 16px;
    font-weight: 700;
}

h1 {
    margin: 0 0 4px;
    font-size: 26px;
    font-weight: 700;
}

.sub {
    margin: 0 0 20px;
    font-size: 14px;
    color: var(--abu);
}

label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 600;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    height: 46px;
    margin-bottom: 16px;
    padding: 0 14px;
    font: inherit;
    font-size: 15px;
    color: var(--biru);
    background: #FFFFFF;
    border: 1px solid var(--garis);
    border-radius: 10px;
}

input::placeholder {
    color: #6B7280;
}

input:focus {
    outline: none;
    border-color: var(--emas);
    box-shadow: 0 0 0 2px var(--emas);
}

.kotak-pw {
    position: relative;
}

.kotak-pw input {
    padding-right: 48px;
}

.mata {
    position: absolute;
    top: 3px;
    right: 4px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: none;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
}

.mata:hover {
    background: var(--latar);
}

.mata img {
    width: 20px;
    height: 20px;
}

/* garis coret di atas ikon mata, muncul saat password terlihat */
.mata::after {
    content: "";
    position: absolute;
    top: 19px;
    left: 9px;
    width: 22px;
    height: 2px;
    background: var(--abu);
    box-shadow: 0 0 0 1.5px #FFFFFF;
    border-radius: 2px;
    transform: rotate(-45deg);
    opacity: 0;
}

.mata.lihat::after {
    opacity: 1;
}

.tombol {
    width: 100%;
    height: 46px;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    color: var(--biru);
    background: var(--emas);
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.tombol:hover {
    background: var(--emas2);
}

.tombol:focus-visible {
    outline: 3px solid var(--biru);
    outline-offset: 2px;
}

.tombol:disabled {
    color: #6B7280;
    background: #E5E7EB;
    cursor: not-allowed;
}

.lupa {
    margin: 18px 0 0;
    padding-bottom: 18px;
    text-align: center;
    font-size: 13px;
    color: var(--abu);
    border-bottom: 1px solid #E5E9F0;
}

a,
.tautan {
    color: var(--biru);
    font-weight: 700;
    text-decoration: underline;
}

.tautan {
    padding: 0;
    font: inherit;
    font-size: inherit;
    font-weight: 700;
    background: none;
    border: 0;
    cursor: pointer;
}

.daftar {
    margin-top: 18px;
    text-align: center;
    font-size: 12.5px;
    color: var(--abu);
}

.daftar p {
    margin: 0 0 4px;
}

.pesan {
    margin-bottom: 16px;
    padding: 11px 14px;
    font-size: 13.5px;
    color: var(--merah);
    background: #FEF3F2;
    border: 1px solid #FDA29B;
    border-radius: 10px;
}

/* ---------- pop-up buat akun ---------- */
.latar {
    position: fixed;
    inset: 0;
    z-index: 10;
    padding: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 42, 92, 0.6);
}

.latar.buka {
    display: flex;
}

.modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 100%;
    overflow-y: auto;
    padding: 28px;
    background: #FFFFFF;
    border-radius: 16px;
}

.modal h2 {
    margin: 0 0 4px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 800;
}

.tutup {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    font-size: 22px;
    line-height: 1;
    color: var(--abu);
    background: #EEF0F5;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.tutup:hover {
    background: #E0E4EC;
}

.pilihan-baris {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.pilihan {
    position: relative;
    flex: 1;
    margin: 0;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 400;
    background: #FFFFFF;
    border: 1.5px solid #E1E5EE;
    border-radius: 12px;
    cursor: pointer;
}

.pilihan input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pilihan img {
    width: 22px;
    height: 22px;
    margin-bottom: 4px;
}

.pilihan strong {
    font-size: 15px;
}

.pilihan span {
    font-size: 12px;
    line-height: 1.4;
    color: var(--abu);
}

.pilihan:has(input:checked) {
    background: #F8F9FC;
    border-color: var(--emas);
}

.pilihan:has(input:checked)::after {
    content: "\2713";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--biru);
    background: var(--emas);
    border-radius: 50%;
}

.pilihan:has(input:focus-visible) {
    outline: 3px solid var(--biru);
    outline-offset: 2px;
}

.kuota {
    margin-bottom: 16px;
    padding: 14px;
    background: #F4F6FA;
    border-radius: 12px;
}

.kuota-atas {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
}

.kuota-atas small {
    font-size: 12px;
    color: var(--abu);
}

.bar {
    height: 6px;
    overflow: hidden;
    background: #DDE2EC;
    border-radius: 3px;
}

.bar-isi {
    height: 100%;
    background: var(--emas);
    border-radius: 3px;
}

.jam {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
    color: var(--abu);
}

.jam img {
    width: 14px;
    height: 14px;
}

.peringatan {
    margin: 0 0 16px;
    padding: 10px 12px;
    font-size: 13px;
    color: var(--merah);
    background: #FEF3F2;
    border-radius: 10px;
}

.modal .tombol {
    color: #FFFFFF;
    background: var(--biru);
}

.modal .tombol:hover {
    background: #0A1D42;
}

.modal .tombol:disabled {
    color: #6B7280;
    background: #E5E7EB;
}

.batal {
    display: block;
    margin: 12px auto 0;
    padding: 6px 12px;
    font: inherit;
    font-size: 14px;
    color: var(--abu);
    background: none;
    border: 0;
    cursor: pointer;
}

.batal:hover {
    color: var(--biru);
}

@media (max-width: 480px) {
    .kartu {
        padding: 24px 20px;
    }

    .modal {
        padding: 22px 18px;
    }

    .pilihan-baris {
        flex-direction: column;
    }
}

.pesan-berhasil {
    margin-bottom: 18px;
    padding: 11px 14px;
    border-radius: 10px;
    background: #E7F5EC;
    color: #1F6B42;
    font-size: 13.5px;
    line-height: 1.45;
}