/* Cổng quản trị VIDL — dùng biến của tokens.css (mặc định tối). */
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); }
.khung { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.thanh { background: var(--bg2); padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; }
.thanh h1 { font-size: 16px; margin: 0 0 12px; color: var(--acc); }
.thanh button { text-align: left; min-height: var(--cham-toi-thieu); }
.chinh { padding: 28px; max-width: 980px; }
h2 { margin-top: 0; }
button, input, select { font: inherit; color: inherit; }
button { background: var(--card2); border: 1px solid rgba(var(--ink-rgb), .15); border-radius: var(--bo-nut); padding: 8px 16px; cursor: pointer; }
button.chinh-nut { background: var(--cta); border-color: transparent; color: #fff; }
button.nguy { background: var(--nguy); border-color: transparent; color: #fff; }
button[aria-current="true"] { background: var(--acc); color: #04110F; }
input, select, textarea { font: inherit; color: inherit; background: var(--bg2); border: 1px solid rgba(var(--ink-rgb), .2); border-radius: 12px; padding: 10px 12px; min-height: var(--cham-toi-thieu); width: 100%; }
label { display: block; margin: 10px 0 4px; font-size: 13px; opacity: .8; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(var(--ink-rgb), .1); }
.the { background: var(--card2); border-radius: var(--bo-the); padding: 20px; margin: 12px 0; }
.trang-thai { text-align: center; padding: 40px 12px; border-radius: var(--bo-the); background: var(--card2); }
.trang-thai.loi { color: var(--coral-t); }
.mat-khau { font-family: var(--mono); font-size: 18px; color: var(--warn-t); padding: 10px; background: var(--bg2); border-radius: 12px; user-select: all; }
.dang-nhap { max-width: 380px; margin: 12vh auto; }
.dung-vong { display: inline-block; width: 22px; height: 22px; border: 3px solid var(--acc); border-right-color: transparent; border-radius: 50%; animation: quay 1s linear infinite; }
@keyframes quay { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dung-vong { animation: none; } }
@media (max-width: 720px) { .khung { grid-template-columns: 1fr; } .thanh { flex-direction: row; flex-wrap: wrap; } .thanh h1 { width: 100%; margin-bottom: 4px; } .thanh button { white-space: nowrap; } }
