/* Import font Poppins dari Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

/* Reset dan pengaturan dasar untuk html dan body */
html, body {
    height: 100%;
    width: 100%;
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    overflow-x: hidden; 
}

/* Box-sizing inherit untuk semua elemen dan pseudo-element */
*, *::before, *::after {
    box-sizing: inherit;
}

/* Styling dasar body */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f0f2f5; 
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; 
}

/* Container utama: membagi layout kiri-kanan */
.container {
    display: flex;
    width: 100vw; 
    height: 100vh; 
    background-color: #fff;
    overflow: hidden;
    box-shadow: none; 
}

/* Panel kiri untuk form login/reset */
.form-section {
    width: 50%;
    padding: 40px; 
    display: flex;
    flex-direction: column;

    justify-content: center; 
    align-items: center; 
}

/* Wrapper konten di dalam form */
.content-wrapper {
    display: flex;
    flex-direction: column;
    
    height: auto; 
    width: 100%;
    
    max-width: 450px; 
    
    justify-content: flex-start;
    align-items: flex-start; 
}

/* Logo/brand atas form */
.brand-name {
    
    font-size: 1.4em; 
    font-weight: 600;
    color: #333;
    margin: 0; 
    padding: 0;
    /* Jarak ke judul utama */
    margin-bottom: 50px; 
}

/* Konten utama form: judul dan subtitle */
.main-content { 
    width: 100%;
    margin: 0; 
    text-align: left; 
}

.main-content h1 {
    /* Ukuran font diperbesar */
    font-size: 2.8em; 
    font-weight: 800;
    color: #000;
    margin-bottom: 5px; 
    margin-top: 0;
    white-space: nowrap; 
}

.subtitle {
    font-size: 0.95em; 
    color: #666;
    margin-bottom: 30px; 
    margin-top: 0;
}

/* Styling Input dan Tombol */
.form-group {
    margin-bottom: 20px; 
    width: 100%;
    text-align: left; 
}

/* Label input */
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px; 
    color: #333;
    font-size: 1em;
}

/* Input email */
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 15px; 
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
    
    max-width: 350px; 
}

/* Tombol utama */
.btn-primary {
    width: 100%;
    padding: 15px;
    background-color: #4A83FF; 
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    
    max-width: 350px; 
    margin-top: 5px; 
    margin-bottom: 0; 
}

/* Wrapper konten bawah (link, copyright) */
.bottom-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* Jarak antara form dan link dibuat rapat */
    margin-top: 25px; 
    padding-bottom: 0; 
}

/* Link kembali ke login */
.back-to-login {
    display: block;
    margin-top: 0; 
    margin-bottom: 0; 
    color: #4A83FF; 
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 500;
    max-width: 350px; 
    width: 100%;
    text-align: left; 
}

/* Copyright */
.copyright {
    font-size: 0.8em;
    color: #aaa;
    /* Jarak ke link Back to Login dibuat sangat rapat */
    margin-top: 5px; 
    margin-bottom: 0; 
    text-align: left; 
    max-width: 350px; 
    width: 100%;
    margin-left: 0;
}

/* Panel kanan untuk ilustrasi */
.image-section {
    width: 50%;
    background: linear-gradient(135deg, #6BCBFF 0%, #4388FF 100%); 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Gambar ilustrasi */
.illustration-image {
    max-width: 90%; 
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3)); 
}


/* MEDIA QUERIES untuk Responsif */
@media (max-width: 980px) {
    .image-section {
        display: none;
    }
    .container {
        width: 100%;
        height: 100vh;
        min-height: 100vh;
    }
    .form-section {
        width: 100%;
        padding: 40px 20px;
        align-items: center; 
    }
    .content-wrapper {
        max-width: 100%; 
    }
    /* Pastikan teks tetap rata kiri */
    .main-content, .bottom-content, .brand-name {
        align-items: flex-start;
        text-align: left; 
    }
}
