/* =====================================================================
   TRANG GIỚI THIỆU + ĐĂNG NHẬP — OMC Tây Ninh
   Nền tối, lưới mạng động (canvas), aurora, kính mờ, viền gradient chạy
   ===================================================================== */
:root {
    --lg-bg: #05070f;
    --lg-text: #e8edf7;
    --lg-text-2: #a3aec2;
    --lg-text-3: #6f7b91;
    --lg-line: rgba(148, 163, 184, .14);
    --lg-glass: rgba(14, 20, 36, .62);
    --lg-cyan: #22d3ee;
    --lg-blue: #3b82f6;
    --lg-violet: #8b5cf6;
    --lg-pink: #ec4899;
    --lg-green: #34d399;
    --lg-grad: linear-gradient(110deg, #22d3ee 0%, #3b82f6 35%, #8b5cf6 70%, #ec4899 100%);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.lg-body {
    margin: 0; min-height: 100vh; background: var(--lg-bg); color: var(--lg-text);
    font-family: "Be Vietnam Pro", Inter, "Segoe UI", Roboto, Arial, sans-serif; font-size: 15px; line-height: 1.6;
    overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.lg-mono { font-family: "JetBrains Mono", Consolas, monospace; }

/* ---------- Nền động ---------- */
#lg-net { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.lg-aurora { position: fixed; inset: -20%; z-index: 0; pointer-events: none; filter: blur(70px); opacity: .55; }
.lg-aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: lgFloat 18s ease-in-out infinite alternate; }
.lg-aurora i:nth-child(1) { width: 46vmax; height: 46vmax; left: 4%; top: 6%; background: radial-gradient(circle, rgba(34, 211, 238, .55), transparent 62%); }
.lg-aurora i:nth-child(2) { width: 52vmax; height: 52vmax; right: -4%; top: -6%; background: radial-gradient(circle, rgba(139, 92, 246, .55), transparent 62%); animation-duration: 22s; animation-delay: -6s; }
.lg-aurora i:nth-child(3) { width: 40vmax; height: 40vmax; left: 30%; bottom: -12%; background: radial-gradient(circle, rgba(236, 72, 153, .38), transparent 62%); animation-duration: 26s; animation-delay: -11s; }
@keyframes lgFloat {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(6vw, 4vh, 0) scale(1.12); }
    100% { transform: translate3d(-5vw, -3vh, 0) scale(.94); }
}
.lg-grid {
    position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background-image: linear-gradient(var(--lg-line) 1px, transparent 1px), linear-gradient(90deg, var(--lg-line) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
    animation: lgGrid 30s linear infinite;
}
@keyframes lgGrid { to { background-position: 64px 64px, 64px 64px; } }
.lg-spot {
    position: fixed; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(59, 130, 246, .10), transparent 60%);
}
.lg-wrap { position: relative; z-index: 2; }

/* ---------- Thanh trên ---------- */
.lg-nav {
    position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px clamp(16px, 4vw, 48px); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    background: linear-gradient(180deg, rgba(5, 7, 15, .78), rgba(5, 7, 15, .35)); border-bottom: 1px solid var(--lg-line);
}
.lg-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.lg-brand img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 24px rgba(34, 211, 238, .25); }
.lg-brand b { display: block; font-size: 16px; letter-spacing: .02em; }
.lg-brand span { display: block; font-size: 11.5px; color: var(--lg-text-3); letter-spacing: .04em; text-transform: uppercase; }
.lg-links { display: flex; align-items: center; gap: 6px; }
.lg-links a { padding: 8px 14px; border-radius: 10px; color: var(--lg-text-2); text-decoration: none; font-size: 14px; font-weight: 500; transition: color .2s, background .2s; }
.lg-links a:hover { color: var(--lg-text); background: rgba(255, 255, 255, .06); }

