@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@700&family=Poppins:wght@400;500;600&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Montserrat, Montserrat;
}

body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align content to the right */
    background: url("../img/login/bg-1-login.png") no-repeat;
    overflow-y: hidden;
    overflow-x: hidden;
    background-color: #63AFBD !important;
}

.container {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Align content to the right */
    width: 100%;
    height: 100%;
}

.center {
    background-color: #63AFBD;
    text-align: center;
    height: 100%;
    margin-right: -132px;
    width: 46%;
}

.center .logo {
    width: 100px;
    margin: 25px 0px 0px -5px; 
}

.formlogin {
    width: 500px;
    padding: 0px 50px 0px 50px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.switch-button {
    display: flex;
    justify-content: space-around;
    border-radius: 40px;
    width: 230px;
    height: 60px;
    margin-bottom: 30px;
}

.switch-button button {
    flex: 1;
    padding: 15px;
    border: none;
    background: none;
    color: #1C7EA5;
    font-size: 20px;
    font-family: "Montserrat";
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 40px;
}

.switch-button button:hover {
    background-color: #3EB9F7;
    color: #fff;
}

.switch-button button.active {
    color: #fff;
}

.g-recaptcha{
    margin: 15px auto 15px auto;
}

.form-container {
    width: 100%;
}

.form {
    display: none;
    flex-direction: column;
    align-items: center;
}

.form.visible {
    display: flex;
}

.input-container {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
}

.input-container i {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: white;
}

.input-container input {
    width: 100%;
    padding: 10px 40px;
    border: none;
    border-bottom: 2px solid white;
    background: transparent;
    color: white;
    text-align: center;
}

.input-container input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.input-container input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0px 1000px transparent inset;
    -webkit-text-fill-color: #63AFBD;
}

.input-container input:-webkit-autofill::first-line {
    font-family: inherit;
    color: #63AFBD;
}

.password-container {
    position: relative;
    width: 100%;
}

.toggle-password {
    position: absolute;
    top: 45%;
    right: 40px;
    transform: translateY(-50%);
    cursor: pointer;
    color: white;
}

.form button {
    padding: 10px;
    border: none;
    background-color: #0F85D3;
    color: #fff;
    border-radius: 5px;
    width: 100%;
    margin-top: 10px;
}

.form button:hover {
    background-color: #0056b3;
}

.termsCheckbox {
    color: #FFF;
    text-align: center;
    font-family: "Montserrat";
    font-size: 12px;
    font-weight: 700;
}

.hidden {
    display: none;
}

.visible {
    display: flex;
}

@media only screen and (max-width: 768px) {
    body {
        justify-content: center; /* Pusatkan konten pada layar kecil */
        background-size: cover; /* Sesuaikan latar belakang agar memenuhi layar */
    }

    .container {
        justify-content: center; /* Pusatkan konten pada layar kecil */
    }

    .center {
        width: 90%; /* Kurangi lebar untuk layar kecil */
        height: 90%;
        margin-right: 0; /* Hilangkan margin kanan pada layar kecil */
        border-radius: 20px; /* Tambahkan radius untuk sudut yang lebih lembut */
    }

    .formlogin {
        width: 100%; /* Sesuaikan lebar form agar sesuai dengan layar kecil */
        padding: 20px; /* Sesuaikan padding untuk layar kecil */
    }

    .switch-button {
        width: 100%; /* Buat tombol switch button menempati seluruh lebar form */
        height: 50px; /* Kurangi tinggi tombol untuk layar kecil */
        margin-bottom: 0px;
    }

    .switch-button button {
        font-size: 16px; /* Kurangi ukuran font pada layar kecil */
        padding: 10px; /* Sesuaikan padding untuk layar kecil */
    }

    .input-container {
        margin-bottom: 20px; /* Kurangi jarak antar input pada layar kecil */
    }

    .input-container input {
        padding: 10px 20px; /* Sesuaikan padding input untuk layar kecil */
    }

    .toggle-password {
        right: 20px; /* Sesuaikan posisi ikon toggle password pada layar kecil */
    }

    .form button {
        padding: 10px; /* Sesuaikan padding tombol untuk layar kecil */
    }

    .input-container i {
        left: 0px;
    }
}

@media only screen and (max-width: 480px) {
    .center {
        width: 100%; /* Lebarkan konten untuk layar yang lebih kecil */
    }

    .formlogin {
        padding: 10px; /* Kurangi padding untuk layar kecil */
    }

    .input-container input {
        padding: 8px 15px; /* Kurangi padding input untuk layar kecil */
    }

    .form button {
        padding: 8px; /* Sesuaikan padding tombol untuk layar kecil */
        font-size: 14px; /* Kurangi ukuran font pada tombol */
    }

    .switch-button {
        height: 40px; /* Kurangi tinggi switch button */
    }

    .switch-button button {
        font-size: 14px; /* Kurangi ukuran font pada switch button */
    }
}
