:root {
    --primary-color: #6366f1;
    --line-color: #06C755;
    /* Metal Palette */
    --metal-shine: #818cf8;
    --metal-base: #4338ca;
    --metal-shadow: #2e26a3;
}

body {
    font-family: 'Kanit', sans-serif;
    background-color: #ffffff; /* พื้นหลังหน้าจอสีขาวตามโจทย์ */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 1100px;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid #edf2f7;
}

/* ส่วนซ้าย: Metallic 3D Side */
.image-side {
    /* ไล่เฉดสีแบบโลหะสะท้อนแสง */
    background: linear-gradient(145deg, var(--metal-shine) 0%, var(--metal-base) 45%, var(--metal-base) 55%, var(--metal-shadow) 100%);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    /* เพิ่มขอบนูนแบบ Bezel */
    box-shadow: 
        inset 3px 3px 6px rgba(255, 255, 255, 0.2), 
        inset -3px -3px 6px rgba(0, 0, 0, 0.3);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

/* เพิ่มเส้นเงาสะท้อนผ่านหน้าแผ่นเหล็ก */
.image-side::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,0.1) 45%, rgba(255,255,255,0.1) 50%, transparent 55%);
    pointer-events: none;
}

.logo-img {
    max-width: 150px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.3));
    z-index: 2;
}

.qr-wrapper {
    /* สไตล์แบบยุบตัวลงไปในเนื้อโลหะ (Debossed) */
    background: rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        inset 4px 4px 8px rgba(0, 0, 0, 0.3),
        1px 1px 0px rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
    z-index: 2;
}

.qr-box {
    background: white;
    padding: 10px;
    border-radius: 14px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.line-btn {
    background-color: var(--line-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(6, 199, 85, 0.3);
    z-index: 2;
}

.line-btn:hover {
    background-color: #05b34c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(6, 199, 85, 0.4);
}

/* ส่วนขวา: ฟอร์ม Login */
.form-side {
    padding: 4rem;
    background: white;
}

.form-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #4b5563;
}

.form-control {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid #e5e7eb;
    background-color: #f9fafb;
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
    background-color: #fff;
}

.password-field-group {
    position: relative;
}

.btn-toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    z-index: 10;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: #4f46e5;
    box-shadow: 0 10px 15px rgba(99, 102, 241, 0.2);
}

/* สำหรับมือถือ */
@media (max-width: 991.98px) {
    .image-side {
        padding: 3rem 1.5rem;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    .form-side {
        padding: 2.5rem 1.5rem;
    }
    .login-card {
        border-radius: 16px;
        box-shadow: none;
        border: none;
    }
}