/* Reset some default browser styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f9; /* Soft light grey */
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

/* Centering the login container */
.container {
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin: 20px;
}

/* Left side (image) */
.image-section {
    display: flex;
    justify-self: center;
    flex: 1;
    max-width: 50%;
    padding-right: 20px;
}

.login-image {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

/* Right side (form) */
.login-form-container {
    flex: 1;
    max-width: 50%;
    padding-left: 20px;
}

/* Header for login form */
h3 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
}

h1 {
    font-size: 0.9rem; /* ขนาดตัวอักษรที่เล็กลง */
    color: #333; /* สีตัวอักษร */
    opacity: 0.5; /* ทำให้ตัวอักษรจาง */
    text-align: left;
    margin-bottom: 20px;
}

/* Form styling */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    width: 100%;
    font-size: 1em;
    color: #555;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    font-size: 1.1em;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fafafa;
    transition: border-color 0.3s ease-in-out;
}


.form-control:focus {
    border-color: #81bcff; /* Green on focus */
    outline: none;
}

/* Button styling */
.btn {
    padding: 14px 0;
    font-size: 1.1em;
    text-align: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 2px solid #000000;
    width: 100%;
}

.btn-primary {
    background-color: #ff6666; /* Green color */
    color: white;
}

.btn-primary:hover {
    background-color: #ca5858;
}

.btn-secondary {
    background-color: #ddd; /* Light grey */
    color: #333;
}

.btn-secondary:hover {
    background-color: #bbb;
}

/* Footer text */
.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 1em;
    color: #777;
}

.login-footer a {
    color: #5591ff;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Horizontal rule */
hr {
    margin: 20px 0;
    border-top: 1px solid #eee;
}

/* Back to homepage button */
.btn-back {
    background-color: #ccc; /* Light grey */
    color: #333;
    margin-top: 10px;
}

.btn-back:hover {
    background-color: #bbb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding: 20px;
    }

    .image-section {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .login-form-container {
        max-width: 100%;
    }
}
