/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;

}

/* CSS cho Header */
#header {
    background-color: #fff;
    padding: 5px 0; /* Thu hẹp thanh xanh lá phía trên */
    border-top: 30px solid #0B3D2E; /* Giảm chiều cao của viền trên */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* Đổ bóng nhẹ */
    z-index: 1000;
    position: relative;
}

.navbar-container {
    display: flex;
    justify-content: space-between; /* Căn đều các phần tử */
    align-items: center; /* Căn giữa các phần tử theo chiều dọc */
    flex-wrap: nowrap; /* Đảm bảo các phần tử không xuống dòng */
    width: 100%;
}

.logo {
    margin-right: 20px; /* Khoảng cách giữa logo và phần tiếp theo */
}

/* Thu nhỏ kích thước logo */
.logo img {
    height: 60px; /* Giảm kích thước logo */
    width: auto;  /* Đảm bảo tỷ lệ của logo không bị biến dạng */
}

.navbar-menu {
    display: flex; /* Sử dụng Flexbox để xếp các menu items theo chiều ngang */
    align-items: center; /* Căn giữa các item trong menu theo chiều dọc */
    gap: 10px; /* Giảm khoảng cách giữa các menu items */
    margin-left: 20px; /* Khoảng cách từ menu tới các phần tử khác trong header */
}

.navbar-nav {
    display: flex; /* Đảm bảo các phần tử li nằm trên cùng một hàng */
    list-style-type: none; /* Bỏ dấu chấm ở mỗi item */
    padding: 0; /* Loại bỏ padding mặc định của ul */
    margin: 0; /* Loại bỏ margin mặc định của ul */
}

.navbar-nav .nav-item {
    list-style-type: none;
}

.navbar-nav .nav-link {
    text-decoration: none;
    color: #388e3c; /* Màu chữ cho các liên kết */
    font-size: 14px; /* Giảm cỡ chữ */
    padding: 6px 12px; /* Khoảng cách trong mỗi liên kết */
    border-radius: 5px; /* Bo tròn góc */
    transition: background-color 0.3s ease; /* Thêm hiệu ứng chuyển màu nền khi hover */
}

.navbar-nav .nav-link:hover {
    background-color: #e8f5e9; /* Màu nền khi hover */
    color: #388e3c; /* Giữ màu chữ khi hover */
}

/* Thanh tìm kiếm */
.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-bar input {
    padding: 6px; /* Giảm khoảng cách trong input */
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 200px; /* Giảm chiều rộng của thanh tìm kiếm */
}

.search-bar button {
    background-color: #388e3c;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 6px 10px; /* Giảm kích thước nút */
    cursor: pointer;
}

.search-bar button:hover {
    background-color: #2c6f3b; /* Màu tối hơn khi hover */
}

/* Tùy chọn người dùng (Giỏ hàng, Đăng nhập, Đăng ký) */
.user-options {
    display: flex;
    align-items: center;
    gap: 15px; /* Giảm khoảng cách giữa các liên kết */
}

.user-options .nav-item {
    list-style-type: none;
    padding: 5px;
}

.user-options .nav-link {
    text-decoration: none;
    color: white;
    font-size: 14px; /* Giảm cỡ chữ */
    padding: 6px 12px; /* Giảm khoảng cách trong mỗi liên kết */
    border-radius: 5px;
    background-color: #0B3D2E;
}

.user-options .nav-link:hover {
    background-color: #e8f5e9; /* Hiệu ứng khi hover */
}
/* Footer */
/* ===== FOOTER ===== */
/* Footer */
/* Thu gọn footer */
#footer {
    background: linear-gradient(135deg, #0B3D2E 0%, seagreen 100%);
    color: #fff;
    padding: 15px 10px;  /* Giảm padding trên và dưới để footer gọn gàng hơn */
    margin-top: 40px;
    font-family: "Arial", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    height: auto; /* Đảm bảo chiều cao của footer phù hợp với nội dung bên trong */
}

/* Căn giữa footer với 3 cột */
.footer-content {
    max-width: 1300px;             /* Giới hạn chiều rộng của footer */
    margin: 0 auto 20px auto;      /* Căn giữa */
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* 3 cột */
    gap: 120px;                     /* Tăng khoảng cách giữa các cột thêm */
    box-sizing: border-box;
}

/* Cột trong footer */
.footer-column {
    text-align: left;
}

.footer-column h4 {
    font-weight: 700;
    margin-bottom: 5px;
    font-size: 0.95rem;                    /* Giảm cỡ chữ tiêu đề */
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Đoạn văn trong footer */
.footer-column p {
    font-size: 0.75rem;                 /* Giảm cỡ chữ chung trong footer */
    line-height: 1.4;                   /* Giảm khoảng cách giữa các dòng */
    margin: 0 0 5px 0;
}

/* Liên kết trong footer */
.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 6px;                /* Giảm khoảng cách giữa các mục */
}

.footer-column ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 0.75rem;                 /* Giảm cỡ chữ của liên kết */
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: #ffd700;
    transform: translateX(2px);        /* Giảm hiệu ứng khi hover */
}

