/* =====================================================================
   SIGAP KSR - Gaya halaman masuk
   Palet diambil dari lambang KSR PMI Unit Politeknik Statistika STIS.
   ===================================================================== */

:root {
    --merah: #c0343d;
    --merah-tua: #6f1d23;
    --merah-pekat: #4d1418;
    --merah-muda: #e79aa0;
    --putih: #ffffff;
    --tinta: #23252b;
    --tinta-samar: #6b7280;
    --lengkung: 12px;
}

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

body.laman-masuk {
    position: relative;
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 3rem 1.5rem;
    overflow-x: hidden;
    font-family: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    color: var(--tinta);
    background-color: var(--merah-tua);
    background-image: radial-gradient(120% 100% at 78% 12%, #a02a33 0%, var(--merah-tua) 45%, var(--merah-pekat) 100%);
    -webkit-font-smoothing: antialiased;
}

/* ------------------------------ Latar gelembung -------------------- */

.bokeh {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.gelembung {
    position: absolute;
    display: block;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.045);
}

.g1 { width: 26rem; height: 26rem; top: -8rem; left: -7rem; background-color: rgba(255, 255, 255, 0.03); }
.g2 { width: 9rem;  height: 9rem;  top: 12%;  left: 6%; }
.g3 { width: 4rem;  height: 4rem;  top: 26%;  left: 2%; }
.g4 { width: 20rem; height: 20rem; bottom: -6rem; right: -4rem; background-color: rgba(255, 255, 255, 0.035); }
.g5 { width: 7rem;  height: 7rem;  bottom: 14%; right: 12%; }
.g6 { width: 3.5rem; height: 3.5rem; bottom: 8%; left: 18%; }

/* ------------------------------ Kartu utama ------------------------ */

.kartu {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 57fr) minmax(0, 43fr);
    width: min(64rem, 100%);
    min-height: 40rem;
    background-color: var(--merah);
    border-radius: 26px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
    overflow: hidden;
}

/* Lengkung organik yang memisahkan sisi putih dan sisi merah. */
.ombak {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ------------------------------ Sisi kiri: merek ------------------- */

.sisi-merek {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 2.5rem 2rem;
}

.merek-isi {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-align: center;
}

.noda {
    position: absolute;
    display: block;
    z-index: -1;
}

.noda-a {
    width: 21rem;
    height: 19rem;
    background-color: #f6e7e8;
    border-radius: 48% 52% 62% 38% / 54% 44% 56% 46%;
    transform: translate(-1rem, -1.5rem);
}

.noda-b {
    width: 15rem;
    height: 14rem;
    background-color: #fbf1f2;
    border-radius: 58% 42% 40% 60% / 42% 58% 42% 58%;
    transform: translate(4rem, 3rem);
}

.merek-logo {
    width: 11rem;
    max-width: 60%;
    height: auto;
    margin-bottom: 1.5rem;
}

.merek-judul {
    margin: 0 0 0.6rem;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--merah);
}

.merek-teks {
    max-width: 24rem;
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--tinta-samar);
}

.merek-kaki {
    position: relative;
    margin: 0;
    font-size: 0.75rem;
    line-height: 1.6;
    color: #9aa0a8;
}

/* ------------------------------ Sisi kanan: formulir --------------- */

.sisi-formulir {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center end;
    padding: 3rem 2.75rem;
    color: var(--putih);
}

.formulir-bungkus {
    width: 100%;
    max-width: 20rem;
}

.formulir-judul {
    margin: 0 0 1.5rem;
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--putih);
}

.pesan-galat {
    margin: 0 0 1.25rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.8438rem;
    line-height: 1.5;
    color: #ffe9ea;
    background-color: rgba(0, 0, 0, 0.22);
    border-left: 3px solid #ffd7d9;
    border-radius: 0 8px 8px 0;
}

.bidang {
    margin-bottom: 1rem;
}

