/* Reset dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    width: 100%;
    display: flex; /* Membagi layar menjadi kiri dan kanan pada desktop */
    overflow-x: hidden; /* Mencegah scroll menyamping */
    background-color: #ffffff;
}

/* --- SISI KIRI (Form & Teks) --- */
.left-side {
    width: 52%; /* Lebar proporsional sisi kiri */
    min-height: 100vh; /* Memastikan setinggi layar */
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 10%; /* Memberikan jarak dari tepi kiri */
    padding-right: 5%;
    /* Efek background rumus kimia tipis murni di sisi kiri */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)), 
        url('../image/bgLogin.png');
    background-size: cover;
    background-position: left center;
}

/* Header Logo di Pojok Kiri Atas */
.header-logo {
    position: absolute;
    top: 40px;
    left: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo img {
    height: 65px;
    width: auto;
}

.logo-text {
    font-size: 13px;
    font-weight: 800;
    color: #2d5a36; /* Warna hijau tua khas instansi */
    line-height: 1.3;
}

.logo-text span {
    font-weight: 700;
    color: #4a8459;
}

/* Konten Container Form */
.login-container {
    width: 100%;
    max-width: 480px;
    text-align: left; /* Teks rata kiri sesuai gambar */
    margin-top: 60px;
}

.login-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #4f9d6c; /* Warna hijau judul */
    margin-bottom: 8px;
}

.login-desc {
    font-size: 1.15rem;
    color: #6e9b7b;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 2.5rem;
}

.login-form {
    width: 100%;
}

.input-group {
    margin-bottom: 22px;
}

/* Input Sesuai Desain */
input {
    width: 100%;
    padding: 16px 28px;
    border-radius: 30px;
    border: 2px solid #5aa072; /* Border hijau penanda field */
    background-color: #ffffff;
    color: #333333;
    font-size: 1.15rem;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s;
}

input::placeholder {
    color: #b5cbbb; /* Warna placeholder agak pudar */
}

input:focus {
    border-color: #2d5a36;
}

/* Tombol Masuk Hijau di Sisi Bawah Kiri */
.button-group {
    display: flex;
    justify-content: flex-start;
    margin-top: 30px;
}

.btn-masuk {
    background-color: #55a072;
    color: white;
    padding: 12px 55px;
    border: none;
    border-radius: 20px;
    font-size: 1.6rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 0 #42825a; /* Efek ketebalan bawah tombol */
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn-masuk:active {
    transform: translateY(4px);
    box-shadow: 0 0 0 #42825a;
}

/* --- SISI KANAN (Ilustrasi Guru & Gelombang) --- */
.right-side {
    width: 48%; /* Mengisi sisa area layar desktop */
    min-height: 100vh;
    background-size: cover;
    background-position: left center;
    background-repeat: no-repeat;
}


/* =========================================
   RESPONSIVITAS (MEDIA QUERIES)
   ========================================= */

/* --- Tablet Landscape (max-width: 1024px) --- */
@media (max-width: 1024px) {
    .left-side {
        width: 60%;
        padding-left: 5%;
    }
    .right-side {
        width: 40%;
    }
    .login-title { font-size: 1.9rem; }
    .login-desc { font-size: 1rem; }
}

/* --- Tablet Portrait & HP Besar (max-width: 768px) --- */
@media (max-width: 768px) {
    body {
        flex-direction: column; /* Menumpuk form di atas, gambar di bawah */
    }
    
    .left-side {
        width: 100%;
        min-height: auto; /* Membiarkan tinggi menyesuaikan konten */
        padding: 120px 30px 50px 30px;
    }
    
    .right-side {
        width: 100%;
        min-height: 350px; /* Memberikan area khusus untuk ilustrasi agar tidak hilang */
        background-position: center;
    }

    .header-logo {
        top: 25px;
        left: 25px;
    }
    .header-logo img { height: 50px; }
    .logo-text { font-size: 11px; }

    .login-container { 
        margin-top: 0; 
        max-width: 100%;
    }
    
    .login-title { font-size: 1.8rem; }
    .login-desc { font-size: 0.95rem; margin-bottom: 2rem; }

    /* Tombol jadi memanjang agar mudah ditekan jari */
    .btn-masuk { 
        width: 100%; 
        text-align: center; 
        font-size: 1.4rem;
    }
}

/* --- HP Layar Kecil (max-width: 480px) --- */
@media (max-width: 480px) {
    .left-side {
        padding: 100px
    }
}