/**
 * Shared Lexogenix theme copied from CX manager (development.autom8cx.com).
 * Login: logo above card, title inside card.
 * Shell: light sidebar, ink text, electric blue accent.
 */
:root {
  --lx-ink: #0b1c31;
  --lx-blue: #0174fd;
  --lx-blue-hover: #0d80ff;
  --lx-blue-deep: #005fe0;
  --lx-bg: #f4f8fc;
  --lx-muted: #5b6b80;
  --lx-line: #e2e8f0;
  --lx-hover: rgba(1, 116, 253, 0.10);
  --lx-active: rgba(1, 116, 253, 0.22);
  --lx-font: Inter, "Helvetica Neue", Arial, sans-serif;
}

/* ========== LOGIN (CX manager card) ========== */
body.lx-cx-login {
  margin: 0;
  min-height: 100vh;
  font-family: var(--lx-font);
  color: var(--lx-ink);
  background-color: #f4f8fc !important;
  background-image:
    linear-gradient(rgba(11, 28, 49, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 28, 49, .035) 1px, transparent 1px) !important;
  background-size: 48px 48px !important;
  -webkit-font-smoothing: antialiased;
}

.lx-cx-login-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
}

.lx-cx-login-stack {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lx-cx-login-brand {
  display: flex;
  justify-content: center;
  margin: 0 0 20px;
  width: 100%;
}

.lx-cx-login-logo,
.lx-cx-login-brand img,
.lx-cx-login-brand .lx-login__logo {
  display: block !important;
  width: auto !important;
  max-width: 200px !important;
  max-height: 48px !important;
  height: auto !important;
  object-fit: contain;
  margin: 0 auto;
}

.lx-cx-login-card {
  width: 100%;
  border: none;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(11, 28, 49, .08);
  overflow: hidden;
}

.lx-cx-login-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 22px 28px 18px;
  border-bottom: 1px solid #e2e8f0;
  background: transparent;
}

.lx-cx-login-accent {
  display: block;
  width: 3px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 2px;
  background: #0174fd;
}

.lx-cx-login-card-head h1 {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #0b1c31;
}

.lx-cx-login-card-body {
  padding: 22px 28px 26px;
}

.lx-cx-login-card-body label,
.lx-cx-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0b1c31;
  margin-bottom: 8px;
}

.lx-cx-field { margin-bottom: 16px; }

.lx-cx-login-card-body .form-control,
.lx-cx-login-card-body input[type="text"],
.lx-cx-login-card-body input[type="email"],
.lx-cx-login-card-body input[type="password"],
.lx-cx-login-card-body select,
.lx-cx-field input,
.lx-cx-field select {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  color: #0b1c31;
  box-sizing: border-box;
}

.lx-cx-login-card-body .form-control:focus,
.lx-cx-field input:focus,
.lx-cx-field select:focus {
  outline: none;
  border-color: #0174fd !important;
  box-shadow: 0 0 0 0.15rem rgba(1, 116, 253, 0.22) !important;
}

.lx-cx-pw { position: relative; }
.lx-cx-pw input { padding-right: 42px; }
.lx-cx-pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #5b6b80;
  cursor: pointer;
  width: 28px;
  height: 28px;
  padding: 0;
}

.lx-cx-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-size: 13px;
  color: #5b6b80;
}

.lx-cx-btn,
.lx-cx-login-card-body .lx-cx-btn,
.lx-cx-login-card-body button[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  border-radius: 8px;
  background: #0174fd !important;
  border: 1px solid #0174fd !important;
  color: #fff !important;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-transform: none;
  box-shadow: none;
  cursor: pointer;
  font-family: inherit;
  transition: border-radius 0.28s ease, background-color 0.2s ease;
}

.lx-cx-btn:hover,
.lx-cx-login-card-body button[type="submit"]:hover {
  background: #0d80ff !important;
  border-color: #0d80ff !important;
  border-radius: 999px !important;
  color: #fff !important;
}

.lx-cx-btn:disabled { opacity: 0.75; cursor: not-allowed; }

.lx-cx-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.18);
  color: #9f1239;
  font-size: 13px;
}

.lx-cx-hint {
  font-size: 13px;
  color: #5b6b80;
  margin: 0 0 14px;
  line-height: 1.5;
}

.lx-cx-login-card-foot {
  border-top: 1px solid #eceef3;
  padding: 16px 28px 20px;
  background: transparent;
  text-align: center;
  color: #5b5c71;
  font-size: 13px;
  line-height: 1.5;
}

.lx-cx-login-card-foot a {
  color: #0b1220;
  font-weight: 600;
  text-decoration: none;
}

