* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: #fff;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Keseimbangan sisi kiri dan kanan */
    height: 100vh;
    width: 100%;
}

/* --- SISI KIRI (PUTIH) --- */
.content-side {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 60px;
    background-color: #fff;
    position: relative;
    z-index: 1;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: auto;
    margin-bottom: auto;
}

.main-logo img {
    width: 300px;
    height: auto;
}

.title-red {
    color: #e31e24;
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
}

.title-dark {
    color: #333;
}

.tagline {
    color: #e31e24;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 10px 0;
}

.desc {
    color: #666;
    max-width: 450px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.url-badge {
    display: inline-block;
    background-color: #e31e24;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    margin-top: 15px;
    font-size: 0.9rem;
}

/* REVISI: Bottom Banner agar lebih Full */
.bottom-banner {
    width: 100%;
    background-color: #f1f1f1; /* Warna abu-abu sesuai permintaan */
    padding: 20px 60px; /* Padding agar gambar tidak nempel ke pinggir */
    border-radius: 50px 50px 50px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px; /* Sesuaikan dengan tinggi banner Anda */
}

.bottom-banner img {
    height: 100px; /* Atur tinggi logo footer agar rapi */
    width: auto;
    display: block;
    object-fit: contain;
    align-items: center;
}

/* --- SISI KANAN (MERAH DENGAN LENGKUNGAN BARU) --- */
.form-side {
    background-color: #e31e24;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    position: relative;
    /* Membuat efek lengkungan masuk (concave) menggunakan clip-path */
    clip-path: ellipse(100% 100% at 100% 50%);
}

/* Opsional: Jika ingin lengkungan yang lebih tajam seperti gambar, gunakan ini: */
/*
.form-side {
    background-color: #e31e24;
    clip-path: polygon(15% 0%, 100% 0%, 100% 100%, 15% 100%, 0% 50%);
}
*/

.login-box {
    width: 100%;
    max-width: 320px;
    padding: 20px;
}

.login-box h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.login-box p {
    opacity: 0.9;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.input-field {
    margin-bottom: 20px;
}

.input-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

/* Styling Input Django */
.input-field input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.4);
    background-color: rgba(255,255,255,0.1);
    color: white;
    outline: none;
    transition: 0.3s;
}

.input-field input:focus {
    background-color: rgba(255,255,255,0.2);
    border-color: white;
}

/* Tambahan untuk Help Text (Putih) */
.input-field .help-text {
    display: block;
    color: white;
    font-size: 0.8rem;
    margin-top: 5px;
    opacity: 0.8; /* Sedikit transparan agar tidak mengalahkan label utama */
}

/* Tambahan untuk Error Text */
.input-field .error-text {
    display: block;
    color: #ff6b6b; /* Merah cerah agar tetap terbaca di background gelap */
    font-size: 0.8rem;
    margin-top: 5px;
}

.btn-masuk {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: none;
    background-color: white;
    color: #e31e24;
    font-weight: 800;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    margin-top: 10px;
}

.btn-masuk:hover {
    background-color: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.copyright {
    margin-top: 50px;
    font-size: 0.8rem;
    opacity: 0.7;
    text-align: center;
}

/* Responsif untuk Tablet/HP */
/* --- REVISI RESPONSIVE UNTUK TABLET/HP --- */
/* --- REVISI RESPONSIVE UNTUK TABLET/HP --- */
@media (max-width: 1024px) {
    .container { 
        grid-template-columns: 1fr; /* Menumpuk vertikal */
        grid-template-rows: auto 1fr; 
        height: auto; /* Izinkan container memanjang ke bawah */
        overflow-y: auto; 
    }

    .content-side { 
        padding: 30px 20px;
        min-height: auto;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center; /* Pusatkan seluruh konten di HP */
    }

    .brand-wrapper {
        margin: 0;
        padding: 0;
        gap: 15px; /* Perkecil jarak antara logo dan teks */
        justify-content: center;
        width: 100%;
    }

    /* Ukuran Logo di HP */
    .main-logo img { 
        width: 80px; 
        height: auto;
    }

    /* Ukuran Tulisan di Samping Logo untuk HP */
    .title-red {
        font-size: 2.2rem; /* Kecilkan sedikit agar muat satu baris */
        text-align: left;
    }

    /* Sembunyikan elemen yang terlalu memakan tempat di HP */
    .tagline,
    .desc, 
    .url-badge,
    .bottom-banner { 
        display: none !important; 
    }

    .form-side { 
        clip-path: none; /* Lengkungan dihapus agar form rapi di layar HP */
        padding: 50px 20px;
        min-height: 80vh; /* Area merah tetap tinggi */
        align-items: flex-start; /* Form mulai dari atas area merah */
    }

    .login-box {
        max-width: 100%;
        margin-top: 0;
    }
}

/* Tombol Download Panduan */
.btn-panduan{
    width:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    margin-top:15px;
    padding:14px;
    border-radius:8px;
    border:2px solid rgba(255,255,255,0.7);
    background:transparent;
    color:#fff;
    font-weight:600;
    font-size:0.95rem;
    text-decoration:none;
    transition:all 0.3s ease;
}

.btn-panduan:hover{
    background:rgba(255,255,255,0.15);
    border-color:#fff;
    transform:translateY(-2px);
    box-shadow:0 5px 15px rgba(0,0,0,0.15);
}

.btn-panduan i{
    font-size:1.1rem;
}