/* =====================================
   RESET DASAR & FONT
   ===================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* =====================================
   WRAPPER HALAMAN
   ===================================== */
.page {
    position: relative;
    width: 100%;
    min-height: 100svh;
    /* FIX viewport HP */
    overflow: hidden;
}

/* =====================================
   BACKGROUND UTAMA (RESPONSIVE)
   ===================================== */
.bg {
    position: absolute;
    inset: 0;
    background: url("../img/Background_New_Mural.jpeg") center / cover no-repeat;
    z-index: 1;
}

/* =====================================
   FORM LOGIN (DESKTOP)
   ===================================== */
.login-box {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    width: 380px;
    padding: 35px;
    border-radius: 12px;

    border: 1px solid rgba(37, 99, 235, 0.14);
    box-shadow: 0 18px 40px rgba(3, 28, 110, 0.543), 0 0 0 1px rgba(255, 255, 255, 0.22) inset;
    z-index: 10;
    text-align: center;
}

.login-box-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto 18px;
}

.login-box-logo img {
    display: block;
    width: min(200px, 100%);
    height: auto;
}

/* =====================================
   JUDUL FORM
   ===================================== */
.login-box h3 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #334155;
}

.login-text-chip {
    display: inline-block;
    background: rgba(255, 255, 255, 0.5);
    color: #1f2937;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 10px;
    padding: 6px 10px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.32) inset;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.login-heading {
    width: fit-content;
    margin: 0 auto 20px;
    padding: 7px 18px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
    color: #0f2f73;
    letter-spacing: 0.15px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.46) 0%, rgba(255, 255, 255, 0.24) 100%);
    border-radius: 10px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.42) inset;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.login-error {
    margin-bottom: 12px;
    font-size: 14px;
    color: #b00020;
    background: rgba(255, 237, 237, 0.8);
    border-color: rgba(255, 179, 179, 0.75);
}

.login-inline-chip {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 13px;
    line-height: 1.2;
}

.forgot {
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.login-footer-chip {
    margin-top: 20px;
    font-size: 12px;
    line-height: 1.4;
}

.login-box input:not([type="checkbox"]) {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: none;
}

/* =====================================
   INPUT FIELD
   ===================================== */
.login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 14px;
}

/* =====================================
   BARIS CHECKBOX & TOMBOL
   ===================================== */
.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}

/* checkbox + text */
.row label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    justify-content: center;
}

/* checkbox */
.row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    padding: 0;
    margin: 0;
    margin-bottom: 0;
    border: initial;
    border-radius: 0;
    accent-color: #2563eb;
}

/* =====================================
   TOMBOL LOGIN
   ===================================== */
button {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background: #1e40af;
}

/* =====================================
   LINK LUPA PASSWORD
   ===================================== */
.forgot {
    display: block;
    margin-top: 15px;
    font-size: 13px;
    color: #000000;
    text-decoration: none;
}

/* =====================================
   FOOTER FORM
   ===================================== */
footer {
    margin-top: 20px;
    font-size: 12px;
    color: #000201;
}

/* =====================================
   RESPONSIVE MOBILE (HP)
   ===================================== */
@media (max-width: 768px) {

    .page {
        min-height: 100svh;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        padding: 20px 16px 28px;
        overflow-y: auto;
    }

    /* background fokus lebih aman di HP */
    .bg {
        background-position: center top;
        background-size: cover;
    }

    .bg::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg,
                rgba(15, 23, 42, 0.06) 0%,
                rgba(15, 23, 42, 0.22) 58%,
                rgba(15, 23, 42, 0.36) 100%);
    }

    /* form jadi tengah */
    .login-box {
        position: relative;
        left: auto;
        top: auto;
        transform: none;

        width: min(100%, 340px);
        margin: clamp(96px, 18svh, 150px) auto 0;
        padding: 22px 18px 18px;
        border-radius: 18px;

        background: rgba(255, 255, 255, 0.299);
        box-shadow: 0 14px 28px rgba(1, 22, 91, 0.612), 0 0 0 1px rgba(255, 255, 255, 0.24) inset;
    }

    .login-box-logo {
        margin-bottom: 16px;
    }

    .login-box-logo img {
        width: min(200px, 100%);
    }

    .login-box h3 {
        margin-bottom: 16px;
        font-size: 15px;
        line-height: 1.45;
    }

    .login-box input {
        padding: 11px 12px;
        margin-bottom: 10px;
        font-size: 14px;
    }

    /* checkbox & tombol ke bawah */
    .row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-top: 6px;
    }

    .row label {
        justify-content: flex-start;
        font-size: 12px;
    }

    .row input[type="checkbox"] {
        width: 15px;
        height: 15px;
        padding: 0;
        margin: 0;
        margin-bottom: 0;
        border: initial;
        border-radius: 0;
    }

    button {
        width: 100%;
        padding: 12px 18px;
    }

    .forgot {
        margin-top: 12px;
        font-size: 12px;
    }

    footer {
        margin-top: 16px;
        font-size: 11px;
        line-height: 1.5;
    }
}

@media (max-width: 420px) {
    .page {
        padding-left: 12px;
        padding-right: 12px;
    }

    .login-box {
        width: min(100%, 320px);
        margin-top: clamp(84px, 15svh, 124px);
        padding: 20px 16px 16px;
    }
}