@font-face {
	font-family: kanit;
	src: url("../Kanit/Kanit.ttf");
}
body {
	font-family: kanit;
	background-image: url("../images/bg-signin.jpg");
	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: 2vw;
}
.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: 10px;
	font-weight: bold;
	background-color: #474747;
	color: white;
	border: none;
}
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: 600px) {
	.img-logo {
		width: 50%;
	}
	.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;
	}
}
