/* --- Cài đặt chung & Biến màu --- */
:root {
    --mau-nen-chinh: #1a2238;      /* Xanh đen đậm - Giống bảng điều khiển */
    --mau-nen-phu: #24305E;        /* Xanh navy đậm hơn */
    --mau-vien-chinh: #4A90E2;    /* Xanh dương sáng - Giống tia lửa điện */
    --mau-nhan-sang: #F7C548;      /* Vàng cam - Giống năng lượng, cảnh báo */
    --mau-chu-chinh: #F4F4F9;      /* Trắng ngà - Dễ đọc trên nền tối */
    --mau-chu-phu: #A9B4C2;        /* Xám nhạt */
}

/* --- Thiết lập lại & Kiểu chữ --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: 'Roboto', sans-serif; /* Font chữ hiện đại, dễ đọc */
    background-color: var(--mau-nen-chinh);
    color: var(--mau-chu-chinh);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* --- Khung chứa chính & Khung đăng nhập --- */
.container, .login-container {
    width: 100%;
    max-width: 1200px;
    background-color: var(--mau-nen-phu);
    padding: 2em 3em;
    border-radius: 10px;
    border: 1px solid var(--mau-vien-chinh);
    box-shadow: 0 0 25px rgba(74, 144, 226, 0.3); /* Hiệu ứng phát sáng */
    text-align: center;
}

.login-container {
    max-width: 450px;
}

/* --- Tiêu đề --- */
h2, h3 {
    color: var(--mau-nhan-sang);
    margin-bottom: 1em;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-shadow: 0 0 5px rgba(247, 197, 72, 0.5);
}

/* --- Form (Đăng nhập & Upload) --- */
form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

form label {
    font-weight: bold;
    text-align: left;
    color: var(--mau-chu-phu);
}

form input[type="text"],
form input[type="password"],
form input[type="file"] {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--mau-nen-chinh);
    border: 2px solid var(--mau-vien-chinh);
    border-radius: 5px;
    color: var(--mau-chu-chinh);
    font-size: 1rem;
    transition: all 0.3s ease;
}

form input[type="file"]::file-selector-button {
    background-color: var(--mau-vien-chinh);
    color: var(--mau-nen-chinh);
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

form input[type="file"]::file-selector-button:hover {
    background-color: var(--mau-nhan-sang);
}


form input:focus {
    outline: none;
    border-color: var(--mau-nhan-sang);
    box-shadow: 0 0 10px rgba(247, 197, 72, 0.5);
}

/* --- Nút bấm (Button) --- */
button {
    padding: 12px 20px;
    background-color: var(--mau-nhan-sang);
    color: var(--mau-nen-chinh);
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

button:hover {
    background-color: var(--mau-vien-chinh);
    color: var(--mau-chu-chinh);
    box-shadow: 0 0 15px rgba(74, 144, 226, 0.7);
    transform: translateY(-2px);
}

/* --- Thư viện ảnh & video --- */
.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 2em;
}

.gallery img,
.gallery video {
    width: 100%;
    max-width: 250px;
    height: 180px;
    object-fit: cover;
    border: 3px solid transparent;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.gallery img:hover,
.gallery video:hover {
    border-color: var(--mau-nhan-sang);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(247, 197, 72, 0.6);
}

/* --- Liên kết --- */
a {
    color: var(--mau-nhan-sang);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--mau-vien-chinh);
    text-decoration: underline;
}

.container > p {
    margin: 1.5em 0;
}

/* --- Responsive cho thiết bị di động --- */
@media (max-width: 768px) {
    .container, .login-container {
        padding: 1.5em;
    }

    h2 {
        font-size: 1.5rem;
    }

    .gallery img,
    .gallery video {
        max-width: 100%; /* Hiển thị 1 ảnh/video mỗi hàng */
    }
}