* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    /* พื้นหลังแบบมี Overlay สีเข้มทับรูป เพื่อให้ Form ลอยเด่น */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('/images/welcome/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* เอฟเฟกต์ทางเข้า (Entrance Animation) */
@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.login-container {
    background: rgba(255, 255, 255, 0.1); /* ขาวบางๆ */
    backdrop-filter: blur(15px); /* หัวใจของความว้าว: กระจกฝ้า */
    -webkit-backdrop-filter: blur(15px);
    padding: 50px 40px;
    width: 100%;
    max-width: 420px;
    border-radius: 15px; /* มนขึ้นหน่อยดูพรีเมียม */
    border: 1px solid rgba(255, 255, 255, 0.2); /* ขอบกระจก */
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
    text-align: center;
    color: #fff;
    animation: fadeInScale 0.6s ease-out;
}

.brand-name {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 10px;
    color: #f1c40f; /* สีทอง/เหลืองประจำแบรนด์ */
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.login-container h1 {
    font-weight: 300;
    font-size: 18px;
    margin-bottom: 35px;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.8);
}

.form-group {
    margin-bottom: 25px;
    display: flex;
    border-radius: 8px;
    overflow: hidden; /* ให้ Input กับ Label โค้งตามกัน */
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.form-group:focus-within {
    transform: translateY(-3px); /* ยกตัวขึ้นเมื่อคลิก */
}

.label-box {
    background: #f1c40f;
    color: #333;
    padding: 0 15px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    min-width: 100px;
}

input[type="text"], input[type="password"] {
    width: 100%;
    padding: 14px 15px;
    border: none;
    outline: none;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
}

.action-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

/* ปุ่ม Login แบบมี Gradient และ Glow */
.btn-login {
    background: linear-gradient(135deg, #005f8d 0%, #0089cc 100%);
    color: white;
    border: none;
    padding: 12px 35px;
    border-radius: 30px; /* ทรงแคปซูลดูสมัยใหม่ */
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 95, 141, 0.4);
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 95, 141, 0.6);
    filter: brightness(1.1);
}

.forgot-link {
    display: block;
    margin-top: 25px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
}

.forgot-link:hover {
    color: #f1c40f;
}

/* Checkbox Customization */
label {
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}