/* ---------- Nút ---------- */
.lg-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px;
    border: 0; border-radius: 12px; cursor: pointer; text-decoration: none; font: 600 15px "Be Vietnam Pro", Inter, sans-serif;
    color: #fff; background: var(--lg-grad); background-size: 200% 100%; overflow: hidden; isolation: isolate;
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, .8); transition: transform .2s, box-shadow .2s, background-position .6s;
}
.lg-btn:hover { background-position: 100% 0; box-shadow: 0 14px 40px -10px rgba(139, 92, 246, .9); }
.lg-btn::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
    transform: translateX(-120%); animation: lgShine 3.2s ease-in-out infinite;
}
@keyframes lgShine { 60%, 100% { transform: translateX(120%); } }
.lg-btn:disabled { opacity: .6; cursor: wait; }
.lg-btn.ghost { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.lg-btn.ghost::after { display: none; }
.lg-btn.sm { text-shadow: 0 1px 2px rgba(0, 0, 0, .35); height: 38px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

/* ---------- Hero ---------- */
.lg-hero {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, 440px); gap: clamp(28px, 5vw, 72px); align-items: center;
    max-width: 1280px; margin: 0 auto; padding: clamp(40px, 8vh, 96px) clamp(16px, 4vw, 48px) 56px; min-height: calc(100vh - 72px);
}
.lg-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; font-size: 13px; color: var(--lg-text-2);
    background: rgba(255, 255, 255, .05); border: 1px solid var(--lg-line); backdrop-filter: blur(8px);
}
.lg-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lg-green); box-shadow: 0 0 0 0 rgba(52, 211, 153, .7); animation: lgPulse 2s infinite; }
@keyframes lgPulse { 70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.lg-hero h1 { margin: 18px 0 14px; font-size: clamp(32px, 4.4vw, 58px); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; }
.lg-grad-text { background: var(--lg-grad); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: lgGradMove 6s ease-in-out infinite alternate; }
@keyframes lgGradMove { to { background-position: 100% 0; } }
.lg-type { display: flex; align-items: center; gap: 10px; min-height: 30px; margin-bottom: 18px; font-size: clamp(15px, 1.6vw, 19px); color: var(--lg-text-2); }
.lg-type .pre { color: var(--lg-cyan); }
.lg-type b { color: var(--lg-text); font-weight: 600; }
.lg-type .caret { width: 2px; height: 1.2em; background: var(--lg-cyan); animation: lgBlink 1s steps(2) infinite; }
@keyframes lgBlink { 50% { opacity: 0; } }
.lg-lead { max-width: 620px; margin: 0 0 28px; color: var(--lg-text-2); font-size: clamp(15px, 1.3vw, 17px); }
.lg-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.lg-org { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 8px; }
.lg-org span { padding: 6px 12px; border-radius: 9px; font-size: 12.5px; color: var(--lg-text-2); background: rgba(255, 255, 255, .04); border: 1px solid var(--lg-line); }
.lg-org span:first-child { color: #fff; background: rgba(59, 130, 246, .16); border-color: rgba(59, 130, 246, .4); }

/* ---------- Thẻ đăng nhập (kính mờ + viền gradient xoay) ---------- */
.lg-card { position: relative; border-radius: 22px; padding: 1px; isolation: isolate; }
.lg-card::before {
    content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px;
    background: conic-gradient(from var(--lg-ang, 0deg), rgba(34, 211, 238, .9), rgba(139, 92, 246, .2), rgba(236, 72, 153, .9), rgba(59, 130, 246, .2), rgba(34, 211, 238, .9));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
    animation: lgSpin 6s linear infinite;
}
.lg-card::after { content: ""; position: absolute; inset: 18px; z-index: -2; border-radius: inherit; background: var(--lg-grad); filter: blur(46px); opacity: .32; }
@property --lg-ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes lgSpin { to { --lg-ang: 360deg; } }
.lg-card-in {
    border-radius: 21px; padding: 30px 28px 26px; background: var(--lg-glass); backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    transform-style: preserve-3d; transition: transform .25s ease-out;
}
.lg-card h2 { margin: 0; font-size: 22px; font-weight: 700; }
.lg-card .sub { margin: 4px 0 22px; color: var(--lg-text-3); font-size: 13.5px; }
.lg-field { margin-bottom: 14px; }
.lg-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--lg-text-2); }
.lg-input { position: relative; }
.lg-input > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--lg-text-3); font-size: 14px; pointer-events: none; transition: color .2s; }
.lg-input input {
    width: 100%; height: 48px; padding: 0 46px 0 42px; border-radius: 12px; border: 1px solid rgba(148, 163, 184, .22);
    background: rgba(2, 6, 18, .55); color: var(--lg-text); font: 500 15px "Be Vietnam Pro", Inter, sans-serif; outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.lg-input input::placeholder { color: #566179; }
.lg-input input:focus { border-color: rgba(34, 211, 238, .75); box-shadow: 0 0 0 4px rgba(34, 211, 238, .14); background: rgba(2, 6, 18, .75); }
.lg-input:focus-within > i { color: var(--lg-cyan); }
.lg-input input:-webkit-autofill { -webkit-text-fill-color: var(--lg-text); box-shadow: 0 0 0 1000px #0a1122 inset; transition: background-color 9999s; }
.lg-eye { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--lg-text-3); cursor: pointer; }
.lg-eye:hover { color: var(--lg-text); background: rgba(255, 255, 255, .06); }
.lg-row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 18px; font-size: 13px; color: var(--lg-text-3); }
.lg-link { border: 0; background: none; padding: 0; color: var(--lg-cyan); font: 600 13px "Be Vietnam Pro", Inter, sans-serif; cursor: pointer; text-decoration: none; }
.lg-link:hover { text-decoration: underline; }
.lg-card .lg-btn { width: 100%; }
.lg-alert { display: none; margin-bottom: 14px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
#error-alert { background: rgba(239, 68, 68, .12); color: #fca5a5; border: 1px solid rgba(239, 68, 68, .35); }
#success-alert { background: rgba(52, 211, 153, .12); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, .35); }
#no-data-alert { background: rgba(251, 191, 36, .12); color: #fcd34d; border: 1px solid rgba(251, 191, 36, .35); }
.lg-secure { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--lg-line); font-size: 12.5px; color: var(--lg-text-3); }
.lg-secure i { color: var(--lg-green); }
.user_forgot_password { display: none; }

/* ---------- Khối chức năng ---------- */
.lg-sec { max-width: 1280px; margin: 0 auto; padding: 72px clamp(16px, 4vw, 48px); }
.lg-sec-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.lg-kicker { display: inline-block; margin-bottom: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lg-cyan); }
.lg-sec-head h2 { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
.lg-sec-head p { margin: 0; color: var(--lg-text-2); }
.lg-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lg-feat {
    position: relative; padding: 24px 22px; border-radius: 18px; background: rgba(13, 19, 34, .55); border: 1px solid var(--lg-line);
    overflow: hidden; transition: transform .3s, border-color .3s; backdrop-filter: blur(10px);
}
.lg-feat::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(360px circle at var(--fx, 50%) var(--fy, 50%), rgba(34, 211, 238, .14), transparent 55%);
}
.lg-feat:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, .35); }
.lg-feat:hover::before { opacity: 1; }
.lg-ico {
    width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; margin-bottom: 16px; font-size: 19px; color: #fff;
    background: var(--c, var(--lg-grad)); box-shadow: 0 10px 26px -10px var(--cs, rgba(59, 130, 246, .9));
}
.lg-feat h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.lg-feat p { margin: 0; color: var(--lg-text-2); font-size: 14px; }
.lg-feat .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.lg-feat .tags span { padding: 3px 9px; border-radius: 7px; font-size: 11.5px; color: var(--lg-text-2); background: rgba(255, 255, 255, .05); border: 1px solid var(--lg-line); }