.laman-masuk .form-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.laman-masuk .form-control {
    display: block;
    width: 100%;
    height: 2.875rem;
    padding: 0 1rem;
    font-size: 0.9375rem;
    color: var(--putih);
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid transparent;
    border-radius: 10px;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.laman-masuk .form-control::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.laman-masuk .form-control:focus {
    color: var(--putih);
    background-color: rgba(0, 0, 0, 0.28);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: none;
}

.laman-masuk .form-control.bidang-salah {
    border-color: #ffd7d9;
}

.kotak-sandi {
    position: relative;
    display: block;
}

.kotak-sandi .form-control {
    padding-right: 5.25rem;
}

.tombol-lihat {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    padding: 0.3rem 0.55rem;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    background: none;
    border: 0;
    border-radius: 6px;
    transform: translateY(-50%);
    cursor: pointer;
}

.tombol-lihat:hover {
    background-color: rgba(0, 0, 0, 0.2);
    color: var(--putih);
}

.catatan-bidang,
.catatan-capslock {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.7813rem;
    line-height: 1.4;
    color: #ffd7d9;
}

.catatan-bidang:empty {
    display: none;
}

.catatan-capslock {
    color: #ffe6a8;
}

.catatan-capslock[hidden] {
    display: none;
}

.baris-opsi {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: space-between;
    margin: 0.75rem 0 1.5rem;
    font-size: 0.8125rem;
}

.laman-masuk .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: auto;
    padding-left: 0;
    margin-bottom: 0;
}

.laman-masuk .form-check-input {
    float: none;
    margin: 0;
    width: 1rem;
    height: 1rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.45);
    cursor: pointer;
}

.laman-masuk .form-check-input:checked {
    background-color: var(--putih);
    border-color: var(--putih);
}

.laman-masuk .form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23c0343d' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3E%3C/svg%3E");
}

