/* ====================================================
   1) GLOBAL & FONT
==================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Sarabun', sans-serif;
}

body {
    background: #f1f4f9; /* สีพื้นหลังเทาอมฟ้าอ่อนแบบในรูป */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* ====================================================
   2) LAYOUT WRAPPER
==================================================== */
.login-wrapper {
    display: flex;
    max-width: 820px;
    width: 100%;
    gap: 20px; /* ลดช่องว่างระหว่างกล่อง */
    align-items: flex-start;
}

/* ====================================================
   3) LOGIN CONTAINER (ฝั่งซ้าย)
==================================================== */
.login-container {
    flex: 1;
    background: #ffffff;
    padding: 30px 40px; /* ลด Padding ให้ชิดขึ้น */
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.login-container h2 {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px; /* ชิดข้อความด้านล่างมากขึ้น */
    color: #1e293b;
}

.login-container p.welcome-desc {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
}

/* ====================================================
   4) ROLE TOGGLE (ปุ่มเลือกสถานะ)
==================================================== */
.role-toggle-wrapper {
    margin-bottom: 15px; /* ลดระยะห่าง */
}

.role-toggle-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    display: block;
}

.role-toggle {
    background: #f1f5f9;
    height: 40px;
    border-radius: 10px;
    position: relative;
    display: flex;
    padding: 3px;
    cursor: pointer;
}

.role-toggle .slider {
    position: absolute;
    width: calc(50% - 3px);
    height: calc(100% - 6px);
    background: #3b82f6; /* สีน้ำเงินหลัก */
    border-radius: 8px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.role-toggle .option {
    flex: 1;
    text-align: center;
    line-height: 34px;
    z-index: 2;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    transition: 0.3s;
}

.role-toggle .option.active {
    color: #ffffff;
}

/* ====================================================
   5) INPUT FIELDS
==================================================== */
.login-container label {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
    display: block;
}

.login-container input {
    width: 100%;
    padding: 10px 15px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    margin-bottom: 12px; /* ช่องว่างระหว่าง Input */
    transition: 0.2s;
}

.login-container input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* ====================================================
   6) BUTTON & LINKS
==================================================== */
.login-container .btn {
    width: 100%;
    padding: 12px;
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 5px;
    transition: 0.2s;
}

.login-container .btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.login-container .reg-link {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
}

.login-container a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

/* ====================================================
   7) INFO BOX (ฝั่งขวา)
==================================================== */
.info-box {
    width: 320px;
    background: #ffffff;
    padding: 20px 25px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.info-box h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
}

.info-box p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
    line-height: 1.5;
}

.info-box hr {
    border: none;
    border-top: 1px solid #f1f5f9;
    margin: 12px 0;
}

/* ====================================================
   8) RESPONSIVE
==================================================== */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        align-items: center;
    }
    .info-box {
        width: 100%;
    }
}