/* @import url('https://fonts.googleapis.com/css2?family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); */

/* * {
    font-family: "Kanit", sans-serif;
    font-weight: 400;
    font-style: normal;
    box-sizing: border-box;
} */
.wrapper {
    background: #ececec;
    padding: 0 20px 0 20px;
}
.main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.side-image {
    background-image: url("../images//background//1679504295_en-idei-club-p-progra.png");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 10px 0 0 10px;
    position: relative;
}
.row {
    width: 900px;
    height: 550px;
    border-radius: 10px;
    background: #fff;
    padding: 0px;
    box-shadow: 5px 5px 10px 1px rgba(0,0,0,0.2);
}
.text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.text p {
    color: #fff;
    font-size: 20px;
}
i {
    font-weight: 400;
    font-size: 15px;
}
.right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.input-box {
    width: 330px;
    box-sizing: border-box;
    padding: 20px;
}
.input-box header {
    font-weight: 700;
    text-align: center;
    margin-bottom: 45px;
    font-size: 16px;
}
.input-field {
    position: relative;
    margin-bottom: 30px; /* เพิ่มระยะห่างระหว่าง input */
}
.input {
    height: 45px;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    outline: none;
    padding: 15px 0 5px 0; /* ปรับ padding เพื่อให้ข้อความไม่ติดขอบ */
    color: #40414a;
    font-size: 16px;
}
.input-box .input-field label {
    position: absolute;
    top: 20px; /* ปรับตำแหน่งเริ่มต้นของ label */
    left: 0;
    pointer-events: none;
    transition: 0.5s;
    font-size: 16px;
    color: #666;
}
.input-field input:focus ~ label,
.input-field input:valid ~ label {
    top: 0; /* เลื่อน label ขึ้นเมื่อโฟกัส */
    font-size: 12px;
    color: #5d5076;
}
.input-field .input:focus,
.input-field .input:valid {
    border-bottom: 1px solid #743ae1;
}
.captcha-field {
    position: relative;
}
.captcha-display {
    position: absolute;
    right: 0;
    top: 8px; /* ขยับขึ้นไปเหนือเส้นขอบ input */
    display: flex;
    align-items: center;
}
.captcha-wrapper {
    display: flex;
    align-items: center;
    background: #f0f0f0; /* กรอบสีเทาอ่อน */
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 3px 8px; /* ลด padding เพื่อให้เล็กลง */
}
.captcha-wrapper img {
    width: 80px; /* ลดขนาดความกว้าง */
    height: 25px; /* ลดขนาดความสูง */
    margin-right: 6px; /* ลดระยะห่างระหว่างภาพและไอคอน */
}
.captcha-wrapper i {
    cursor: pointer;
    font-size: 14px; /* ลดขนาดไอคอนให้สมดุล */
    color: #666;
}
.captcha-wrapper i:hover {
    color: #000;
}
.btn-dark {
    border: none;
    outline: none;
    height: 45px;
    background: #000;
    border-radius: 5px;
    transition: 0.4s;
    color: #fff;
    width: 100%;
    font-size: 16px;
}
.btn-dark:hover {
    background: #333;
}
.form-check {
    margin-bottom: 20px;
}
.form-check-label {
    margin-left: 5px;
    font-size: 14px;
}

@media only screen and (max-width: 768px) {
    .side-image {
        border-radius: 10px 10px 0 0;
    }
    .text {
        position: absolute;
        top: 70%;
        text-align: center;
    }
    .text p, i {
        font-size: 16px;
    }
    .row {
        max-width: 420px;
        width: 100%;
    }
    .input-box {
        width: 100%;
        padding: 15px;
    }
    .captcha-wrapper img {
        width: 60px; /* ลดขนาดในหน้าจอเล็ก */
        height: 20px;
    }
    .captcha-wrapper i {
        font-size: 12px;
    }
}

.alert-box {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 1px solid #f5c6cb;
    font-size: 15px;
    max-width: 360px;
}