/* ============================================================
   Login page left hero (light + dark, per reference design)
   2026-10-19
   Scope: only inside login layout root ([data-v-4cf73944].xg-auth-light)
   ============================================================ */

/* ---------- 1. Left panel background ---------- */
.xg-hero-bg {
  background:
    radial-gradient(46% 42% at 36% 44%, rgba(120, 170, 235, 0.2) 0%, rgba(120, 170, 235, 0.08) 55%, rgba(120, 170, 235, 0) 100%),
    linear-gradient(180deg, #f1f5fb 0%, #eef3fa 100%) !important;
}
.xg-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(60, 110, 180, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(60, 110, 180, 0.045) 1px, transparent 1px);
  background-size: 84px 84px;
  -webkit-mask-image: radial-gradient(140% 120% at 50% 45%, #000 55%, rgba(0, 0, 0, 0.2) 100%);
  mask-image: radial-gradient(140% 120% at 50% 45%, #000 55%, rgba(0, 0, 0, 0.2) 100%);
}
.xg-hero-bg .login-background {
  display: none !important;
}

/* ===== dark theme ===== */
html.dark .xg-hero-bg {
  background:
    radial-gradient(46% 42% at 36% 44%, rgba(46, 104, 214, 0.26) 0%, rgba(46, 104, 214, 0.08) 55%, rgba(46, 104, 214, 0) 100%),
    linear-gradient(180deg, #0b1018 0%, #090d14 100%) !important;
}
html.dark .xg-hero-bg::before {
  background-image:
    linear-gradient(to right, rgba(130, 170, 230, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(130, 170, 230, 0.06) 1px, transparent 1px);
}

/* ---------- 2. Content container ---------- */
/* brand block at top-left */
[data-v-4cf73944].xg-auth-light .mt-4.ml-4.items-center {
  padding-top: 6px;
  padding-left: 6px;
}
[data-v-4cf73944].xg-auth-light .mt-4.ml-4.items-center img {
  width: 38px !important;
  height: 38px;
  border-radius: 10px;
  margin-right: 10px !important;
}
[data-v-4cf73944].xg-auth-light .mt-4.ml-4.items-center p {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #16233a;
}
html.dark [data-v-4cf73944].xg-auth-light .mt-4.ml-4.items-center p {
  color: #e9eef7;
}

.xg-hero-content {
  position: relative;
  z-index: 1;
  align-items: flex-start !important;
  justify-content: center !important;
  margin-right: 0 !important;
  padding: 0 10% 0 16.5%;
}
/* hide original illustration + titles (keep Vue nodes) */
.xg-hero-content > svg,
.xg-hero-content > div:not(.xg-hero):not(.xg-hero-footer-left):not(.xg-hero-footer-right) {
  display: none !important;
}

.xg-hero {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 720px;
}

/* ---------- 3. Logo tile ---------- */
.xg-hero-logo {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #0c1a2e;
  box-shadow: 0 12px 28px rgba(12, 38, 86, 0.2);
}
html.dark .xg-hero-logo {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.xg-hero-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- 4. Headline ---------- */
.xg-hero-title {
  margin: 34px 0 0;
  font-size: 40px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0;
  color: #14203a;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system,
    blinkmacsystemfont, "Segoe UI", sans-serif;
}
html.dark .xg-hero-title {
  color: #eef3fb;
}
.xg-hero-title span {
  display: block;
}
.xg-hero-title-accent {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.6;
  text-wrap: balance;
  color: #1a6bf0;
}
html.dark .xg-hero-title-accent {
  color: #4d8dff;
}

/* ---------- 5. Subtitle ---------- */
.xg-hero-desc {
  margin: 26px 0 0;
  font-size: 16px;
  line-height: 1.95;
  color: #5c6b82;
  letter-spacing: 0;
}
html.dark .xg-hero-desc {
  color: #94a3b8;
}

/* ---------- 6. Top-right pixel fade ---------- */
.xg-login-pixel-panel {
  position: relative;
  isolation: isolate;
}
.xg-login-pixel-panel::before {
  --xg-pixel-opacity: 0.4;
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  background: hsl(var(--primary, 212 100% 45%) / var(--xg-pixel-opacity));
  -webkit-mask: url("/vue-admin/login-pixel-mask-20261030.svg?v=1") no-repeat right top / 100% 100%;
  mask: url("/vue-admin/login-pixel-mask-20261030.svg?v=1") no-repeat right top / 100% 100%;
}
html.dark .xg-login-pixel-panel::before {
  --xg-pixel-opacity: 0.46;
}

/* ---------- 7. Footer notes ---------- */
.xg-hero-footer-left,
.xg-hero-footer-right {
  position: absolute;
  bottom: 36px;
  z-index: 1;
  font-size: 12.5px;
  letter-spacing: 0.6px;
  color: #8d9aad;
  white-space: nowrap;
}
html.dark .xg-hero-footer-left,
html.dark .xg-hero-footer-right {
  color: #63708a;
}
.xg-hero-footer-left {
  left: 44px;
}
.xg-hero-footer-right {
  right: 9.5%;
}

/* ---------- 9. Login error alert ---------- */
.xg-login-alert {
  display: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  margin-bottom: 16px;
  background: #fdeeee;
  border: 1px solid #f7d6d6;
  border-radius: 8px;
  color: #e5484d;
  font-size: 14px;
  line-height: 1.45;
  letter-spacing: 0.2px;
}
.xg-login-alert.is-show {
  display: flex;
  animation: xg-alert-in 0.18s ease-out both;
}
@keyframes xg-alert-in {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}
.xg-login-alert-icon {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e5484d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.xg-login-alert-icon svg {
  width: 13px;
  height: 13px;
  stroke: #fff;
}
.xg-login-alert-text {
  flex: 1 1 auto;
  min-width: 0;
}
html.dark .xg-login-alert {
  background: rgba(229, 72, 77, 0.14);
  border-color: rgba(229, 72, 77, 0.32);
  color: #ff9ea3;
}
html.dark .xg-login-alert-icon {
  background: #e5484d;
  color: #fff;
}

/* Slightly enlarge login copy and controls for easier reading. */
.xg-auth-light .side-content h2 {
  font-size: 40px !important;
  line-height: 1.25 !important;
}
.xg-auth-light .side-content p {
  font-size: 16px !important;
}
.xg-auth-light .side-content form input {
  height: 44px !important;
  font-size: 16px !important;
}
.xg-auth-light .side-content form [class~="h-10"]:not(input) {
  height: 44px !important;
  font-size: 14px !important;
}
.xg-auth-light .side-content button[aria-label="login"] {
  height: 40px !important;
  font-size: 16px !important;
}

/* ---------- 10. Responsive ---------- */
@media (max-width: 1600px) {
  .xg-hero-content { padding-left: 10%; padding-right: 8%; }
}
@media (max-width: 1152px) {
  .xg-hero-content { padding-left: 8%; padding-right: 6%; }
  .xg-hero-footer-right { right: 8%; }
}
@media (max-height: 760px) {
  .xg-hero-content { padding-top: 84px; padding-bottom: 80px; }
  .xg-hero-title { margin-top: 24px; }
  .xg-hero-desc { margin-top: 18px; }
}
