﻿.gradient-text {
    color: #ff7e5f; /* สีข้อความปกติที่ต้องการ */
    background: none !important; /* ลบ background ทุกกรณี */
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: unset !important;
    background-clip: unset !important;
}


/* reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}



body {
    /*background: linear-gradient(135deg, #89f7fe, #66a6ff);*/
    background: linear-gradient(to right, #FF6B6B, #4A90E2);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* เปลี่ยนจาก flex center เป็น padding */
    display: block;
    padding-top: 20px; /* 👈 ย้ายกรอบลงจากขอบบนเล็กน้อย */
}



.login-container {
    display: flex;
    flex-direction: row;
    width: 80%; /* ✅ เปลี่ยนจาก max-width เป็น % */
    max-width: 380px;
    margin: 10px auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    flex-wrap: nowrap;
    transition: all 0.3s ease;
}

    .login-container:hover {
        box-shadow: 4px 4px 8px #bec4d2, -4px -4px 8px #ffffff;
    }

/* หัวข้อ */
.login-container h2 {
    text-align: center;
    color: #333;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: 1px;
}




.logo-box {
    width: 20%;
    display: flex;
    justify-content: flex-start; /* ✅ ให้โลโก้ชิดซ้าย */
    align-items: center;
    padding: 5px; /* ✅ ลด padding ให้ชิด */
    background: #fff;
 
}

.logo-img {
    width: 60px;
    height: auto;
    object-fit: contain;
}



.login-box {
    flex: 1 1 40%;
    padding: 30px;

    background: linear-gradient(to bottom right, #ffffff, #f0f4f8);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

    .login-box h2 {
        margin-bottom: 20px;
        color: #333;
    }



/* input group */
.input-group {
    margin-bottom: 11px;
    width: 100%;
}

/* input 3D */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 2px;
    font-size: 14px;
    border: none;
    border-radius: 10px;
    background: #f0f0f3;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.1), inset -2px -2px 5px rgba(255,255,255,0.7), 0 4px 10px rgba(0, 0, 0, 0.05); /* เงา + แสง */
    transition: box-shadow 0.3s ease;
}

input:focus {
    outline: none;
    box-shadow: inset 1px 1px 2px rgba(0,0,0,0.1), inset -1px -1px 2px rgba(255,255,255,0.6), 0 0 0 2px #4A90E2; /* แสดงขอบสีน้ำเงินตอน focus */
}

/* ปุ่ม login สวน */
.btn-login {
    width: 100%;
    padding: 10px 12px;
    font-size: 1.2rem;
    border-radius: 10px;
    border: none;
    color: #fff;
    background: linear-gradient(145deg, #a8e6cf, #56c596); /* ไล่สีเขียวอ่อน */
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(86, 197, 150, 0.5); /* เงานุ่มๆ สีเขียว */
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

    .btn-login:hover {
        background: linear-gradient(145deg, #6bd7a9, #3ca974); /* สีเขียวเข้มขึ้น */
        box-shadow: 0 0 20px 6px rgba(86, 197, 150, 0.75); /* แสงสว่างเพิ่มขึ้น */
    }

/* checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #555;
}

    .checkbox-group input[type="checkbox"] {
        margin-right: 8px;
        width: 16px;
        height: 16px;
        cursor: pointer;
    }

/* forgot password */
.forgot-password {
    margin-top: 15px;
    text-align: right;
}

    .forgot-password a {
        font-size: 0.9rem;
        color: #4caf50;
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }

        .forgot-password a:hover {
            color: #388e3c;
        }

/* error message */
.error-msg {
    color: #e74c3c;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
    text-align:left ;

}




/* Responsive */
@media screen and (max-width: 768px) {
    .login-container {
        flex-direction: row; /* ✅ คงแนวนอน */
        flex-wrap: nowrap;
        width: 80%;
        gap: 0; /* ✅ ลบช่องว่างระหว่างกล่อง */
    }

    .logo-box {
        width: 20%;
        padding: 5px; /* ✅ ลด padding ให้แนบ */
        margin: 0; /* ✅ ไม่ให้มีระยะห่าง */
    }

    .login-box {
        width: 70%;
        padding: 15px; /* ✅ ลด padding ให้ใกล้โลโก้ */
        margin: 0;
    }
}