/* LANCS VDI - mau lay tu logo LANCS Networks */
:root {
  --sky: #4cbdeb;
  --blue: #4a86c6;
  --navy: #1d2f62;
  --navy-2: #253a78;
  --bg: #f3f6fb;
  --card: #ffffff;
  --line: #e2e8f2;
  --text: #1d2f62;
  --muted: #5d6b88;
  --ok: #1f9d6b;
  --warn: #c98a12;
  --bad: #c43d3d;
  --radius: 14px;
  --font-body: "Be Vietnam Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, "Liberation Mono", monospace;
  --shadow: 0 1px 2px rgba(29, 47, 98, .06), 0 6px 20px rgba(29, 47, 98, .07);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.muted { color: var(--muted); }

/* nut */
.btn {
  border: 1px solid transparent; border-radius: 10px; padding: 9px 16px;
  font: inherit; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover:not(:disabled) { background: #3d76b4; }
.btn.secondary { background: #eaf4fc; color: var(--navy); border-color: #cfe5f6; }
.btn.secondary:hover:not(:disabled) { background: #dcedfa; }
.btn.ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn.ghost:hover { background: #fff; }
.btn.wide { width: 100%; padding: 11px; }
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(76, 189, 235, .45); outline-offset: 1px; }

/* dang nhap */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(440px, 1fr); }
.login-brand {
  position: relative; overflow: hidden; color: #fff; padding: 40px 56px 64px;
  background:
    radial-gradient(700px 420px at 88% 12%, rgba(76, 189, 235, .24), transparent 65%),
    radial-gradient(620px 420px at -5% 105%, rgba(74, 134, 198, .38), transparent 70%),
    linear-gradient(160deg, #2a4386, var(--navy-2) 40%, #15234d 100%);
  display: flex; flex-direction: column; gap: 30px;
}
/* luoi mo kieu so do mang, nhat dan xuong duoi */
.login-brand::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.login-brand > * { position: relative; }
.lb-top { display: flex; align-items: center; gap: 10px; }
.login-mark { width: 34px; height: auto; }
.lb-top b { font-size: 13px; letter-spacing: 1.6px; }
.lb-hero { margin-top: auto; display: grid; gap: 12px; max-width: 520px; }
.lb-kicker { font-size: 10.5px; font-weight: 600; letter-spacing: 1.8px; text-transform: uppercase; color: #7fd3f5; }
.login-brand h1 { font-size: 39px; letter-spacing: .5px; line-height: 1.05; }
.login-brand h1 span { color: var(--sky); }
.login-brand p { margin: 0; font-size: 14px; line-height: 1.6; color: #c9d6ee; max-width: 44ch; }
.login-points { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 9px; color: #e3ebf8; font-size: 12.5px; }
.login-points li { padding-left: 26px; position: relative; }
.login-points li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(76, 189, 235, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%237FD3F5' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
/* minh hoa isometric: noi lam viec -> la chan ma hoa -> trung tam du lieu */
.lb-desk { margin: -24px 0 auto auto; position: relative; width: min(100%, 980px); padding-bottom: 6px; }
.lb-halo { animation: lbhalo 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes lbhalo { 0%, 100% { opacity: .08; transform: scale(.9); } 50% { opacity: .22; transform: scale(1.08); } }
.lb-desk svg { display: block; width: 100%; height: auto; filter: drop-shadow(0 22px 40px rgba(4, 12, 32, .35)); }
.lb-link { animation: lbflow 1.4s linear infinite; }
@keyframes lbflow { to { stroke-dashoffset: -18; } }
.lb-led { animation: lbblink 2.2s steps(1, end) infinite; }
.lb-led.d2 { animation-delay: .5s; } .lb-led.d3 { animation-delay: 1.1s; } .lb-led.d4 { animation-delay: 1.6s; }
@keyframes lbblink { 0%, 100% { opacity: 1; } 45% { opacity: .25; } 60% { opacity: 1; } }
.lb-cursor { animation: lbcur 1.1s steps(1, end) infinite; }
@keyframes lbcur { 50% { opacity: 0; } }
.lb-steam { animation: lbsteam 3s ease-in-out infinite; }
@keyframes lbsteam { 0%, 100% { opacity: .2; transform: translateY(0); } 50% { opacity: .8; transform: translateY(-3px); } }
.lb-conn { position: absolute; right: 0; bottom: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px;
  background: rgba(255, 255, 255, .96); color: var(--navy); font-size: 11.5px; font-weight: 600; box-shadow: 0 10px 26px rgba(4, 12, 32, .35); }
.lb-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(31, 157, 107, .5); animation: lbpulse 2s infinite; }
@keyframes lbpulse { 0% { box-shadow: 0 0 0 0 rgba(31, 157, 107, .55); } 70% { box-shadow: 0 0 0 9px rgba(31, 157, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 157, 107, 0); } }
.login-foot { position: absolute; bottom: 24px; left: 56px; font-size: 11.5px; color: #9fb3d6; }
.login-panel { display: grid; place-items: center; padding: 32px 16px; }
.login-card {
  width: min(400px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); padding: 32px 30px; display: grid; gap: 16px;
}
.login-logo { width: 132px; justify-self: center; }
.login-card h2 { font-size: 20.5px; text-align: center; margin-bottom: 4px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 13px; }
input, select {
  font: inherit; color: var(--text); background: #fbfcfe; border: 1px solid #cdd7e6; border-radius: 10px; padding: 10px 12px;
}
input:focus, select:focus { border-color: var(--sky); background: #fff; }
.err { background: #fdeeee; color: var(--bad); border: 1px solid #f3cccc; border-radius: 10px; padding: 9px 12px; font-size: 13px; }

/* khung chinh */
.top {
  position: sticky; top: 0; z-index: 5; height: 64px; padding: 0 28px; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-size: 18.5px; letter-spacing: .3px; }
.brand img { height: 32px; }
.brand span { color: var(--sky); font-weight: 700; }
.top-right { display: flex; align-items: center; gap: 14px; }
.who { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.who::before {
  content: attr(data-initial); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #e5f3fc; color: var(--blue); font-weight: 700; font-size: 12px;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 28px 28px 48px; }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.head-row h2 { font-size: 22.5px; }
.head-row p { margin: 4px 0 0; }
.filter { width: min(280px, 100%); }
.group-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 26px 0 12px; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }

/* the may */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; display: grid; gap: 14px; transition: transform .15s, box-shadow .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(29, 47, 98, .06), 0 12px 28px rgba(29, 47, 98, .1); }
.card-top { display: flex; gap: 14px; align-items: center; }
.os { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.os svg { width: 28px; height: 28px; }
.os.win { background: #e6f1fb; color: #2a7ad1; }
.os.linux { background: #fff4e0; color: #c47a00; }
.os.other { background: #eef1f6; color: var(--navy); }
.card h3 { font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.card .sub { font-size: 12px; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; margin-top: 4px; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { color: var(--ok); background: #e5f6ef; }
.pill.busy { color: var(--blue); background: #e6f0fa; }
.pill.warn { color: var(--warn); background: #fdf3df; }
.pill.bad { color: var(--bad); background: #fdeeee; }
.card-actions { display: grid; gap: 8px; }
.card-actions .btn { width: 100%; }
.empty { text-align: center; padding: 60px 16px; background: var(--card); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty p { margin: 4px 0; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 0 16px 28px; }

/* khung chao */
.hello { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center; gap: 24px; margin-bottom: 8px; padding: 24px 30px;
  border-radius: 20px; border: 1px solid #dbe7f6; overflow: hidden; position: relative;
  background: linear-gradient(115deg, #e6f1fd 0%, #f3f8fe 55%, #e7f6f1 100%); }
.hello::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(74, 134, 198, .18) 1px, transparent 1px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); mask-image: linear-gradient(90deg, transparent 40%, #000); }
.hello > * { position: relative; z-index: 1; }
.hello-date { font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--blue); text-transform: capitalize; }
.hello h2 { font-size: 26px; margin: 6px 0 4px; }
.hello p { margin: 0; color: var(--muted); }
.hello .head-act { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.hello-art svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 14px 22px rgba(29, 47, 98, .18)); }
.lb-link { animation: lbflow 1.4s linear infinite; }

/* the may kieu man hinh: hinh nen theo he dieu hanh */
.card.vm { padding: 0; gap: 0; overflow: hidden; }
.vm-screen { position: relative; height: 150px; display: grid; place-items: center; overflow: hidden; }
.vm-screen::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.w-win { background: radial-gradient(70% 90% at 72% 105%, #7cc4ff 0%, #2f7ff0 32%, transparent 62%), radial-gradient(60% 70% at 20% 0%, #1b4fb8 0%, transparent 70%), linear-gradient(140deg, #0a2463, #1554c9); }
.w-win::before { background: radial-gradient(42% 46% at 64% 80%, rgba(255, 255, 255, .28), transparent 70%); }
.w-ubuntu { background: radial-gradient(80% 90% at 85% 110%, #e95420 0%, transparent 60%), linear-gradient(135deg, #2c001e, #5e2750 55%, #77216f); }
.w-debian { background: radial-gradient(70% 80% at 80% 100%, #d70a53 0%, transparent 65%), linear-gradient(140deg, #3a0a1e, #6d1236); }
.w-linux { background: radial-gradient(70% 80% at 80% 100%, #4cbdeb 0%, transparent 60%), linear-gradient(140deg, #14213d, #2a3f6e); }
.w-other { background: linear-gradient(140deg, #1d2f62, #3a5ba8); }
.vm-logo { width: 56px; height: 56px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .25)); transition: transform .25s; }
.vm-logo svg { width: 100%; height: 100%; }
.card.vm:hover .vm-logo { transform: scale(1.08); }
.vm-screen .pill { position: absolute; top: 10px; left: 12px; margin: 0; background: rgba(255, 255, 255, .92); }
.vm-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 24px; display: flex; align-items: center; gap: 6px; padding: 0 10px;
  background: rgba(10, 16, 34, .38); backdrop-filter: blur(6px); }
.vm-bar i { width: 11px; height: 11px; border-radius: 3px; background: rgba(255, 255, 255, .55); }
.vm-bar i:first-child { background: rgba(255, 255, 255, .9); }
.vm-bar span { margin-left: auto; font-size: 10.5px; color: rgba(255, 255, 255, .85); font-variant-numeric: tabular-nums; }
.vm-body { padding: 14px 18px 0; }
.card.vm .card-actions { padding: 12px 18px 18px; }
.card.vm.off .vm-screen { filter: grayscale(.9) brightness(.85); }

/* tai ung dung */
a[data-dl] { cursor: pointer; }
.btn.dl { text-decoration: none; }
.dl-login { justify-self: center; color: var(--blue); font-weight: 600; font-size: 13px; text-decoration: none; }
.dl-login:hover { text-decoration: underline; }

.dlg-card.dl-card { width: min(520px, 100%); text-align: left; }
a.btn { text-decoration: none; }
.dl-card h3 { margin-top: 0; }
.dl-list { display: grid; gap: 10px; margin-top: 16px; }
.dl-item { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.dl-item.rec { border-color: #9fd3f2; background: #f2f9fe; }
.dl-item .os { width: 44px; height: 44px; }
.dl-item .info { flex: 1; min-width: 0; }
.dl-item b { display: block; }
.dl-item small { color: var(--muted); }
.dl-item .tag { display: inline-block; font-size: 10px; font-weight: 700; color: var(--blue); background: #e6f0fa; border-radius: 999px; padding: 1px 8px; margin-left: 6px; }

/* hop thoai */
.dlg { position: fixed; inset: 0; background: rgba(16, 26, 54, .45); display: grid; place-items: center; z-index: 20; padding: 16px; }
.dlg-card { background: #fff; border-radius: 18px; padding: 30px 28px 22px; width: min(420px, 100%); text-align: center; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.dlg-card h3 { font-size: 16.5px; margin-top: 14px; }
.dlg-card p { margin: 8px 0 0; }
.dlg-actions { margin-top: 20px; }
.spinner { width: 42px; height: 42px; margin: 0 auto; border-radius: 50%; border: 4px solid #e3eef9; border-top-color: var(--sky); animation: spin .8s linear infinite; }
.spinner.done { animation: none; border-color: #d8f0e5; border-top-color: var(--ok); }
.spinner.fail { animation: none; border-color: #f6d8d8; }
@keyframes spin { to { transform: rotate(360deg); } }
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff;
  padding: 11px 18px; border-radius: 10px; box-shadow: var(--shadow); z-index: 30; max-width: calc(100% - 32px);
}

@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login-brand { padding: 24px 20px 52px; gap: 18px; }
  .lb-hero { margin-top: 0; }
  .login-brand h1 { font-size: 30px; }
  .lb-desk { display: none; }
  .hello { grid-template-columns: 1fr; padding: 20px; }
  .hello-art { display: none; }
  .login-points { display: none; }
  .login-foot { left: 20px; bottom: 16px; }
  .top { padding: 0 16px; }
  .wrap { padding: 20px 16px 40px; }
  .who span { display: none; }
  .btn.dl { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation-duration: 0s !important; } }

/* nut chuyen ngon ngu (giong trang quan tri) */
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: none; background: #fff; }
.lang button { appearance: none; border: 0; background: #fff; color: var(--muted); font: 600 11px/1 var(--font-body); padding: 7px 9px; cursor: pointer; }
.lang button + button { border-left: 1px solid var(--line); }
.lang button.on { background: var(--navy); color: #fff; }
.login-panel { position: relative; }
.login-lang { position: absolute; top: 20px; right: 24px; }
@media (max-width: 860px) { .login-lang { position: static; justify-self: end; margin-bottom: 10px; } }
.login-foot a { color: #cfdcf3; text-decoration: none; border-bottom: 1px dotted rgba(207, 220, 243, .5); }
.login-foot a:hover { color: #fff; border-bottom-color: #fff; }

/* ---- xin may ao ---- */
.head-act { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.rq-card { text-align: left; width: min(480px, 100%); display: grid; gap: 14px; }
.rq-card h3 { margin-top: 0; }
.rq-items { display: grid; gap: 8px; }
.rq-item { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; }
.rq-item:has(input:checked) { border-color: var(--sky); background: #f3f9fe; }
.rq-item input { margin: 0; accent-color: var(--blue); }
.rq-item .os { width: 40px; height: 40px; flex: none; }
.rq-item b { display: block; font-size: 14px; }
.rq-item small { color: var(--muted); }
textarea { font: inherit; color: var(--text); background: #fbfcfe; border: 1px solid #cdd7e6; border-radius: 10px; padding: 10px 12px; resize: vertical; }
textarea:focus { border-color: var(--sky); background: #fff; outline: none; }
.rq-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.myreq { margin-top: 28px; }
.myreq h3 { font-size: 15px; margin-bottom: 10px; }
.rq-list { display: grid; gap: 8px; }
.rq-row { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; flex-wrap: wrap; }
.rq-row .info { flex: 1; min-width: 200px; }
.rq-row b { font-size: 14px; }
.rq-row small { display: block; color: var(--muted); margin-top: 2px; }
.rq-row .pill { margin-top: 0; }
.pill.off { color: var(--muted); background: #eef1f6; }

/* LVDI-SEC-02 V4: QR ghi danh MFA */
.mfa-qr{display:block;margin:10px auto;width:190px;height:190px;background:#fff;padding:6px;border-radius:8px}
.mfa-hint{color:#667;font-size:.9em;margin:.3em 0}
