* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background-color: #ccc9c9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.card {
    display: flex;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 85%; /* Membuat card lebih kecil di layar besar */
    max-width: 1100px; /* Menyesuaikan ukuran card agar tetap pas di layar besar */
    min-height: 550px;
}

.illustration-side {
    width: 60%; /* Memberikan lebar lebih besar pada gambar */
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.illustration-side img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Gambar akan memenuhi area tanpa terdistorsi */
}

.form-side {
    width: 40%; /* Menurunkan lebar form agar lebih kecil dan memberi lebih banyak ruang untuk gambar */
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #ffffff;
}

h2 {
    margin-bottom: 10px;
    font-size: 24px;
    color: #333;
}

p {
    margin-bottom: 30px;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

/* Input default */
input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    height: 42px;
    padding: 10px 12px;
    padding-right: 40px; /* Tambahkan ruang untuk icon mata */
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    line-height: 20px;
    outline: none;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 45px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
}

.toggle-password svg {
    pointer-events: none;
    opacity: 0.7;
}

.toggle-password:hover svg {
    opacity: 1;
}

button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #3150ff;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

button[type="submit"]:hover {
    background-color: #3f51b5;
}

.footer {
    margin-top: 30px;
    font-size: 14px;
    text-align: center;
    color: #aaa;
}

/* Media Query untuk Responsif di Layar Kecil */
@media (max-width: 768px) {
    .card {
        flex-direction: column; /* Mengubah layout menjadi vertikal pada layar kecil */
    }

    .illustration-side,
    .form-side {
        width: 100%; /* Membuat sisi gambar dan form menyesuaikan dengan lebar layar */
    }

    .illustration-side img {
        width: 100%; /* Membuat gambar responsif di layar kecil */
        height: auto; /* Menjaga proporsi gambar tetap terjaga */
        object-fit: contain; /* Menampilkan gambar utuh tanpa terpotong */
    }
}
