/* General Styles & Font */
body {
    margin: 0;
    font-family: 'Kanit', sans-serif;
    color: #333;
    background-color: #f4f4f9;
}

/* Main Layout Container */
.main-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Side (Info & Graphics) */
.info-side {
    flex: 1;
    /* --- นี่คือส่วนที่เปลี่ยนสีพื้นหลังเป็นสีฟ้าตามรูปภาพ --- */
    background-color: #3498db; 
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    box-sizing: border-box;
}

.info-content {
    max-width: 450px;
}

.info-content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    margin: 0 0 10px 0;
    opacity: 0.9;
}

.info-content h1 {
    font-size: 3.2rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.info-content p {
    font-size: 1.1rem;
    font-weight: 300;
}

/* Right Side (Form) */
.form-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    padding: 40px;
    box-sizing: border-box;
}

.form-container {
    width: 100%;
    max-width: 400px;
}

.form-container h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
}

/* Form Elements Styling */
.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6; /* Icon color */
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 50px; /* Left padding to make space for the icon */
    border: 1px solid #bdc3c7;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Kanit', sans-serif;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: #3498db; /* Highlight color on focus */
}

.input-group input::placeholder {
    color: #95a5a6;
}

button[type="submit"] {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 8px;
    /* --- ใช้สีฟ้าเดียวกันกับพื้นหลังเพื่อความสวยงาม --- */
    background-color: #3498db;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Kanit', sans-serif;
    cursor: pointer;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #2980b9; /* A slightly darker blue for hover effect */
}

/* Responsive Design for smaller screens */
@media (max-width: 800px) {
    .main-container {
        flex-direction: column;
    }

    .info-side {
        padding: 60px 20px;
        text-align: center;
        min-height: 30vh;
    }
}