body {
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center; 
    align-items: center;    
    min-height: 100vh;      
    margin: 0;              
    
}
.container {
    position: relative;
    width: 70%;
    margin: 10px;
    /* max-width: 960px; */
    height: 600px;
    /* background-color: #F4F4F4; */
    background-color: #7D0633;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    /* font-family: 'Roboto', sans-serif; */
    border-radius: 20px;
   
}

main {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    transform: translateX(0);
    transition: all 1s ease-in-out;
}

aside{
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background-color: #F4F4F4;
    transform: translateX(0);
    transition: all 1s ease-in-out;
    border-radius: 20px;
    border: 1px solid #7D0633;
}


.form {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.form h3 {
    font-size: 1.5rem;
    margin-bottom: 1em;
    margin-top: 5px;
    color: white;
}
.form label {
    color: white;
}
form {
    width: 80%;
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 0.5em;
    font-size: 1.05em;
}

input {
    width: 79%;
    height: 3em;
    margin-bottom: 1em;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background-color: #EEEEEE;
    padding-left: 37px;
    padding-right: 54px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;;
    border: 2px solid white;
    /* color: white; */
}

input:focus {
    border-color: black;
    outline: none;
}

.input-container {
    position: relative;
    width: 100%;
    /* border: 1px solid black; */
}

.input-container i {
    position: absolute;
    right: 10px; /* Pindahkan ikon ke dalam input */
    top: 40%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none; /* Ikon tidak menghalangi klik */
}

/* Ikon di Kiri (User & Kunci) */
.input-container i:first-child {
    left: 15px;
}

.input-container .fa-envelope,
.input-container .fa-lock {
    left: 10px;
    pointer-events: none; 
}

.input-container .eyes {
    right: 15px;
    cursor: pointer;
    pointer-events: all; 
}

form button {
    text-transform: uppercase;
    align-self: center;
    border-radius: 32px;
    cursor: pointer;
    font-weight: bold;
    background-color: white;
    color: #7D0633;
    border: 1px solid #BFBFBF;
    padding: 10px 40px;
    font-size: 17px;
    box-shadow: 0px 3px 0px #BFBFBF;
    font-family: 'Poppins', sans-serif;
    
}

form button:hover {
    background-color: #FBDCC4;
    color: black;
    /* border: 1px solid #F2A07B; */
    box-shadow: 0px 3px 0px #F2A07B;
}

.btn-side {
    text-transform: uppercase;
    align-self: center;
    border-radius: 32px;
    cursor: pointer;
    font-weight: bold;
    background-color: #7D0633;
    color: white;
    border: 1px solid #320215;
    padding: 10px 40px;
    font-size: 17px;
    box-shadow: 0px 3px 0px #320215;
    font-family: 'Poppins', sans-serif;
}

.btn-side:hover {
    background-color: #FBDCC4;
    color: black;
    border: 1px solid #F2A07B;
    box-shadow: 0px 3px 0px #F2A07B;
}

main button {
    border: none;
    margin: 1.5em 0;
    font-family: 'Poppins', sans-serif;
}

aside div {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

aside h3 {
    font-size: 1.5em;
    color: #7D0633;
}

aside button {
    border: 2px solid #fff;
    font-family: 'Poppins', sans-serif;
}

button:hover {
    background-color: black;
    color: white;
}

main .signup-form, 
aside .login-block {
    display: none;
}

main.slideRight {
    left: 100%;
    transform: translateX(-100%);
}

aside.slideLeft {
    right: 100%;
    transform: translateX(100%);
}

main.slideRight .signup-form, 
aside.slideLeft .login-block {
    display: flex;
}

main.slideRight .login-form, 
aside.slideLeft .sign-up-block {
    display: none;
}

.password-container {
    position: relative;
    width: 100%;
}

.sign-up-block img {
    /* margin: 10px; */
    height: 380px;
    width: 490px;
    /* border: 1px solid black; */
}

.login-block img {
    /* margin: 10px; */
    height: 270px;
    width: 330px;
}

.login-form img {
    width: 95px;
    height: 95px;
}

/* .eyes {
    position: fixed;
} */

.mobile-toggle {
    display: none;
}

.button-group {
    display: flex;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
}
  
/* RESPONSIVE: Sembunyikan aside di layar kecil */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    aside {
        display: none !important;
    }

    .container {
        margin: 20px;
        width: 100%;
    }

    main {
        width: 100%;
        position: relative;
        transform: none !important;
    }

    input {
        width: 65.5%;
    }

    .login-form,
    .signup-form {
        display: none;
    }

    main.show-register .signup-form {
        display: flex;
    }

    main:not(.show-register) .login-form {
        display: flex;
    }

    .mobile-toggle {
        display: block;
        margin-top: 1em;
        background-color: white;
        color: #7D0633;
        border: 1px solid #BFBFBF;
        padding: 10px 20px;
        border-radius: 20px;
        cursor: pointer;
        font-weight: bold;
        text-transform: uppercase;
    }

    form button {
        margin-top: 1em;
        font-size: 14px;
        background-color: white;
        color: #7D0633;
        border: 1px solid #BFBFBF;
        padding: 8px 18px;
        border-radius: 20px;
        cursor: pointer;
        font-weight: bold;
        text-transform: uppercase;
    }

    .button-group {
        display: flex;
        justify-content: space-between;
        gap: 1em; 
        margin-top: 1.5em;
        width: 100%;
      }
      
    .button-group button {
        flex: 1;
    }
}


/* Lebih kecil (<=480px), perbaikan minor */
@media (max-width: 480px) {
    .mobile-toggle {
        font-size: 14px;
        padding: 8px 16px;
    }

    .form h3 {
        font-size: 1.2rem;
    }

    input {
        font-size: 13px;
    }
}