.lx-cx-login-card-foot a:hover { color: #0174fd; }

.lx-cx-oauth {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.lx-cx-oauth a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #0b1c31;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  background: #fff;
}

.lx-cx-oauth a:hover { background: #f4f8fc; color: #0b1c31; }

.lx-cx-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0 14px;
  color: #5b6b80;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.lx-cx-or::before,
.lx-cx-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

@media (max-width: 575px) {
  .lx-cx-login-card-head,
  .lx-cx-login-card-body,
  .lx-cx-login-card-foot { padding-left: 20px; padding-right: 20px; }
  .lx-cx-login-logo { max-width: 168px !important; max-height: 40px !important; }
}

/* ========== INNER SHELL (CX manager) ========== */
body.lx-cx-shell,
body.app-body,
body.vs-app:not(.vs-auth-page),
body.sf-body {
  font-family: var(--lx-font) !important;
  background: #f4f8fc !important;
  color: #0b1c31 !important;
}

body.lx-cx-shell .sidebar,
body.app-body .sidebar,
body.vs-app .vs-sidebar {
  background: #ffffff !important;
  color: #0b1c31 !important;
  border-right: 1px solid #e2e8f0 !important;
  box-shadow: 4px 0 24px rgba(11, 28, 49, 0.06) !important;
}

body.lx-cx-shell .sidebar-brand,
body.app-body .sidebar-brand,
body.vs-app .vs-sidebar-brand,
body.app-body .sidebar .brand,
body.app-body .sidebar .brand.brand-wide {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #0b1c31 !important;
}

body.lx-cx-shell .sidebar .nav-link,
body.app-body .sidebar .nav-link,
body.app-body .sidebar nav a,
body.app-body .nav-group-toggle,
body.vs-app .vs-sidebar .nav-link {
  color: #0b1c31 !important;
  border-radius: 8px !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.lx-cx-shell .sidebar .nav-link:hover,
body.app-body .sidebar .nav-link:hover,
body.app-body .sidebar nav a:hover,
body.app-body .nav-group-toggle:hover,
body.vs-app .vs-sidebar .nav-link:hover {
  background: rgba(1, 116, 253, 0.10) !important;
  color: #0b1c31 !important;
  transform: none !important;
}

body.lx-cx-shell .sidebar .nav-link.active,
body.app-body .sidebar .nav-link.active,
body.app-body .sidebar nav a.active,
body.app-body .nav-group-toggle.active,
body.vs-app .vs-sidebar .nav-link.active {
  background: rgba(1, 116, 253, 0.10) !important;
  color: #0b1c31 !important;
  box-shadow: none !important;
  font-weight: 600 !important;
}

body.lx-cx-shell .sidebar .nav-link.active i,
body.app-body .sidebar .nav-link.active i,
body.app-body .sidebar nav a.active i,
body.vs-app .vs-sidebar .nav-link.active i,
body.lx-cx-shell .sidebar .nav-link:hover i,
body.app-body .sidebar nav a:hover i,
body.vs-app .vs-sidebar .nav-link:hover i {
  color: #0174fd !important;
}

body.app-body .sidebar-section,
body.app-body .menu-category,
body.vs-app .vs-nav-label {
  color: #5b6b80 !important;
}

body.app-body .submenu,
body.app-body .nav-sub {
  background: transparent !important;
  border-left-color: #e2e8f0 !important;
}

body.app-body .submenu .nav-link,
body.app-body .nav-sub-link {
  color: #5b6b80 !important;
}

body.app-body .submenu .nav-link.active,
body.app-body .nav-sub-link.active {
  background: rgba(1, 116, 253, 0.22) !important;
  color: #0b1c31 !important;
  box-shadow: inset 3px 0 0 #0174fd !important;
}

body.lx-cx-shell .topbar,
body.app-body .topbar,
body.vs-app .vs-topbar,
body.hexadash-admin .header-top {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
}

body.lx-cx-shell .btn-primary,
body.app-body .btn-primary,
body.vs-app .btn-primary,
body.sf-body .sf-btn-primary,
.btn-navy {
  background: #0174fd !important;
  border-color: #0174fd !important;
  color: #fff !important;
}

body.lx-cx-shell .btn-primary:hover,
body.app-body .btn-primary:hover,
body.vs-app .btn-primary:hover,
body.sf-body .sf-btn-primary:hover,
.btn-navy:hover {
  background: #0d80ff !important;
  border-color: #0d80ff !important;
  color: #fff !important;
}

body.app-body .sidebar-footer,
body.app-body .sidebar-foot-muted,
body.app-body .sidebar-company-name {
  background: #f4f8fc !important;
  color: #5b6b80 !important;
  border-top: 1px solid #e2e8f0 !important;
}

/* Storefront public surfaces stay light like CX canvas */
body.sf-body .sf-header {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
body.sf-body .sf-nav a { color: #5b6b80; }
body.sf-body .sf-nav a:hover,
body.sf-body .sf-nav a.active { color: #0174fd; }
