body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    width:100%;
    height:100%;
}
.bg-one {
    /*background-image: url('../img/bg.jpg');*/
    background-color: #2E2E2E;
    background-position: center center;
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
    padding-top: 50px;
}
.form {
    display: flex;
    flex-direction: column !important;
    justify-content: center;
    text-align: center;
    border: 3px solid #3e3e3e;
    width: 30%;
    box-shadow: 
        0 1px 0 #2E2E2E, 
        0 2px 0 #3e3e3e,
        0 3px 0 rgba(0, 0, 0, 0.2), 
        0 0px 0 #b9b9b9, 
        0 5px 0 #2E2E2E, 
        0 6px 1px rgba(0, 0, 0, 0.2), 
        0 0 5px rgba(0, 0, 0, 0.2),
        0 1px 3px rgba(0, 0, 0, 0.2), 
        0 3px 5px rgba(0, 0, 0, 0.2), 
        0 5px 10px rgba(0, 0, 0, 0.2), 
        0 10px 10px rgba(0, 0, 0, 0.2), 
        0 20px 20px rgba(0, 0, 0, 0.2), 
        0 0 4px white, 0 0px 3px white, 
        1px 1px 5px rgba(155, 155, 0, 0.37), 
        1px 1px 10px rgba(102, 60, 0, 0.5);
}
container {
  
}
h2, label {
    color: aliceblue;
}

input[type=text], input[type=password] {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

button {
    background-color: #71A025;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
}

    button:hover {
        opacity: 0.8;
    }

.cancelbtn {
    width: auto;
    padding: 10px 18px;
    background-color: #f44336;
}

.imgcontainer {
    text-align: center;
    margin: 24px 0 12px 0;
}

img.avatar {
    width: 40%;
    border-radius: 50%;
}

.container {
    padding: 16px;
}

span.psw {
    float: left;
    padding-top: 10px;
    color:aliceblue;
}

label {
    float:left !important;
}
.input-group select {
    width: 93% !important;
    width: 100% !important;
    padding: 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    text-align: center !important;
}

.input-group-forget {
    padding: 10px !important;
    margin:2% !important;
    display:flex !important;
}

    .input-group-forget input {
        width: 350% !important;
        padding: 10px !important;
        font-size: 18px !important;
        border: 1px solid #ccc !important;
        border-radius: 5px !important;
        text-align: center !important;
    }

.label_forget_pass {
    color: black;
}
.margin_forget {
    margin-right: 2%!important;
    color:black !important;
}

.pointer {
    cursor: pointer;
}

/* ตั้งค่ากล่องให้กึ่งกลาง และกำหนดขนาด */
.form-container {
    width: 100%;
    max-width: 500px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

    /* จัดสไตล์ Label */
    .form-container label {
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
        color: #333;
    }

    /* จัดให้ input มีขนาดเท่ากัน */
    .form-container input {
        width: 100%;
        height: 40px;
        padding: 8px;
        margin-bottom: 15px;
        border: 2px solid #ccc;
        border-radius: 5px;
        font-size: 16px;
        transition: all 0.3s ease-in-out;
    }

        /* เมื่อคลิกที่ input */
        .form-container input:focus {
            border-color: #008080; /* สีฟ้าเขียว */
            outline: none;
            box-shadow: 0px 0px 5px rgba(0, 128, 128, 0.5);
        }

    /* ปุ่มยืนยัน */
    .form-container button {
        width: 100%;
        background: #6b9c2f; /* สีเขียว */
        color: white;
        padding: 10px;
        font-size: 18px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        transition: 0.3s;
    }

        /* เมื่อ hover ปุ่ม */
        .form-container button:hover {
            background: #567c24;
        }

/* Responsive Design */
@media (max-width: 600px) {
    .form-container {
        max-width: 90%;
        padding: 15px;
    }

        .form-container input {
            font-size: 14px;
            height: 35px;
        }

        .form-container button {
            font-size: 16px;
        }

    .form {
    
        width : 90% !important;
    }
}

/* จอขนาดกลาง: 600px - 900px */
@media (min-width: 600px) and (max-width: 900px) {
    .form {
        width: 60% !important;
    }
}






 /*Change styles for span and cancel button on extra small screens*/
@media screen and (max-width: 1240px) {
    span .psw {
        display: block;
        float: none;
    }

    .cancelbtn {
        width: 100%;
    }
    form {
        /*width:80%*/    
        width:100%    
    }
}