.laman-masuk .form-check-input:focus {
    border-color: var(--putih);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.laman-masuk .form-check-label {
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
}

.tautan-bantuan {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
}

.tautan-bantuan:hover {
    color: var(--putih);
}

.laman-masuk .tombol-masuk {
    display: block;
    width: 100%;
    height: 2.875rem;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #661a1f;
    background-color: var(--merah-muda);
    border: 0;
    border-radius: 999px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.laman-masuk .tombol-masuk:hover {
    background-color: #f2b3b8;
    color: #661a1f;
}

.laman-masuk .tombol-masuk:active {
    transform: translateY(1px);
}

.laman-masuk .tombol-masuk:disabled {
    background-color: rgba(255, 255, 255, 0.4);
    color: #7e3b3f;
    box-shadow: none;
}

.formulir-kaki {
    margin: 1.25rem 0 0;
    line-height: 1.9;
    font-size: 0.8125rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.82);
}

.formulir-kaki a {
    color: var(--putih);
    font-weight: 600;
    text-decoration: underline;
}


/* ------------------------------ Pesan berhasil --------------------- */

.pesan-sukses {
    margin: 0 0 1.25rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.8438rem;
    line-height: 1.5;
    color: #eafaf1;
    background-color: rgba(0, 0, 0, 0.2);
    border-left: 3px solid #9ee7c0;
    border-radius: 0 8px 8px 0;
}

.pesan-galat ul {
    margin: 0;
    padding-left: 1.1rem;
}

.pesan-galat li + li {
    margin-top: 0.25rem;
}

/* ------------------------------ Halaman buat akun ------------------ */

.kartu-daftar {
    min-height: 46rem;
}

.label-opsional {
    margin-left: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
}

.catatan-bidang.catatan-baik {
    color: #b6f0d2;
}

.ukur-sandi {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.ukur-sandi[hidden] {
    display: none;
}

.ukur-batang {
    flex: 1;
    height: 5px;
    background-color: rgba(0, 0, 0, 0.25);
    border-radius: 999px;
    overflow: hidden;
}

.ukur-isi {
    display: block;
    width: 20%;
    height: 100%;
    background-color: #ffb3b8;
    border-radius: 999px;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.ukur-isi[data-skor="2"] { background-color: #ffd88a; }
.ukur-isi[data-skor="3"] { background-color: #c8ec9f; }
.ukur-isi[data-skor="4"] { background-color: #9ee7c0; }

.ukur-teks {
    min-width: 5.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

/* ------------------------------ Fokus papan ketik ------------------ */

.laman-masuk a:focus-visible,
.laman-masuk button:focus-visible {
    outline: 2px solid var(--putih);
    outline-offset: 2px;
}

.sisi-merek a:focus-visible {
    outline-color: var(--merah);
}

/* ------------------------------ Gerak masuk sekali ----------------- */

.kartu {
    animation: naik 0.55s ease-out both;
}

@keyframes naik {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .kartu {
        animation: none;
    }

    .laman-masuk * {
        transition: none !important;
    }
}

/* ------------------------------ Layar sedang dan kecil ------------- */

@media (max-width: 991px) {
    body.laman-masuk {
        padding: 2rem 1rem;
    }

    .kartu {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .ombak {
        display: none;
    }

    .sisi-merek {
        padding: 2.5rem 1.75rem 2rem;
        background-color: var(--putih);
    }

    .noda-a {
        width: 15rem;
        height: 14rem;
    }

    .noda-b {
        display: none;
    }

    .merek-logo {
        width: 7.5rem;
        margin-bottom: 1rem;
    }

    .merek-judul {
        font-size: 1.625rem;
    }

    .merek-kaki {
        margin-top: 1.75rem;
        text-align: center;
    }

    .sisi-formulir {
        place-items: center;
        padding: 2.5rem 1.75rem 3rem;
    }

    .formulir-bungkus {
        max-width: 22rem;
        margin: 0 auto;
    }
}

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

    .sisi-merek {
        padding: 2rem 1.25rem 1.5rem;
    }

    .sisi-formulir {
        padding: 2rem 1.25rem 2.5rem;
    }

    .formulir-judul {
        font-size: 1.875rem;
    }
}


/* =====================================================================
   Penyegaran 30 September 2026

   Sisi merek sebelumnya hanya berisi logo dan dua baris teks, sehingga
   ruang kosongnya terasa besar pada layar lebar. Tiga poin singkat
   mengisi ruang itu sekaligus memberi tahu pengunjung apa yang bisa
   dikerjakan aplikasi ini sebelum mereka masuk.
   ===================================================================== */

.merek-poin {
    position: relative;
    max-width: 23rem;
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.merek-poin li {
    position: relative;
    padding-left: 1.75rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--tinta-samar);
}

.merek-poin li + li {
    margin-top: 0.7rem;
}

/* Lingkaran dan tanda centang digambar dengan CSS, tanpa gambar
   tambahan, supaya tidak ada berkas baru yang perlu dimuat. */
.merek-poin li::before {
    content: "";
    position: absolute;
    top: 0.2rem;
    left: 0;
    width: 1.1rem;
    height: 1.1rem;
    background-color: #f6e7e8;
    border-radius: 50%;
}

.merek-poin li::after {
    content: "";
    position: absolute;
    top: 0.48rem;
    left: 0.33rem;
    width: 0.4rem;
    height: 0.22rem;
    border-left: 2px solid var(--merah);
    border-bottom: 2px solid var(--merah);
    transform: rotate(-45deg);
}

.formulir-subjudul {
    margin: -1rem 0 1.6rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 991px) {
    .merek-poin {
        margin-top: 1.25rem;
    }
}

/* Pada layar sempit kartunya sudah panjang, jadi poin-poin ini
   disembunyikan agar formulir tetap terlihat tanpa menggulir jauh. */
@media (max-width: 575px) {
    .merek-poin {
        display: none;
    }
}
