/* === KHUNG MẬT KHẨU GỌN GÀNG (COMPACT) === */

/* --- Container chính --- */
.modal-password-gate {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* << THAY ĐỔI: Canh lề phải cho gọn gàng */
    gap: 8px; /* Giảm khoảng cách */
    margin-bottom: 10px;
    width: 100%;
}

/* --- Ô nhập mật khẩu --- */
.modal-password-gate input[type="password"] {
    font-family: "Inclusive Sans", sans-serif;
    font-size: 0.9rem; /* Giảm kích thước chữ */
    padding: 8px 10px; /* Giảm padding */
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    width: 180px; /* << THAY ĐỔI: Đặt chiều rộng cố định, nhỏ gọn */
    text-align: center; /* Canh chữ trong ô về bên trái */
    outline: none;
    transition: all 0.3s ease;
}

.modal-password-gate input[type="password"]::placeholder {
    color: #aaa;
}

.modal-password-gate input[type="password"]:focus {
    border-color: #00bcd4;
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.2);
}

/* --- Nút xác nhận --- */
.modal-password-gate button {
    font-family: "Inclusive Sans", sans-serif;
    font-weight: 600;
    font-size: 0.9rem; /* Giảm kích thước chữ */
    padding: 8px 16px; /* Giảm padding */
    border: none;
    background-color: #5cb85c;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
    margin-top: 2%;
    margin-left: 25%;
}

.modal-password-gate button:hover {
    background-color: #4cae4c;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.modal-password-gate button:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* --- Thông báo lỗi --- */
.modal-password-message {
    font-size: 5rem; /* Giảm kích thước chữ */
    color: #e53935;
    min-height: 1.2em;
    font-weight: 500;
    width: 180px; /* Đặt chiều rộng bằng ô nhập */
    text-align: center; /* Canh lề phải cho đồng bộ */
    box-sizing: border-box;
    padding-right: 2px; /* Thêm chút đệm phải cho đẹp */
}

/* === TÙY CHỈNH CHO CHẾ ĐỘ TỐI (DARK THEME) === */

body.dark-theme .modal-password-gate input[type="password"] {
    background-color: #2c2c2c;
    border-color: #555;
    color: #f0f0f0;
}

body.dark-theme .modal-password-gate input[type="password"]::placeholder {
    color: #888;
}

body.dark-theme .modal-password-gate input[type="password"]:focus {
    border-color: #00ff9d;
    box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.2);
}

body.dark-theme .modal-password-gate button {
    background-color: #007bff;
}

body.dark-theme .modal-password-gate button:hover {
    background-color: #0056b3;
}

body.dark-theme .modal-password-message {
    color: #ffc107;
}