/* ตั้งค่าฟอนต์พื้นฐานสำหรับทั้งเว็บ */
* {
    font-family: 'Kanit', sans-serif;
}

/* ตั้งค่าพื้นฐานของหน้าเว็บ */
body {
    font-family: 'Kanit', sans-serif;
    background: linear-gradient(135deg, #003366, #001a33); /* Updated background color */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
}

/* คอนเทนเนอร์ของฟอร์ม */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 30px;
}

/* กล่อง Card สำหรับแบบฟอร์ม */
.login-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

/* เพิ่มขนาดโลโก้ */
.logo {
    width: 40%;
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

/* หัวข้อระบบ */
h2 {
    margin-bottom: 25px;
    margin-top: -20px;
    font-weight: 700;
    color: #333;
}

/* ฟอร์มกรอกข้อมูล */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ป้ายกำกับ */
label {
    text-align: left;
    width: 100%;
    margin: 12px 0 5px;
    font-weight: 600;
    color: #555;
}

/* ช่องกรอกข้อมูล */
input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.3s;
    font-family: 'Kanit', sans-serif;
}

input:focus {
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

/* ปุ่มเข้าสู่ระบบ */
button {
    background: #007BFF;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    margin-top: 10%;
    width: 100%;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
}

button:hover {
    background: #0056b3;
}

/* ข้อความแจ้งเตือนข้อผิดพลาด */
.error-message {
    color: red;
    font-size: 14px;
    margin-top: 15px;
}

/* ป๊อบอัพแจ้งเตือน */
.custom-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 9999;
    width: 300px;
    animation: fadeIn 0.3s ease-in-out;
}

/* เอฟเฟกต์แสดงป๊อบอัพ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* ไอคอนแจ้งเตือน */
.popup-icon {
    width: 40px;
    /* ปรับขนาดไอคอนให้เหมาะสม */
    height: 40px;
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ปุ่มปิดป๊อบอัพ */
.custom-popup button {
    background: #007BFF;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.custom-popup button:hover {
    background: #0056b3;
}

/* สีของป๊อบอัพตามประเภท */
.custom-popup.error {
    border-left: 5px solid red;
}

.custom-popup.success {
    border-left: 5px solid green;
}

.custom-popup.info {
    border-left: 5px solid blue;
}

/* Card container for header and content */
.header-card, .content-card {
    width: 100%;
    max-width: 440px; /* 10% larger than the form */
    padding: 20px;
    margin: 20px auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

/* Padding for employee info and checklist cards */
.card {
    padding: 20px;
    margin-bottom: 20px;
}

/* Header background color */
.header {
    background-color: #003366; /* Dark blue background */
    padding: 20px;
    border-radius: 15px;
    position: relative;
}

/* กำหนดฟอนต์เฉพาะสำหรับฟอร์มและปุ่ม */
input, button, select, textarea, label, .error-message, .custom-popup p {
    font-family: 'Kanit', sans-serif !important;
}

.mobile-logo-container {
    position: relative;
    top: -90px;
    text-align: center;
    margin-bottom: -60px;
    z-index: 2;
}

.mobile-logo {
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    /* box-shadow: 0 4px 8px rgba(0,0,0,0.15); */
}