/* =====================================================================
   TRANG ĐĂNG NHẬP (Quản trị nội bộ & Cổng Shop) – dùng cùng theme.css
   ===================================================================== */
.lx { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); background: #fff; }
@media (max-width: 1099.98px) { .lx { grid-template-columns: 1fr; } .lx-hero { display: none !important; } }

/* ---------- Bên trái: hero ---------- */
.lx-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 40px 56px 36px; display: flex; flex-direction: column;
    background: linear-gradient(150deg, #0b1220 0%, #0f1d3d 45%, var(--brand-600) 130%); }
.shop-portal .lx-hero { background: linear-gradient(150deg, #06171a 0%, #0b2a2e 45%, var(--brand-600) 135%); }
.lx-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
    background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px); background-size: 22px 22px;
    -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%); }
.lx-glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.lx-glow.g1 { width: 420px; height: 420px; right: -120px; top: 80px; background: rgba(var(--brand-rgb), .55); }
.lx-glow.g2 { width: 300px; height: 300px; left: -100px; bottom: -80px; background: rgba(99, 102, 241, .28); }
.shop-portal .lx-glow.g2 { background: rgba(45, 212, 191, .22); }

.lx-brand { display: flex; align-items: center; gap: .75rem; font-weight: 700; font-size: 1.02rem; letter-spacing: -.01em; }
.lx-brand .mark { color: #fff; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; flex: 0 0 42px;
    background: linear-gradient(135deg, rgba(255,255,255,.22), rgba(255,255,255,.06)); border: 1px solid rgba(255,255,255,.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 8px 24px rgba(0,0,0,.25); }
.lx-brand img.mark { background: #fff; object-fit: contain; padding: 4px; }
.lx-brand small { display: block; font-weight: 500; font-size: .72rem; color: rgba(255,255,255,.55); letter-spacing: .04em; text-transform: uppercase; }

.lx-copy { margin-top: auto; max-width: 540px; }
.lx-eyebrow { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .75rem .3rem .4rem; border-radius: 999px; font-size: .76rem; font-weight: 500;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.88); margin-bottom: 1.1rem; }
.lx-eyebrow .dot { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(34,197,94,.2); }
.lx-eyebrow .dot::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.25); }
.lx-hero h1 { color: #fff; font-size: clamp(1.9rem, 2.6vw, 2.6rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.12; margin: 0 0 1rem; }
.lx-hero h1 .hl { background: linear-gradient(90deg, #fff, rgba(255,255,255,.62)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lx-hero .lead { color: rgba(255,255,255,.7); font-size: 1rem; line-height: 1.6; margin: 0; }

/* Minh họa giao diện (thẻ vận đơn + thẻ COD) */
.lx-visual { position: relative; margin: 2.2rem 0 auto; height: 250px; max-width: 560px; }
.lx-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.lx-card { position: absolute; border-radius: 16px; color: #0f172a; background: rgba(255,255,255,.96);
    box-shadow: 0 24px 60px rgba(2, 6, 23, .45), 0 2px 6px rgba(2, 6, 23, .2); border: 1px solid rgba(255,255,255,.6); }
.lx-track { left: 0; top: 8px; width: 330px; padding: 16px 18px; animation: lx-float 7s ease-in-out infinite; }
.lx-track .code { font-weight: 700; font-size: .92rem; letter-spacing: .01em; }
.lx-track .meta { font-size: .72rem; color: #64748b; }
.lx-pill { white-space: nowrap; font-size: .68rem; font-weight: 600; padding: .25rem .55rem; border-radius: 999px; background: var(--brand-100); color: var(--brand-600); }
.lx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0 8px; }
.lx-steps span { height: 5px; border-radius: 5px; background: #e2e8f0; }
.lx-steps span.on { background: var(--brand); }
.lx-steps span.now { background: linear-gradient(90deg, var(--brand) 55%, #e2e8f0 55%); }
.lx-step-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; font-size: .64rem; color: #94a3b8; }
.lx-step-labels b { color: #334155; font-weight: 600; }
.lx-track .row2 { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #e2e8f0; font-size: .74rem; color: #475569; }
.lx-avatar { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .66rem; font-weight: 700; color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ef4444); margin-right: 6px; }
.lx-cod { right: 0; bottom: 6px; width: 220px; padding: 14px 16px; animation: lx-float 8s ease-in-out -2s infinite; }
.lx-cod .label { font-size: .7rem; color: #64748b; display: flex; justify-content: space-between; }
.lx-cod .val { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 4px; }
.lx-cod .up { color: #16a34a; font-weight: 600; font-size: .7rem; }
.lx-badge { position: absolute; right: 36px; top: 0; display: flex; align-items: center; gap: .45rem; padding: .45rem .7rem; border-radius: 12px; font-size: .74rem; font-weight: 600;
    color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(8px); animation: lx-float 6s ease-in-out -1s infinite; }
.lx-badge i { color: #4ade80; font-size: .95rem; }
@keyframes lx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .lx-track, .lx-cod, .lx-badge { animation: none; } }

.lx-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; margin: 1.6rem 0 1.6rem; max-width: 560px; }
.lx-features div { display: flex; align-items: center; gap: .6rem; font-size: .86rem; color: rgba(255,255,255,.82); }
.lx-features i { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 9px; display: grid; place-items: center; font-size: .95rem;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); color: #fff; }
.lx-foot { display: flex; justify-content: space-between; gap: 1rem; color: rgba(255,255,255,.45); font-size: .76rem; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.1); }

/* ---------- Bên phải: form ---------- */
.lx-side { display: flex; flex-direction: column; padding: 28px 40px; background: #fff; }
@media (max-width: 575.98px) { .lx-side { padding: 20px 18px; } }
.lx-top { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.lx-top .mini-brand { display: none; align-items: center; gap: .55rem; font-weight: 700; color: var(--text); }
.lx-top .mini-brand .mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-600)); }
@media (max-width: 1099.98px) { .lx-top .mini-brand { display: flex; } }
.lx-top a.track { display: inline-flex; align-items: center; gap: .4rem; color: var(--text-2); font-weight: 500; padding: .4rem .75rem; border-radius: 999px; border: 1px solid var(--border); }
.lx-top a.track:hover { border-color: var(--border-strong); background: #f8fafc; color: var(--text); }

.lx-form { width: 100%; max-width: 410px; margin: auto; padding: 32px 0; }
.lx-form h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -.025em; color: var(--text); margin: 0 0 .35rem; }
.lx-form .sub { color: var(--muted); margin-bottom: 1.5rem; font-size: .92rem; }

.lx-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: #f1f5f9; margin-bottom: 1.6rem; }
.lx-switch a { display: flex; align-items: center; justify-content: center; gap: .45rem; padding: .55rem .5rem; border-radius: 9px; font-size: .84rem; font-weight: 500; color: var(--muted); }
.lx-switch a:hover { color: var(--text); }
.lx-switch a.active { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 1px 3px rgba(16,24,40,.06); }
.lx-switch a.active i { color: var(--brand); }

.lx-field { margin-bottom: 1.05rem; }
.lx-field label { display: block; font-size: .82rem; font-weight: 600; color: var(--text-2); margin-bottom: .4rem; }
.lx-input { position: relative; }
.lx-input > i.lead-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; font-size: 1.02rem; pointer-events: none; transition: color .15s; }
.lx-input .form-control { height: 48px; padding-left: 42px; border-radius: 10px; font-size: .93rem; background: #fff; border: 1px solid var(--border-strong); transition: border-color .15s, box-shadow .15s; }
.lx-input .form-control::placeholder { color: #a3adbd; }
.lx-input .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .12); }
.lx-input:focus-within > i.lead-icon { color: var(--brand); }
.lx-input .form-control:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px #fff inset; }
.lx-input .form-control.has-toggle { padding-right: 46px; }
.lx-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 8px; background: transparent; color: #94a3b8; }
.lx-eye:hover { background: #f1f5f9; color: var(--text); }
.lx-caps { display: none; align-items: center; gap: .35rem; margin-top: .4rem; font-size: .76rem; color: #b45309; }
.lx-caps.show { display: flex; }
.lx-row { display: flex; justify-content: space-between; align-items: center; margin: .2rem 0 1.25rem; font-size: .84rem; }
.lx-row .form-check-label { color: var(--text-2); }
.lx-row .forgot { color: var(--brand); font-weight: 500; cursor: help; }
.lx-submit { height: 48px; border-radius: 10px; font-weight: 600; font-size: .95rem; letter-spacing: .01em;
    box-shadow: 0 8px 20px -6px rgba(var(--brand-rgb), .55); display: flex; align-items: center; justify-content: center; gap: .5rem; }
.lx-submit .spinner-border { width: 1rem; height: 1rem; border-width: .15em; display: none; }
.lx-submit.loading .spinner-border { display: inline-block; }
.lx-submit.loading .arrow { display: none; }
.lx-submit .arrow { transition: transform .15s; }
.lx-submit:hover .arrow { transform: translateX(3px); }

.lx-errors ul { margin: 0; padding-left: 1.1rem; }
.lx-errors:empty, .lx-errors.validation-summary-valid { display: none; }
.lx-alert { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem .9rem; border-radius: 10px; font-size: .84rem; margin-bottom: 1.1rem; }
.lx-alert.err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.lx-alert.warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.lx-alert i { margin-top: 1px; }

.lx-divider { display: flex; align-items: center; gap: .75rem; color: #94a3b8; font-size: .74rem; margin: 1.6rem 0 .9rem; text-transform: uppercase; letter-spacing: .06em; }
.lx-divider::before, .lx-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.lx-demo { display: flex; flex-wrap: wrap; gap: 6px; }
.lx-demo button { border: 1px solid var(--border); background: #f8fafc; color: var(--text-2); border-radius: 999px; padding: .28rem .7rem; font-size: .76rem; font-weight: 500; }
.lx-demo button:hover { border-color: rgba(var(--brand-rgb), .45); color: var(--brand); background: var(--brand-50); }
.lx-demo-note { font-size: .74rem; color: #94a3b8; margin-top: .55rem; }

.lx-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .76rem; color: #94a3b8; }
.lx-bottom .secure { display: inline-flex; align-items: center; gap: .35rem; }
.lx-bottom .secure i { color: #16a34a; }
.lx-top a.track { white-space: nowrap; flex: 0 0 auto; }
.lx-top .mini-brand { min-width: 0; line-height: 1.25; }
