﻿.btn_signin {
    border-radius: 15px;
    padding: 5px 20px;
    color: #fff;
    background: #2A7B9B;
    background: linear-gradient(90deg, rgba(42, 123, 155, 1) 0%, rgba(87, 199, 133, 1) 50%);
}

.modal-content{
    background:none !important;
    border:0px !important;
}

.modal-header{
    border:0px !important;
}

.modal-dialog .btn-close {
    --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath stroke='white' stroke-width='2' d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
}

/*.modal-dialog .btn-close {*/
    /* กำหนดให้ไอคอนปุ่มเป็นสีขาว */
    /*--bs-btn-close-color: #fff;*/
    /* เพื่อให้มองเห็นปุ่มได้ชัดเจน ควรเพิ่มเงาหรือสีพื้นหลัง */
    /*--bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
}*/

    /* เพิ่มการปรับสีเมื่อโฮเวอร์ */
    .modal-dialog .btn-close:hover {
        --bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23eee'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
    }

.box_sign_in {
    display: flex;
    width: 100%;
    max-width: 1200px; /* จำกัดความกว้างสูงสุดของ container */
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

/* ส่วนรูปภาพ */
.image-section {
    flex: 1; /* ให้ส่วนนี้ขยายเต็มพื้นที่ */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
}

    .image-section img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* ทำให้รูปภาพครอบคลุมพื้นที่โดยไม่เสียสัดส่วน */
    }

/* ส่วนฟอร์ม */
.form-section {
    flex: 1; /* ให้ส่วนนี้ขยายเต็มพื้นที่ */
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-content {
    width: 100%;
    max-width: 400px;
}

h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.input-group {
    margin-bottom: 20px;
}

    .input-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: bold;
        color: #555;
    }

    .input-group input {
        width: 100%;
        padding: 12px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 16px;
    }

/*button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}*/

    button:hover {
        background-color: #0056b3;
    }

.footer-links {
    text-align: center;
    margin-top: 20px;
}

    .footer-links a {
        color: #007bff;
        text-decoration: none;
    }

        .footer-links a:hover {
            text-decoration: underline;
        }

    .footer-links span {
        margin: 0 10px;
        color: #ccc;
    }

/* การปรับหน้าตาสำหรับอุปกรณ์มือถือ (หน้าจอแคบกว่า 768px) */
@media (max-width: 768px) {
    .box_sign_in {
        flex-direction: column; /* เปลี่ยนเป็นเรียงจากบนลงล่าง */
        width: 100%; /* ลดความกว้างสำหรับมือถือ */
    }

    .image-section {
        height: 200px; /* กำหนดความสูงของรูปภาพบนมือถือ */
    }

    .form-section {
        padding: 20px;
    }
}
