body {
    background-color: #2124B1;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

/* Main container */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    /* min-width: 100vw; */
}

.login-card {
    display: flex;
    width: 100%;
    max-width: 900px;
    background-color: #ffffff; /* White background */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Left side - image */
.login-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-left img {
    max-width: 100%;
    /* height: auto; */
    height: 100%;
    padding: 40px;
    object-fit: cover;
}

/* Right side - form */
.login-right {
    flex: 1;
    background-color: white;
    padding: 20px;
    padding-top: 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Dropdown-toggle button style */
.dropdown-toggle {
    background-color: transparent; /* No background */
    border: none;
    padding: 0;
    color: #333;
}

/* Remove all hover styles */
.dropdown-toggle:hover {
    background-color: transparent; /* No background change when hovering */
    color: #333;
}

.dropdown-menu {
    border: none;
    box-shadow: none;
    min-width: 160px;
    background-color: transparent;
}

.dropdown-item {
    color: #333;
    background-color: transparent;
    padding-left: 0 !important;
}

/* Removed the hover function of dropdown-item */
.dropdown-item:hover {
    background-color: #fff; /* White background on hover */
    color: #333;
}

/* ลบการเลือกรายการแล้วเปลี่ยนสีฟ้า */
.dropdown-item:active {
    background-color: #fff; /* White background on hover */
    color: #333; /* The font color remains the same */
}

.header {
    text-align: center;
    padding-top: 0;
    margin-top: 0;
    margin-bottom: 20px;
}

.header .logo {
    max-width: 100px;
    margin-bottom: 10px;
}

.title {
    font-size: 24px;
    font-weight: 900;
    margin: 10px 0;
    color: #2124B1; /* Heading color same as background */
}

.input-label {
    font-size: 14px;
    font-weight: bold;
    margin: 5px 0;
    color: rgba(33, 36, 177, 0.9); /* Heading color same as background */
}

.description {
    font-size: 14px;
    color: rgba(33, 36, 177, 0.8);
}

.line {
    width: 60%; /* Width of the line */
    height: 0.5px; /* Height of the line (thickness) */
    background-color: rgba(33, 36, 177, 0.5); /* Line color (same as the title color) */
    margin: 20px auto 0; /* Centers the line and adds spacing above */
}

/* Form fields */
.icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #2124B1;
    width: 18px;
    height: 18px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    width: 100%; /* Ensure it spans the full width */
}

.form-group label {
    width: 100%; /* Ensure label takes full width */
    display: block; /* Allow label to take full width */
}

.input-container {
    padding-left: 40px; 
}

.form-group input {
    width: 90%; /* Ensure input takes full width */
    height: 8vh;
    padding: 10px 10px 10px 40px; /* Adjust padding for icon */
    border: 0.5px solid rgba(33, 36, 177, 0.7);
    border-radius: 15px;
    outline: none;
    color: #2124B1;
    font-size: 14px;
}

.form-group input::placeholder {
    font-size: 14px;
    color: #808080;
}

/* Container for password fields */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Password field icon */
.icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #2124B1;
    width: 18px;
    height: 18px;
}

/* input */
.form-group input {
    width:90%;
    height: 8vh;
    padding: 10px 10px 10px 40px; /* Expand the left padding to fit the icons. */
    border: 0.5px solid rgba(33, 36, 177, 0.7);
    border-radius: 15px;
    outline: none;
    color: #2124B1;
    font-size: 14px;
}

/* Location of the password on/off icon */
.password-toggle {
    position: absolute;
    right: 13%;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

/* Size of password on/off icon */
.toggle-icon {
    width: 20px;
    height: 20px;
}


/* Checkbox remember */
.remember {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between checkbox and text */
    color: #2124B1;
    font-size: 14px;
}

.remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #2124B1;
    margin: 0;
    cursor: pointer;
    border: 1px solid rgba(33, 36, 177, 0.7);
}

/* Submit button */
.btn-submit {
    width: 40%;
    padding: 10px;
    background-color: #2124B1;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

.btn-submit:hover {
    background-color: #1a1f8b;
}


.menu-container {
    display: flex;
    justify-content: end;
    align-items: center;
    margin-top: 20px;
    text-align: center;
}

/* Responsive layout */
@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
    }

    .login-left, .login-right {
        flex: none;
        width: 100%;
    }
}
