/* --- 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á nhạt */
    /* Gỡ bỏ thuộc tính flex ở body gốc để không làm co vỡ cấu trúc banner/footer */
}

/* KHỐI TRUNG GIAN BAO BỌC GIÚP NỘI DUNG FORM NẰM GIỮA TRANG VÀ TO ĐÚNG KHỔ */
.main-content {
    width: 100%;
    min-height: calc(100vh - 270px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0;
}

/* ==========================================================================
   ĐIỀU CHỈNH LOGO VÀ BANNER ĐẦU TRANG (TO RÕ 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; /* Kích thước chuẩn to đẹp của logo */
    width: auto;
    display: block;
    object-fit: contain;
}

.banner-box {
    flex: 1;
    display: flex;
    align-items: center;
}

.banner-img {
    width: 100%;
    height: 120px; /* Cao bằng logo */
    object-fit: fill; /* Kéo phẳng khít khung chữ nhật như ảnh 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;
}


/* --- KHU VỰC WRAPPER & CONTAINER GỐC 100% CỦA BẠN --- */
.wrapper {
    width: 100%;
    max-width: 400px; /* Độ rộng form gốc */
    padding: 20px;
}

/* --- KHUNG FORM --- */
.container {
    background-color: #ffffff;
    padding: 35px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(76, 175, 80, 0.15); /* Đổ bóng 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;
}

h2 {
    text-align: center;
    color: #4caf50; /* Xanh lá tươi */
    font-size: 18px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

/* --- CÁC NHÓM INPUT --- */
.user, .pass {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #4a3429;
    font-size: 14px;
    font-weight: bold;
}

.text {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #a5d6a7; /* Viền xanh nhạt */
    border-radius: 10px;
    font-size: 14px;
    color: #4a3429;
    outline: none;
    transition: 0.3s ease;
}

.text:focus {
    border-color: #2e7d32; /* Xanh đậm khi focus */
    box-shadow: 0 0 8px rgba(46, 125, 50, 0.15);
}

/* --- NÚT ĐĂNG KÝ (ĐÃ FIX KHỬ GIAO DIỆN HỆ THỐNG ĐỂ HIỂN THỊ CHUẨN 100% NHƯ HÌNH ĐĂNG NHẬP) --- */
.button {
    margin-top: 25px;
}

.button input[type="submit"] {
    width: 100%;
    padding: 14px;
    background-color: #4caf50;
    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);
    /* Bổ sung để xóa bỏ hoàn toàn kiểu dáng mặc định trên trình duyệt điện thoại/máy tính */
    -webkit-appearance: none;
    appearance: none;
}

.button input[type="submit"]:hover {
    background-color: #2e7d32;
    transform: translateY(-1px);
}

/* --- LINKS --- */
.textf {
    display: flex;
    justify-content: center;
    font-size: 13px;
    margin-top: 15px;
    color: #7d665a;
}

.textf a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: bold;
    margin-left: 5px;
}

.textf a:hover {
    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;
}

/* Xử lý 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;
    }
}