/* ---------- Dải tín hiệu quang ---------- */
.lg-fiber { position: relative; height: 120px; margin: 0 auto; max-width: 1280px; }
.lg-fiber svg { width: 100%; height: 100%; }
.lg-fiber .base { fill: none; stroke: rgba(148, 163, 184, .16); stroke-width: 2; }
.lg-fiber .pulse { fill: none; stroke: url(#lgFiberGrad); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 90 900; animation: lgFiber 4.5s linear infinite; filter: drop-shadow(0 0 6px rgba(34, 211, 238, .9)); }
.lg-fiber .pulse.p2 { animation-delay: -1.5s; stroke-dasharray: 50 900; }
.lg-fiber .pulse.p3 { animation-delay: -3s; stroke-dasharray: 120 900; }
@keyframes lgFiber { from { stroke-dashoffset: 990; } to { stroke-dashoffset: 0; } }
.lg-fiber .node { fill: #0b1222; stroke: var(--lg-cyan); stroke-width: 2; }
.lg-fiber text { fill: var(--lg-text-3); font: 600 11px "JetBrains Mono", monospace; letter-spacing: .06em; }

/* ---------- Quy trình ---------- */
.lg-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: st; }
.lg-step { position: relative; padding: 22px 20px; border-radius: 16px; background: rgba(13, 19, 34, .5); border: 1px solid var(--lg-line); }
.lg-step::before {
    counter-increment: st; content: "0" counter(st); display: block; margin-bottom: 10px;
    font: 800 30px "JetBrains Mono", monospace; background: var(--lg-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lg-step h4 { margin: 0 0 6px; font-size: 15.5px; }
.lg-step p { margin: 0; font-size: 13.5px; color: var(--lg-text-2); }

/* ---------- Chân trang ---------- */
.lg-foot { border-top: 1px solid var(--lg-line); background: rgba(3, 5, 12, .7); backdrop-filter: blur(10px); }
.lg-foot-in { max-width: 1280px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 48px) 28px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.lg-foot h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--lg-text-3); }
.lg-foot p { margin: 0 0 6px; color: var(--lg-text-2); font-size: 14px; }
.lg-contact { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.lg-contact a {
    display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 11px; text-decoration: none; font-size: 14px; font-weight: 600;
    background: rgba(255, 255, 255, .05); border: 1px solid var(--lg-line); transition: border-color .2s, background .2s;
}
.lg-contact a:hover { border-color: rgba(34, 211, 238, .5); background: rgba(34, 211, 238, .08); }
.lg-copy { max-width: 1280px; margin: 0 auto; padding: 14px clamp(16px, 4vw, 48px) 22px; color: var(--lg-text-3); font-size: 12.5px; border-top: 1px solid var(--lg-line); }

/* ---------- Xuất hiện khi cuộn ---------- */
.lg-reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.lg-reveal.in { opacity: 1; transform: none; }

#scrollToTop {
    position: fixed; right: 18px; bottom: 18px; z-index: 30; display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; cursor: pointer;
    color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); backdrop-filter: blur(8px);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .lg-hero { grid-template-columns: 1fr; min-height: 0; }
    .lg-hero .lg-card { order: -1; } /* màn hình nhỏ: ô đăng nhập lên trước */
    .lg-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .lg-links a:not(.lg-btn) { display: none; }
    .lg-feats, .lg-steps, .lg-foot-in { grid-template-columns: 1fr; }
    .lg-card-in { padding: 24px 18px 20px; }
    .lg-fiber { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .lg-reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   GIAO DIỆN SÁNG (dùng chung khóa "app_theme" với trang chính)
   ===================================================================== */
html[data-theme="light"] {
    --lg-bg: #f5f7fc;
    --lg-text: #0f172a;
    --lg-text-2: #475569;
    --lg-text-3: #64748b;
    --lg-line: rgba(15, 23, 42, .09);
    --lg-glass: rgba(255, 255, 255, .72);
}
html[data-theme="light"] .lg-aurora { opacity: .32; }
html[data-theme="light"] .lg-nav { background: linear-gradient(180deg, rgba(245, 247, 252, .9), rgba(245, 247, 252, .55)); }
html[data-theme="light"] .lg-links a:hover,
html[data-theme="light"] .lg-eye:hover { background: rgba(15, 23, 42, .06); }
html[data-theme="light"] .lg-btn.ghost { color: var(--lg-text); background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12); }
html[data-theme="light"] .lg-chip,
html[data-theme="light"] .lg-org span,
html[data-theme="light"] .lg-feat .tags span,
html[data-theme="light"] .lg-contact a { background: rgba(255, 255, 255, .7); }
html[data-theme="light"] .lg-org span:first-child { color: #1d4ed8; background: rgba(59, 130, 246, .12); }
html[data-theme="light"] .lg-card-in { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 20px 50px -20px rgba(15, 23, 42, .25); }
html[data-theme="light"] .lg-card::after { opacity: .2; }
html[data-theme="light"] .lg-input input { background: rgba(255, 255, 255, .85); border-color: rgba(15, 23, 42, .14); }
html[data-theme="light"] .lg-input input:focus { background: #fff; border-color: rgba(14, 165, 233, .8); box-shadow: 0 0 0 4px rgba(14, 165, 233, .14); }
html[data-theme="light"] .lg-input input::placeholder { color: #94a3b8; }
html[data-theme="light"] .lg-input input:-webkit-autofill { box-shadow: 0 0 0 1000px #fff inset; }
html[data-theme="light"] .lg-link,
html[data-theme="light"] .lg-kicker,
html[data-theme="light"] .lg-type .pre { color: #0284c7; }
html[data-theme="light"] .lg-type .caret { background: #0284c7; }
html[data-theme="light"] #error-alert { color: #b91c1c; }
html[data-theme="light"] #success-alert { color: #047857; }
html[data-theme="light"] #no-data-alert { color: #b45309; }
html[data-theme="light"] .lg-feat,
html[data-theme="light"] .lg-step { background: rgba(255, 255, 255, .72); box-shadow: 0 10px 30px -18px rgba(15, 23, 42, .25); }
html[data-theme="light"] .lg-fiber .node { fill: #fff; }
html[data-theme="light"] .lg-foot { background: rgba(255, 255, 255, .7); }
html[data-theme="light"] #scrollToTop { color: var(--lg-text); background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .12); }
html[data-theme="light"] .lg-spot { background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(59, 130, 246, .08), transparent 60%); }

/* Nút đổi giao diện */
.lg-theme {
    width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px; cursor: pointer;
    color: var(--lg-text-2); background: rgba(127, 127, 127, .1); transition: color .2s, background .2s, transform .3s;
}
.lg-theme:hover { color: var(--lg-text); transform: rotate(-20deg); }
.lg-theme .fa-sun { display: none; }
html[data-theme="light"] .lg-theme .fa-sun { display: inline; }
html[data-theme="light"] .lg-theme .fa-moon { display: none; }
