@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;500;600&display=swap');

body {
    font-family: 'Sarabun', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f9f9f9; /* พื้นหลังสีเทาอ่อนมาก */
    margin: 0;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 16px; /* มุมโค้งมนมากขึ้น */
    box-shadow: 0 10px 25px rgba(0,0,0,0.05); /* เงานุ่มๆ */
    width: 100%;
    max-width: 360px;
    border-top: 6px solid #ff9f6f; /* แถบสีส้มพาสเทลด้านบน */
}

h3 {
    text-align: center;
    color: #555; /* สีเทาเข้ม */
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 1.5rem;
}

label {
    color: #777; /* สีเทากลาง */
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

input[type="text"], 
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0 20px 0;
    border: 1px solid #eee; /* ขอบสีเทาจางๆ */
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 16px;
    background-color: #fafafa;
    transition: all 0.3s ease;
    font-family: 'Sarabun', sans-serif;
}

input[type="text"]:focus, 
input[type="password"]:focus {
    border-color: #ff9f6f; /* เปลี่ยนขอบเป็นสีส้มเมื่อพิมพ์ */
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 159, 111, 0.1); /* เงาส้มฟุ้งๆ */
}

button {
    width: 100%;
    padding: 14px;
    background-color: #ff9f6f; /* สีส้มพาสเทลหลัก */
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    transition: background-color 0.3s, transform 0.2s;
    font-family: 'Sarabun', sans-serif;
    box-shadow: 0 4px 10px rgba(255, 159, 111, 0.3);
}

button:hover {
    background-color: #ff8c61; /* สีส้มเข้มขึ้นนิดหน่อยตอนชี้ */
    transform: translateY(-2px); /* ลอยขึ้นเล็กน้อย */
}

button:active {
    transform: translateY(0);
}

/* กล่องแจ้งเตือน Error */
.error {
    color: #d65a5a;
    text-align: center;
    margin-bottom: 20px;
    padding: 12px;
    background: #fff0f0; /* สีแดงจางๆ เข้ากับธีม */
    border-radius: 8px;
    border: 1px dashed #ffcccc;
    font-size: 14px;
}

/* ลิงก์กลับหน้าหลัก (ถ้ามี) หรือข้อความเล็กๆ */
.footer-text {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #aaa;
}