/* Import Font: Prompt */
@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
    /* Theme Colors (ตรงกับ style.css หลัก) */
    --primary-color: #88b04b;      /* เขียวใบเตย */
    --primary-dark: #6a8a3a;       /* เขียวเข้ม */
    --secondary-color: #5d4037;    /* น้ำตาลไหม้/เปลือกไม้ */
    --bg-cream: #faf9f6;           /* สีครีมไข่ไก่จางๆ */
    --white-color: #ffffff;
}

/* 🔹 พื้นหลังหลัก */
body.login-page {
    background-color: var(--bg-cream); /* พื้นหลังสีครีม */
    background-image: radial-gradient(#88b04b 0.5px, transparent 0.5px); /* ลายจุดจางๆ */
    background-size: 20px 20px;
    min-height: 100vh;
    font-family: 'Prompt', sans-serif;
    color: var(--secondary-color);
}

/* 🔹 กล่องหลัก */
.login-container {
    max-width: 900px;
    padding: 20px;
}

.login-box {
    background: #ffffff;
    border-radius: 20px; /* ปรับมุมให้มนขึ้น ดูละมุน */
    overflow: hidden;
    min-height: 550px;
    box-shadow: 0 20px 60px rgba(93, 64, 55, 0.1); /* เงาสีน้าตาลจางๆ */
    border: 1px solid rgba(136, 176, 75, 0.2); /* เส้นขอบสีเขียวจางๆ */
}

/* 🔹 ฝั่งซ้าย (รูปภาพ) */
.login-left {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f8e9;
    padding: 0;
    overflow: hidden;
    position: relative;
}

.login-left-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}
/* Effect Zoom รูป */
.login-left:hover .login-left-img {
    transform: scale(1.05);
}
/* Overlay สีเขียวจางๆ ทับรูป */
.login-left::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(136, 176, 75, 0.3));
    pointer-events: none;
}

/* 🔹 ฝั่งขวา (ฟอร์ม) */
.login-right {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem !important;
}

/* 🔹 Typography */
.brand-logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    display: inline-block;
    color: var(--secondary-color);
    text-decoration: none;
    text-transform: uppercase;
}
.brand-logo span {
    color: var(--primary-color);
}

.title {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.welcome-text {
    color: #8d8d8d;
    font-size: 0.95rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

/* 🔹 ช่องกรอก (Form Elements) */
.login-form .form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.login-form .form-control {
    background-color: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 10px; /* มน */
    color: #333;
    height: 48px;
    padding: 0 15px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.login-form .form-control:focus {
    border-color: var(--primary-color); /* โฟกัสสีเขียว */
    box-shadow: 0 0 0 4px rgba(136, 176, 75, 0.1);
    background-color: #fff;
}

/* 🔹 ปุ่ม Login */
.btn-login {
    background: var(--primary-color);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 12px;
    font-size: 1rem;
    border-radius: 50px; /* ปุ่มรี */
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    width: 100%;
    box-shadow: 0 4px 15px rgba(136, 176, 75, 0.3);
}

.btn-login:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(136, 176, 75, 0.4);
}

/* Link กลับหน้าเว็บ */
.back-link {
    color: #999;
    font-size: 0.9rem;
    text-decoration: none;
    transition: 0.3s;
}
.back-link:hover {
    color: var(--primary-color);
}

/* 🔹 Responsive */
@media (max-width: 768px) {
    .login-left {
        display: none; 
    }
    .login-right {
        padding: 2rem !important;
    }
}