@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: 5%;
    width: 40%;
}

.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: 50%; /* กำหนดความกว้างของกล่อง */
    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;
    border: 1px solid #d90000;
}

.btn-signin {
    position: absolute;
    width: 250px;
    left: 50%;
    transform: translate(-50%);
    border-radius: 20px;
    padding: 5px;
    font-weight: 900;
    font-size: 22px;
    background-color: #474747;
    color: white;
    border: none;
    border: 1px solid #d90000;
}
input[type="text"],
input[type="password"] {
    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: 1024px) {
    .btn-signin {
        position: absolute;
        width: 250px;
        left: 50%;
        transform: translate(-50%);
        border-radius: 20px;
        padding: 5px;
        font-weight: 900;
        font-size: 22px;
        background-color: #474747;
        color: white;
        border: none;
        border: 1px solid #d90000;
    }
    .img-logo {
        width: 100%;
    }
    .box {

        width: 70%; 
      
    }
}
@media only screen and (max-width: 600px) {
    .t-login{
        font-size: 25px;
    }
    .btn-signin{
        font-size: 16px;
    }
}
