:root {
    --bg-cream: #FAF3E1;
    --teal: #006F7A;
    --white: #ffffff;
    --accent-yellow: #FFC107;
}

body {
    background-color: var(--bg-cream);
    min-height: 100vh;
    font-family: "Segoe UI", sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Pastikan navbar bawaan tidak muncul */
nav.navbar {
    display: none !important;
}

.login-wrapper {
    flex-grow: 1; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

/* KARTU UTAMA - Dipertegas gayanya */
.login-card {
    width: 100%;
    max-width: 1000px;
    background-color: var(--teal);
    border-radius: 16px;
    overflow: hidden;
    /* GAYA KOMIK: Border hitam dan shadow padat */
    border: 4px solid #111;
    box-shadow: 8px 8px 0px #111;
}

.left-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.right-panel {
    padding: 60px 70px;
    position: relative;
}

/* PEMISAH TENGAH - Menjadi garis hitam solid */
.divider {
    position: absolute;
    left: 0;
    top: 8%;
    bottom: 8%;
    width: 4px;
    background-color: #111;
    border-radius: 4px;
}

/* LOGO */
.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    transform: rotate(-3deg);
}

/* TEKS JUDUL */
.login-title {
    color: #fff;
    font-weight: 900; /* font-black */
    letter-spacing: 1px;
    margin-bottom: 35px;
    text-align: center;
    font-size: 2.5rem;
    text-shadow: 3px 3px 0px #111;
}

/* LABEL FORM */
.form-label {
    color: #fff;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 1px 1px 0px #111;
}

/* INPUT FORM */
.form-control {
    border-radius: 12px;
    padding: 12px 18px;
    border: 3px solid #111;
    box-shadow: 4px 4px 0px #111;
    font-weight: 800;
    color: #111;
    transition: all 0.2s ease;
}

.form-control:focus {
    box-shadow: 4px 4px 0px var(--accent-yellow);
    border-color: #111;
    outline: none;
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: #111;
    cursor: pointer;
    font-size: 20px;
}

/* LINK LUPA PASSWORD */
.forgot {
    text-align: right;
    margin-top: 10px;
}

.forgot a {
    color: var(--accent-yellow);
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 1px 1px 0px #111;
}

.forgot a:hover {
    text-decoration: underline;
}

/* TOMBOL MASUK */
.btn-main {
    background-color: var(--accent-yellow);
    color: #111;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 14px;
    padding: 14px;
    width: 100%;
    border: 3px solid #111;
    box-shadow: 4px 4px 0px #111;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.btn-main:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px #111;
}

/* TEKS "ATAU" */
.separator {
    color: #fff;
    text-align: center;
    margin: 25px 0;
    font-weight: 900;
    position: relative;
    font-size: 14px;
    text-transform: uppercase;
    text-shadow: 1px 1px 0px #111;
}

.separator::before, .separator::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 35%;
    height: 3px;
    background-color: #111;
}

.separator::before { left: 0; }
.separator::after { right: 0; }

/* TOMBOL BUAT AKUN */
.btn-outline {
    background-color: #fff;
    color: #111;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 14px;
    padding: 14px;
    width: 100%;
    display: block;
    text-align: center;
    text-decoration: none;
    border: 3px solid #111;
    box-shadow: 4px 4px 0px #111;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.btn-outline:hover {
    background-color: var(--accent-yellow);
    color: #111;
    transform: translateY(-2px);
    box-shadow: 6px 6px 0px #111;
}

/* TOMBOL KEMBALI (KIRI ATAS) */
.back-link {
    position: absolute;
    top: 24px;
    left: 24px;
    color: #111;
    background-color: #fff;
    text-decoration: none;
    font-weight: 900;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
    border: 3px solid #111;
    padding: 8px 18px;
    border-radius: 50px;
    box-shadow: 3px 3px 0px #111;
    transition: all 0.2s;
    z-index: 10;
}

.back-link:hover {
    background-color: var(--accent-yellow);
    transform: translateY(-2px);
    box-shadow: 5px 5px 0px #111;
    color: #111;
}

/* FOOTER MINIMALIS */
footer {
    text-align: center;
    padding: 20px 0;
    font-weight: 900;
    width: 100%;
    color: #111;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* PESAN ERROR */
.error-text {
    color: #ffcccc;
    font-size: 13px;
    margin-top: 5px;
    display: block;
    font-weight: 900;
    text-shadow: 1px 1px 0px #111;
}

/* mobile */
@media (max-width: 991px) {
    .divider {
        display: none;
    }

    .left-panel {
        display: none !important;
    }

    .right-panel {
        width: 100% !important;
        padding: 50px 40px;
    }

    .login-card {
        margin: 20px;
        max-width: 450px;
    }

    .separator::before, .separator::after {
        width: 25%;
    }
}