/* ==================== RESET & NỀN TRANG GỐC CỦA BẠN ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f1f8e9; /* Nền xanh lá siêu nhạt ngọt ngào */
    /* Đã loại bỏ flex cũ ở body để không bóp nghẹt Header/Footer */
}

/* KHỐI TRUNG GIAN ĐỂ GIỮ FORM CÂN ĐỐI Ở GIỮA, KHÔNG LÀM MÉO TRANG WEB */
.main-content {
    width: 100%;
    min-height: calc(100vh - 270px); /* Tự căn chỉnh vùng không gian giữa đầu và chân trang */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

/* ==========================================================================
   ĐIỀU CHỈNH LOGO VÀ BANNER ĐẦU TRANG (ĐỒNG BỘ CHUẨN TỈ LỆ)
   ========================================================================== */
.top-banner {
    width: 100%;
    background-color: #ffffff;
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo-box {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.logo-circle-img {
    height: 150px; /* To rõ ràng và không mờ */
    width: auto;
    display: block;
    object-fit: contain;
}

.banner-box {
    flex: 1;
    display: flex;
    align-items: center;
}

.banner-img {
    width: 110%;
    height: 120px; /* Cao bằng khít với logo tạo sự liền mạch */
    object-fit: fill; /* Kéo phẳng đều giống hệt thiết kế mẫu */
    border-radius: 4px;
}

/* THANH MENU NAV BAR ĐỒNG BỘ */
.menu {
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #dcdcdc;
    height: 50px;
    width: 100%;
}

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.menu-links, .menu-auth {
    display: flex;
    align-items: center;
    height: 100%;
}

.menu-links a, .menu-auth a {
    text-decoration: none;
    color: #004d20; 
    font-size: 15px;
    font-weight: bold;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 100%;
    transition: background-color 0.2s;
}

.menu-auth a.active {
    background-color: #e8f5e9; 
}

.menu-links a:hover, .menu-auth a:hover {
    background-color: #f5f5f5;
}


/* ==================== KHƯ VỰC WRAPPER & CONTAINER GỐC CỦA BẠN 100% ==================== */
.wrapper {
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.container {
    background-color: #ffffff;
    width: 100%;
    max-width: 400px;
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.15); /* Đổ bóng màu xanh lá */
    border: 1px solid #c8e6c9;
}

.brand-title {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #1b5e20; /* Xanh lá đậm */
    margin-bottom: 5px;
}

.container h2 {
    text-align: center;
    color: #4caf50; /* Xanh lá hài hòa */
    font-size: 18px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== CÁC Ô NHẬP LIỆU (INPUT) GỐC ==================== */
.user, .pass {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #4a3429;
    font-size: 14px;
    font-weight: bold;
}

.container .text {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #a5d6a7; /* Viền xanh lá nhạt */
    border-radius: 10px;
    font-size: 14px;
    color: #4a3429;
    background-color: #f9fdf9;
    outline: none;
    transition: 0.3s ease;
}

.container .text:focus {
    border-color: #2e7d32; /* Đổi sang viền xanh đậm khi focus */
    box-shadow: 0 0 8px rgba(46, 125, 50, 0.15);
    background-color: #ffffff;
}

/* ==================== GHI NHỚ ĐĂNG NHẬP GỐC ==================== */
.Remember {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.Remember input[type="checkbox"] {
    accent-color: #2e7d32; /* Dấu tích màu xanh đậm */
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.Remember label {
    margin-bottom: 0;
    margin-left: 8px;
    font-weight: normal;
    color: #7d665a;
    cursor: pointer;
    user-select: none;
}

/* ==================== NÚT SUBMIT GỐC ==================== */
.button {
    margin-bottom: 20px;
}

.button input[type="submit"] {
    width: 100%;
    padding: 14px;
    background-color: #4caf50; /* Xanh lá chủ đạo */
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s ease;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.2);
}

.button input[type="submit"]:hover {
    background-color: #2e7d32; /* Xanh đậm khi di chuột */
    box-shadow: 0 6px 14px rgba(46, 125, 50, 0.35);
    transform: translateY(-1px);
}

/* ==================== LINK QUÊN MẬT KHẨU & ĐĂNG KÝ GỐC ==================== */
.textf {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.textf a {
    color: #2e7d32;
    text-decoration: none;
    transition: 0.3s;
}

.textf a:hover {
    color: #1b5e20;
    text-decoration: underline;
}


/* ==========================================================================
   BỔ SUNG CHÂN TRANG (FOOTER ĐỒNG BỘ CHUẨN)
   ========================================================================== */
.footer {
    background-color: #ffffff;
    border-top: 1px solid #e0e0e0;
    padding-top: 40px;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    color: #004d20;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

.footer-column p {
    color: #555555;
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 10px;
}

.footer-column a {
    color: #555555;
    text-decoration: none;
}

.footer-column a:hover {
    color: #4caf50;
}

.footer-bottom {
    background-color: #e8f5e9;
    text-align: center;
    padding: 15px 20px;
    margin-top: 40px;
    width: 100%;
}

.footer-bottom p {
    color: #333333;
    font-size: 14px;
    margin: 0;
}

/* Thiết lập responsive trên Mobile */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 10px;
    }
    .logo-circle-img, .banner-img {
        height: auto;
        max-height: 70px;
    }
    .footer-container {
        flex-direction: column;
    }
}