/* Liên hệ: icon + text */
.contact-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    font-size: 0.75rem;                 /* Giảm cỡ chữ */
}

.contact-info i {
    font-size: 1rem;                   /* Giảm kích thước icon */
    color: #ffd700;
}

/* Dòng cuối footer */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
    text-align: center;
    font-size: 0.7rem;                  /* Giảm kích thước chữ dòng cuối */
    opacity: 0.8;
}

/* Đẩy footer xuống dưới nếu content không đủ dài */
body, html {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}


/* Tổng quan về trang */
body {
    background-color: #f4f6f9;
}


/* Container chính của Login Box */
.login-box {
    background-color: #ffffff; /* Nền trắng */
    padding: 40px;
    border-radius: 12px; /* Bo tròn góc */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Đổ bóng nhẹ và sâu */
    width: 100%;
    max-width: 400px; /* Chiều rộng tối đa chuẩn */
    margin-top: 100px; /* Đẩy xuống khỏi header */
    margin-bottom: 50px;
}

/* Tiêu đề */
.login-title {
    text-align: center;
    color: #333;
    font-size: 28px;
    margin-bottom: 5px;
    font-weight: 700; /* Đậm hơn */
}

.login-subtitle {
    text-align: center;
    color: #6c757d;
    font-size: 15px;
    margin-bottom: 20px;
}

.login-divider {
    border: 0;
    height: 1px;
    background-color: #eee;
    margin: 20px 0;
}

/* Cấu trúc Form */
.login-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

/* Nhãn (Label) */
.login-box label {
    display: block;
    margin-bottom: 8px;
    color: #495057;
    font-weight: 500;
    font-size: 14px;
}

/* Ô Input */
.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    box-sizing: border-box; /* Quan trọng để padding không làm vỡ width */
}

.login-box input[type="text"]:focus,
.login-box input[type="password"]:focus {
    border-color: #007bff; /* Màu xanh dương khi focus */
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none; /* Bỏ border mặc định của trình duyệt */
}

/* Nút Đăng nhập */
.submit-btn {
    width: 100%;
    padding: 12px;
    background-color: #007bff; /* Màu chính */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 10px;
}

.submit-btn:hover {
    background-color: #0056b3; /* Màu tối hơn khi hover */
    transform: translateY(-1px); /* Hiệu ứng nhấc nhẹ */
}

/* Link Quên mật khẩu */
.forgot-password-link {
    display: block;
    text-align: right;
    font-size: 14px;
    color: #007bff;
    margin-top: -10px;
    margin-bottom: 25px;
    text-decoration: none;
}

.forgot-password-link:hover {
    text-decoration: underline;
}

/* Phân cách HOẶC */
.or-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    color: #adb5bd;
}

.or-separator::before,
.or-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #dee2e6;
}

.or-separator:not(:empty)::before {
    margin-right: .5em;
}

.or-separator:not(:empty)::after {
    margin-left: .5em;
}

/* Nút Đăng nhập Google */
.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px;
    background-color: #ffffff;
    color: #495057;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.google-login-btn:hover {
    background-color: #f8f9fa;
    border-color: #007bff;
}

.google-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
}

/* Thông báo lỗi */
.error-message-container {
    margin-top: 15px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    text-align: center;
}

/* Lời nhắc Đăng ký */
.register-prompt {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #6c757d;
}

.register-link {
    color: #007bff;
    font-weight: 600;
    text-decoration: none;
}

.register-link:hover {
    text-decoration: underline;
}
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 200px); /* trừ header + footer */
}
/* ---------------------------------------------------
   🎯 CHANGE PASSWORD / LOGIN BOX STYLES (ĐÃ TỐI ƯU UI)
--------------------------------------------------- */

#main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 20px;
    background-color: #f0f2f5; /* Nền nhẹ */
}

.change-password-box {
    max-width: 420px;
    width: 100%;
    background: #ffffff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15); /* Bóng đổ mạnh hơn */
    text-align: center;
    border: 1px solid #e0e0e0;
}

.form-title {
    font-size: 26px;
    font-weight: 700;
    color: #0b3d2e; /* Màu thương hiệu */
    margin-bottom: 30px;
}

.change-password-form .form-row {
    text-align: left;
    margin-bottom: 20px;
}

.change-password-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
}

.change-password-form label i {
    margin-right: 8px;
    color: #0b3d2e;
}

.change-password-form input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    background-color: #fafafa;
}

.change-password-form input:focus {
    border-color: #1a7a5e;
    box-shadow: 0 0 0 3px rgba(26, 122, 94, 0.2);
    outline: none;
    background-color: #ffffff;
}

.readonly-input {
    background-color: #e9ecef !important;
    cursor: default;
    color: #6c757d;
    font-style: italic;
}

/* Nút Đăng nhập (giữ nguyên chữ nhưng làm đẹp UI) */
.btn-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #0b3d2e 0%, #145f47 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin-top: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-submit:hover {
    background: linear-gradient(135deg, #145f47 0%, #1a7a5e 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Thông báo lỗi */
.error-message {
    color: #c0392b;
    background-color: #fbecec;
    border: 1px solid #c0392b;
    padding: 10px;
    border-radius: 6px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
}