﻿
/* Animation Fade In */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ใส่กับ body หรือ wrapper หลัก */
.split-wrapper {
    animation: fadeIn 0.8s ease-out both;
}

/* รีเซ็ตพื้นฐาน */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Kanit', sans-serif;
    overflow-x: hidden;
}

/* Layout แบ่งสองฝั่ง */
.split-wrapper {
    display: flex;
    min-height: 100vh;
}

/* ฝั่งซ้าย */
.left-pane {
    flex: 1.3;
    background-color: #;
    background-image: url('/img/bga1.png'); /* ใช้พื้นหลังถ้ามี */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    overflow: hidden;
}
.video-wrapper {
    width: 100%;
    max-width: 900px; /* เพิ่มความกว้างได้ตามต้องการ */

    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin: 0 auto; /* จัดให้อยู่ตรงกลาง */
}


    .video-wrapper video {
        width: 100%;
        height: 100%;
      /* เติมพื้นที่แบบตัดขอบให้เนียน */
        display: block;
    }


/* โลโก้มุมบนซ้าย */
.logo-top-left {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 80px;
    object-fit: contain;
}

.divider {
    width: 1px;
    height: 40px;
    background-color: #ccc;
}

/* กล่องเนื้อหา */
.content {
    text-align: center;
    max-width: 500px;
    width: 100%;
    padding-top: 100px; /* ไม่ให้ชนโลโก้ */
}
.heading-left {
    font-size: 1.6rem;
    color: black; /* สีตัวอักษรให้อ่านง่าย */
    margin-bottom: 1.5rem;
    line-height: 1.4;
    padding: 1rem 1.5rem; /* เพิ่มระยะห่างด้านใน */
    border-radius: 12px; /* ขอบมน */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* เงาเบาๆ */
    display: inline-block; /* ให้ขนาดครอบข้อความพอดี */
}
.heading-login {
    font-size: 1.4rem;
    color: #e65c00;
    margin-bottom: 24px;
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}
video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    margin-top: 1rem;
}

/* ฝั่งขวา */
.right-pane {
    flex: 1;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

.form-group {
    margin-bottom: 1rem;
    text-align: left;
}

.form-control {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
}

.btn-login {
    background-color: #ff6a00;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 1rem;
    width: 100%;
    border-radius: 8px;
    margin-top: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}
.btn-logins {
    background-color: #2082d2;
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 1rem;
    width: 100%;
    border-radius: 8px;
    margin-top: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .btn-login:hover {
        background-color: #e65c00;
    }

.note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
}

/* มือถือ: เรียงลงมา */
@media (max-width: 768px) {
    .split-wrapper {
        flex-direction: column;
    }

    .left-pane, .right-pane {
        width: 100%;
        padding: 2rem;
    }

    .content {
        padding-top: 60px;
    }

        .content h2 {
            font-size: 1.3rem;
        }
}
