/* =====================================================================
   Đăng nhập bản NEW 3.0 - trang riêng (Views/Account/Login.cshtml).
   Không dùng crm-theme.css / new-platform.css: đổi file này không ảnh hưởng trang nào khác.
   Màu theo bảng "Ocean" của bản NEW: navy #0b1830 -> #12305c, xanh #1f6fd6, cam #eb6834.
   ===================================================================== */
:root {
   --lg-navy: #081226;
   --lg-blue: #1f6fd6;
   --lg-blue-2: #3b8cff;
   --lg-orange: #eb6834;
   --lg-ink: #0f1b2d;
   --lg-muted: #5b6b82;
   --lg-line: #dfe5ee;
   --lg-field: #f6f8fc;
}

html, body { height: 100%; }

body.login-v3 {
   margin: 0;
   min-height: 100vh;
   font-family: "Be Vietnam Pro", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
   background: var(--lg-navy);
   color: #e8eef8;
   overflow-x: hidden;
   -webkit-font-smoothing: antialiased;
}

/* ---------- nền: gradient + lưới mờ + 2 quầng sáng ---------- */
.lg-bg {
   position: fixed;
   inset: 0;
   z-index: 0;
   background:
      radial-gradient(1100px 620px at 8% -12%, rgba(31, 111, 214, .38), transparent 62%),
      radial-gradient(900px 520px at 108% 112%, rgba(235, 104, 52, .24), transparent 60%),
      linear-gradient(160deg, #081226 0%, #0b1830 46%, #12305c 100%);
}

   .lg-bg::before {
      content: "";
      position: absolute;
      inset: 0;
      background-image:
         linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
         linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
      background-size: 44px 44px;
      -webkit-mask-image: radial-gradient(ellipse at 28% 42%, #000 22%, transparent 72%);
      mask-image: radial-gradient(ellipse at 28% 42%, #000 22%, transparent 72%);
   }

/* ---------- khung 2 cột ---------- */
.lg-shell {
   position: relative;
   z-index: 1;
   min-height: calc(100vh - 44px);
   max-width: 1180px;
   margin: 0 auto;
   padding: 40px 32px 16px;
   display: grid;
   grid-template-columns: minmax(0, 1.15fr) minmax(360px, 440px);
   gap: 56px;
   align-items: center;
   box-sizing: border-box;
}

/* ---------- cột trái: thương hiệu ---------- */
.lg-logo {
   display: flex;
   align-items: center;
   gap: 12px;
}

.lg-mark {
   width: 44px;
   height: 44px;
   border-radius: 12px;
   display: grid;
   place-items: center;
   background: linear-gradient(135deg, #eb6834, #ff8f52);
   color: #fff;
   font-size: 22px;
   font-weight: 800;
   box-shadow: 0 10px 26px rgba(235, 104, 52, .38);
}

.lg-word {
   font-size: 22px;
   font-weight: 700;
   letter-spacing: -.01em;
   color: #fff;
}

   .lg-word b { color: #9cc3ff; font-weight: 700; }

.lg-ver {
   padding: 4px 11px;
   border-radius: 999px;
   font-size: 12px;
   font-weight: 700;
   letter-spacing: .02em;
   color: #ffb38f;
   background: rgba(235, 104, 52, .14);
   border: 1px solid rgba(235, 104, 52, .42);
}

.lg-title {
   margin: 30px 0 14px;
   font-size: 44px;
   line-height: 1.12;
   font-weight: 800;
   letter-spacing: -.025em;
   color: #fff;
}

   .lg-title .hl {
      background: linear-gradient(90deg, #8ab9ff 0%, #c4a6ff 45%, #ff9a6a 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
   }

.lg-lead {
   max-width: 540px;
   margin: 0;
   font-size: 16px;
   line-height: 1.65;
   color: #b5c3d8;
}

.lg-mods {
   display: grid;
   grid-template-columns: repeat(3, minmax(0, 1fr));
   gap: 10px;
   max-width: 570px;
   margin-top: 28px;
}

.lg-mod {
   display: flex;
   align-items: center;
   gap: 10px;
   padding: 10px 12px;
   border-radius: 12px;
   background: rgba(255, 255, 255, .05);
   border: 1px solid rgba(255, 255, 255, .09);
   font-size: 13px;
   font-weight: 600;
   color: #dbe6f7;
   transition: background .2s, border-color .2s, transform .2s;
}

   .lg-mod:hover {
      background: rgba(255, 255, 255, .08);
      border-color: rgba(143, 192, 255, .35);
      transform: translateY(-1px);
   }

   .lg-mod i {
      flex: none;
      width: 30px;
      height: 30px;
      border-radius: 9px;
      display: grid;
      place-items: center;
      font-size: 17px;
      color: #8fc0ff;
      background: rgba(59, 140, 255, .16);
   }

   .lg-mod.is-accent i { color: #ffad86; background: rgba(235, 104, 52, .18); }

/* đường đi nội thành -> sân bay (trang trí) */
.lg-route {
   max-width: 570px;
   margin-top: 30px;
}

   .lg-route svg { display: block; width: 100%; height: auto; overflow: visible; }

   .lg-route .rt-path {
      fill: none;
      stroke: rgba(160, 196, 255, .35);
      stroke-width: 2;
      stroke-dasharray: 6 8;
      animation: lg-dash 1.6s linear infinite;
   }

   .lg-route .rt-glow { fill: none; stroke: rgba(59, 140, 255, .12); stroke-width: 10; stroke-linecap: round; }
   .lg-route .rt-node { fill: #0b1830; stroke: #8fc0ff; stroke-width: 2; }
   .lg-route .rt-node.end { stroke: #eb6834; }
   .lg-route .rt-dot { fill: #ff9a6a; filter: drop-shadow(0 0 6px rgba(255, 154, 106, .9)); }

.lg-route-labels {
   display: flex;
   justify-content: space-between;
   margin-top: 6px;
   font-size: 12px;
   color: #8ea1bd;
}

   .lg-route-labels span { display: inline-flex; align-items: center; gap: 5px; }
   .lg-route-labels i { font-size: 15px; }
   .lg-route-labels .end i { color: #ff9a6a; }

@keyframes lg-dash { to { stroke-dashoffset: -28; } }

/* ---------- cột phải: thẻ đăng nhập ---------- */
.lg-card {
   position: relative;
   background: #fff;
   color: var(--lg-ink);
   border-radius: 20px;
   padding: 34px 32px 24px;
   box-shadow: 0 30px 80px rgba(3, 10, 25, .55), 0 0 0 1px rgba(255, 255, 255, .06);
   animation: lg-rise .5s ease-out both;
}

   .lg-card::before {
      content: "";
      position: absolute;
      left: 32px;
      right: 32px;
      top: 0;
      height: 3px;
      border-radius: 0 0 3px 3px;
      background: linear-gradient(90deg, var(--lg-blue), var(--lg-orange));
   }

   .lg-card h2 {
      margin: 0 0 6px;
      font-size: 24px;
      font-weight: 800;
      letter-spacing: -.01em;
      color: var(--lg-ink);
   }

.lg-sub {
   margin: 0 0 22px;
   font-size: 14px;
   color: var(--lg-muted);
}

.lg-field { margin-bottom: 14px; }

   .lg-field label {
      display: block;
      margin-bottom: 6px;
      font-size: 13px;
      font-weight: 600;
      color: #33445c;
   }

.lg-input { position: relative; }

   .lg-input > .lead {
      position: absolute;
      left: 13px;
      top: 50%;
      transform: translateY(-50%);
      font-size: 18px;
      color: #8a99ae;
      pointer-events: none;
      transition: color .15s;
   }

   .lg-input input {
      width: 100%;
      height: 46px;
      box-sizing: border-box;
      padding: 0 44px 0 40px;
      border: 1px solid var(--lg-line);
      border-radius: 12px;
      background: var(--lg-field);
      font: inherit;
      font-size: 15px;
      color: var(--lg-ink);
      transition: border-color .15s, box-shadow .15s, background .15s;
   }

      .lg-input input::placeholder { color: #9aa8bb; }

      .lg-input input:focus {
         outline: none;
         border-color: var(--lg-blue);
         background: #fff;
         box-shadow: 0 0 0 4px rgba(31, 111, 214, .14);
      }

   .lg-input:focus-within > .lead { color: var(--lg-blue); }

.lg-eye {
   position: absolute;
   right: 6px;
   top: 50%;
   transform: translateY(-50%);
   width: 34px;
   height: 34px;
   border: 0;
   border-radius: 8px;
   background: transparent;
   color: #8a99ae;
   font-size: 18px;
   cursor: pointer;
}

   .lg-eye:hover, .lg-eye:focus-visible { background: #eef2f8; color: var(--lg-ink); outline: none; }

.lg-caps {
   display: none;
   align-items: center;
   gap: 4px;
   margin-top: 6px;
   font-size: 12px;
   font-weight: 600;
   color: #b45309;
}

   .lg-caps.show { display: flex; }

.lg-row {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 10px;
   margin: 6px 0 18px;
   font-size: 13px;
}

.lg-check {
   display: inline-flex;
   align-items: center;
   gap: 8px;
   margin: 0;
   color: #33445c;
   cursor: pointer;
   user-select: none;
}

   .lg-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--lg-blue); cursor: pointer; }

.lg-help { color: var(--lg-muted); }

.lg-btn {
   width: 100%;
   height: 48px;
   border: 0;
   border-radius: 12px;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 8px;
   background: linear-gradient(135deg, var(--lg-blue), var(--lg-blue-2));
   color: #fff;
   font: inherit;
   font-size: 15px;
   font-weight: 700;
   cursor: pointer;
   box-shadow: 0 12px 26px rgba(31, 111, 214, .34);
   transition: transform .15s, box-shadow .15s, opacity .15s;
}

   .lg-btn:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(31, 111, 214, .42); }
   .lg-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(31, 111, 214, .3); }
   .lg-btn:disabled { opacity: .72; cursor: progress; transform: none; }
   .lg-btn i { font-size: 18px; transition: transform .15s; }
   .lg-btn:hover i { transform: translateX(2px); }

.lg-note {
   display: flex;
   align-items: flex-start;
   gap: 8px;
   margin-top: 18px;
   padding-top: 16px;
   border-top: 1px solid #eef1f6;
   font-size: 12px;
   line-height: 1.5;
   color: var(--lg-muted);
}

   .lg-note i { font-size: 16px; color: #8a99ae; }

.lg-foot {
   position: relative;
   z-index: 1;
   height: 44px;
   display: flex;
   align-items: center;
   justify-content: center;
   font-size: 12px;
   color: #7d8ba3;
}

@keyframes lg-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- màn nhỏ ---------- */
@media (max-width: 991px) {
   .lg-shell { grid-template-columns: 1fr; gap: 28px; padding: 28px 18px 12px; max-width: 520px; }
   .lg-title { font-size: 30px; margin: 20px 0 10px; }
   .lg-lead { font-size: 14px; }
   .lg-mods { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
   .lg-route { display: none; }
}

@media (max-width: 480px) {
   .lg-shell { padding: 20px 16px 8px; }
   .lg-mods, .lg-lead { display: none; }
   .lg-title { font-size: 24px; }
   .lg-card { padding: 28px 20px 20px; border-radius: 16px; }
   .lg-card::before { left: 20px; right: 20px; }
   .lg-foot { height: auto; padding: 14px 16px 18px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
   .lg-route .rt-path, .lg-card { animation: none; }
   .lg-route .rt-dot { display: none; }
   .lg-mod, .lg-btn, .lg-btn i { transition: none; }
}

/* toast (jquery.toast) nổi trên nền tối */
body.login-v3 .jq-toast-wrap { z-index: 10; }
