@font-face {
    font-family: "MyCustomFont"; /* Choose a name for your font */
    src: url("../font/DB-Helvethaica-X-Med-v3.2.ttf") format("truetype"); /* Specify the file path and format */
    font-weight: normal; /* Define the weight (e.g., normal, bold, 400, 700) */
    font-style: normal; /* Define the style (e.g., normal, italic) */
}

body {
    font-family: "MyCustomFont", sans-serif;
    background-image: url("../images/bg-signin.jpg");
    margin: auto;
    background-size: cover; /* Ensures the image covers the entire viewport */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents image repetition */
    background-attachment: fixed; /* Keeps the background image fixed during scrolling */
    height: 100vh; /* Sets the body height to 100% of the viewport height */
    width: 100vw; /* Sets the body width to 100% of the viewport width */
    margin: 0; /* Removes default body margin */
    padding: 0; /* Removes default body padding */
}

.img-logo {
    margin-top: 10%;
    width: 20%;
}
.t-login {
    font-size: 50px;
}
.container {
    display: flex; /* ทำให้ container เป็น flex container */
    justify-content: center; /* จัดกล่องให้อยู่ตรงกลางในแนวนอน */
    align-items: center; /* จัดกล่องให้อยู่ตรงกลางในแนวตั้ง */
    min-height: 40vh; /* ทำให้ container มีความสูงเต็มหน้าจอ */
}

.box {
    position: relative;
    width: 400px; /* กำหนดความกว้างของกล่อง */
    height: auto; /* กำหนดความสูงของกล่อง */
    background-color: white; /* สีพื้นหลังของกล่อง */
    display: flex; /* ทำให้กล่องเป็น flex container ด้วย (ถ้าต้องการจัดข้อความข้างใน) */
    justify-content: center; /* จัดข้อความให้อยู่ตรงกลางแนวนอน (ถ้าเป็น flex container) */
    align-items: center; /* จัดข้อความให้อยู่ตรงกลางแนวตั้ง (ถ้าเป็น flex container) */
    border-radius: 8px; /* ทำให้มุมกล่องมน */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* เพิ่มเงาให้กล่อง */
    padding: 20px;
}

.btn-signin {
    position: absolute;
    width: 250px;
    left: 18%;
    border-radius: 20px;
    padding: 5px;
    font-weight: 900;
    font-size: 22px;
    background-color: #474747;
    color: white;
    border: none;
}
input[type="text"],
input[type="password"] {
    font-size: 22px;
    border: none; /* ลบขอบทุกด้าน */
    border-bottom: 1px solid black; /* กำหนดเส้นขอบด้านล่าง */
    padding-bottom: 5px; /* เพิ่มระยะห่างระหว่างข้อความกับเส้น */
    width: 100%;
}
input[type="text"],
input[type="password"]:focus {
    outline: none;
}
.input-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.fa {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    font-size: 20px; /* ปรับขนาดไอคอน */
}
@media only screen and (max-width: 600px) {
    .img-logo {
        margin-top: 20%;
        width: 70%;
    }
    .box {
        position: relative;
        width: 300px; /* กำหนดความกว้างของกล่อง */
        height: auto; /* กำหนดความสูงของกล่อง */
        background-color: white; /* สีพื้นหลังของกล่อง */
        display: flex; /* ทำให้กล่องเป็น flex container ด้วย (ถ้าต้องการจัดข้อความข้างใน) */
        justify-content: center; /* จัดข้อความให้อยู่ตรงกลางแนวนอน (ถ้าเป็น flex container) */
        align-items: center; /* จัดข้อความให้อยู่ตรงกลางแนวตั้ง (ถ้าเป็น flex container) */
        border-radius: 8px; /* ทำให้มุมกล่องมน */
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* เพิ่มเงาให้กล่อง */
        padding: 20px;
    }
    .t-login {
        font-size: 50px;
    }
    .btn-signin {
        width: 200px;
        left: 15%;
        border-radius: 20px;
    }
}
