:root {
    --bg: #050819;
    --card: #070b1f;
    --accent: #f59e0b;
    --text: #ffffff;
    --muted: #9ca3af;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #1e293b, #020617);
    color: var(--text);
}

/* ========== HEADER / NAV ========= */

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
}

.logo-block {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-main {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f97316, #facc15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #111827;
}

.logo-title {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.logo-sub {
    font-size: 12px;
    color: var(--muted);
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-pill {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .4);
    color: var(--text);
    text-decoration: none;
    background: rgba(15, 23, 42, .7);
    font-size: 13px;
}

.nav-pill-outline {
    background: transparent;
}

/* ========== PAGE WRAPPER / PANEL ========= */

.page-wrapper {
    display: flex;
    justify-content: center;
    padding: 48px 16px 56px;
}

.panel-card {
    background: linear-gradient(145deg, #020617, #020617, #020617, #020617);
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, .35);
    box-shadow: 0 24px 50px rgba(15, 23, 42, .9);
    padding: 32px 32px 30px;
}

.auth-panel {
    max-width: 520px;   /* login / register to hơn */
    width: 100%;
}

.auth-title {
    margin: 0 0 8px;
    font-size: 26px;    /* tiêu đề to hơn */
}

.panel-desc {
    margin: 0 0 18px;
    font-size: 16px;    /* mô tả to hơn */
    color: var(--muted);
}

/* ========== FORM ========= */

.form-group {
    margin-bottom: 16px;
}

.field-label {
    font-size: 15px;    /* label to hơn */
    color: var(--muted);
    margin-bottom: 5px;
}

.input-shell {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, .4);
    background: rgba(15, 23, 42, .9);
    padding: 6px 10px;
    position: relative;
}

/* input thường */
.input-shell input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-size: 16px;    /* chữ trong ô to hơn */
    padding: 10px 0;
}

/* select (combobox) – KHÔNG đen, KHÔNG trắng xoá */
.input-shell select {
    width: 100%;
    border: none;
    outline: none;
    background-color: #0b1220;
    color: var(--text);
    font-size: 16px;
    padding: 10px 32px 10px 10px;
    border-radius: 10px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* mũi tên nhỏ bên phải combobox */
.input-shell::after {
    content: "▾";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--muted);
    pointer-events: none;
}

/* nền option khi xổ dropdown */
.input-shell select option {
    background-color: #020617;
    color: var(--text);
}

/* ========== BUTTON ========= */

.btn-primary-wide {
    width: 100%;
    border-radius: 999px;
    border: none;
    padding: 16px;          /* nút cao hơn */
    margin-top: 8px;
    font-weight: 600;
    font-size: 18px;        /* chữ trên nút to hơn */
    background: linear-gradient(135deg, #f97316, #facc15);
    color: #111827;
    cursor: pointer;
}

.btn-primary-wide:disabled {
    opacity: .55;
    cursor: default;
}

/* ========== ALERT ========= */

.alert {
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 14px;
    margin-bottom: 12px;
    background: rgba(248, 113, 113, .2);
    border: 1px solid rgba(248, 113, 113, .7);
}

.alert-success {
    background: rgba(74, 222, 128, .18);
    border-color: rgba(34, 197, 94, .8);
}

/* ========== LINKS Ở FORM (đăng ký / quên mật khẩu) ========= */

.auth-links {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
    display: flex;
    justify-content: center;
    gap: 6px;
}

.auth-links a {
    color: var(--accent);
    text-decoration: none;
}

/* ========== TABLE ========= */

.table-modern {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    margin-top: 10px;
}

.table-modern th,
.table-modern td {
    padding: 14px;          /* ô bảng to hơn */
    border-bottom: 1px solid rgba(30, 64, 175, .5);
}

.table-modern thead th {
    background: linear-gradient(90deg, #f97316, #facc15);
    color: #111827;
}

.table-modern tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, .85);
}

/* ========== FOOTER ========= */

.footer-bar {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    padding: 10px 0 16px;
}

/* =========================================
   📱 RESPONSIVE MOBILE / TABLET (QUAN TRỌNG)
   ========================================= */

@media (max-width: 900px) {
    .top-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 12px 16px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 6px;
    }

    .nav-pill {
        padding: 6px 12px;
        font-size: 12px;
    }

    .page-wrapper {
        padding: 24px 12px 32px;
        justify-content: center;    /* form luôn ở giữa theo chiều ngang */
    }

    .panel-card {
        width: 100%;
        max-width: 100%;
        padding: 20px 16px 22px;
        border-radius: 18px;
    }

    .auth-panel {
        max-width: 100%;
    }

    .auth-title {
        font-size: 22px;
    }

    .panel-desc {
        font-size: 14px;
    }
}
