/* นำเข้าฟอนต์ Kanit */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;600;700&display=swap');

/* การจัดกึ่งกลางหน้าจอและพื้นหลัง */
body {
    background-color: #B20400; 
    display: flex;
    justify-content: center; 
    align-items: center;    
    min-height: 100vh;
    margin: 0;
    font-family: 'Kanit', sans-serif;
}

/* **ใหม่:** Wrapper สำหรับจัดเรียงโลโก้และกรอบ Login ในแนวตั้ง */
.login-wrapper {
    display: flex;
    flex-direction: column; /* จัดเรียงองค์ประกอบ: โลโก้อยู่บน, กรอบอยู่ล่าง */
    align-items: center;   /* จัดโลโก้และกรอบ Login ให้อยู่กึ่งกลางแนวนอน */
}

/* ส่วนของโลโก้ */
.logo-login {
    text-align: center; 
    /* เว้นระยะห่างด้านล่างโลโก้กับกรอบ Login */
    margin-bottom: 25px; 
}

.logo-login img {
    width: 300px; /* ขนาดของโลโก้ */
    height: auto;
    /* ลบเงาที่รูปภาพออกตามที่ร้องขอ */
    /* filter: none; */ 
}

/* ส่วนของกรอบ Login */
.login-container {
    background-color: white;
    padding: 25px; 
    border-radius: 12px;
    /* เพิ่มเงาให้กับกรอบ Login เพื่อให้ดูมีมิติ */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4); 
    width: 350px; 
}

/* ปรับสไตล์ของฟอร์ม */
.login-container form {
    margin-top: 0; 
}

.input-group {
    margin-bottom: 15px;
    position: relative; 
}

.input-group input {
    /* สไตล์เส้นขอบตามรูปภาพ */
    border: 1px solid #FFD700; 
    padding: 10px;
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
    font-size: 1em;
}

.input-group input:focus {
    border-color: #FFA500;
    outline: none;
}

label {
    display: block;
    text-align: left;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

/* ปุ่ม Log in */
button[type="submit"] {
    background-color: #4169E1; 
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px;
    width: 100%;
    font-size: 1.1em;
    font-weight: 600;
    margin-top: 20px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #3150b0;
}

/* ไอคอนแสดงรหัสผ่าน */
.show-password-icon {
    position: absolute;
    right: 10px;
    top: 50%; 
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

/* ลืมรหัสผ่าน? */
.forgot-password {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: #B20400; 
    text-decoration: none;
    font-size: 0.9em;
}
.forgot-password:hover {
    text-decoration: underline;
}

/* ข้อความแสดง Error */
.error-message {
    color: white;
    background-color: #B20400;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: 600;
    text-align: center;
}