.form-container {
    background-color: rgba(255, 255, 255, 0.9); /* Slightly opaque white */
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px; /* Limits the width of the form */
    position: absolute;
    left: 10%; /* Adjust to position the form on the left side */
    top: 50%;
    transform: translateY(-50%);
}

.input-group {
    position: relative;
    margin-bottom: 15px;
}

.input-group .icon-left,
.input-group .icon-right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px; /* Smaller icon size */
    color: #beb9b9;
}

.input-group .icon-left {
    left: 18px;
}

.input-group .icon-right {
    right: 18px;
    cursor: pointer;
}

.input-group input {
    width: 100%;
    height: 50px;
    padding: 10px;
    padding-left: 50px; /* Increased padding for space between text and left icon */
    padding-right: 50px; /* Space for right icon */
    border: 1px solid #ccc;
    font-family: "Nunito", sans-serif;
    font-size: 16px; /* Ensure font size is appropriate */
    border-radius: 4px !important;
    box-sizing: border-box; /* Ensure padding and border are included in width and height */
}

/* Gaya untuk input yang valid */
input {
    border: 1px solid #ccc;
    border-radius: 4px;
    /* padding: 10px; */
    font-family: "Nunito", sans-serif;
    font-size: 16px;
}

/* Gaya ketika input memiliki kelas is-invalid */
input.is-invalid {
    border-color: #e74c3c; /* Warna merah untuk border */
    background-color: #f8d7da; /* Warna latar belakang untuk memberi indikasi lebih lanjut */
}

/* Gaya ketika input memiliki kelas is-invalid */
.input-group input.is-invalid + .icon-left {
    top: 50%;
    transform: translateY(-50%); /* Ensure the icon is vertically centered */
}

.input-group input.is-invalid + .icon-right {
    top: 50%;
    transform: translateY(-50%); /* Ensure the icon is vertically centered */
}

/* Gaya untuk teks placeholder ketika input invalid */
input.is-invalid::placeholder {
    color: #e74c3c; /* Warna placeholder menjadi merah */
}

.input-group input::placeholder {
    color: #b1adad;
    font-size: 13px; /* Ensure placeholder text size matches input font size */
}

/* Mengatur posisi ikon ketika input invalid */
.input-group input.is-invalid + .icon-left {
    top: 50%;
}

.title-login {
    font-weight: bold;
    font-family: "Nunito", sans-serif;
}

.sub-title-login {
    font-family: "Nunito", sans-serif;
    font-size: 13px;
}

.btn {
    background-color: #e9589a;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
}

.btn:hover {
    background-color: #d94f88;
}

.forgot-password {
    display: block;
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #333;
}

.forgot-password a {
    color: #e9589a;
    text-decoration: none;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.custom-checkbox {
    display: flex;
    margin-top: 10px;
    margin-bottom: 30px;
    align-items: center;
}

.custom-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-family: "Nunito", sans-serif;
}

.custom-checkbox input[type="checkbox"] {
    display: none; /* Hide the default checkbox */
}

.custom-checkbox .checkmark {
    position: relative;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: #f0f0f0;
    border: 2px solid #ccc;
    border-radius: 4px;
    margin-right: 10px; /* Space between checkbox and label text */
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark {
    background-color: #e9589a; /* Background color when checked */
    border-color: #e9589a;
}

.custom-checkbox input[type="checkbox"]:checked + .checkmark::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    background-color: white;
    transform: translate(-50%, -50%);
    border-radius: 2px;
}

.custom-checkbox .caption {
    font-size: 14px;
    color: #333;
}
