@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

body.itec-login-page {
  font-family: "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(219, 13, 43, 0.2), transparent 30%),
    radial-gradient(circle at bottom right, rgba(120, 7, 22, 0.3), transparent 28%),
    linear-gradient(135deg, #020202 0%, #090909 48%, #131313 100%);
}

body.itec-app-shell {
  --itec-red: #db0d2b;
  --itec-red-dark: #8f0a21;
  --itec-black: #090909;
  --itec-panel: #121212;
  --itec-border: rgba(219, 13, 43, 0.16);
}

body.itec-app-shell,
body.itec-app-shell input,
body.itec-app-shell button,
body.itec-app-shell textarea,
body.itec-app-shell select {
  font-family: "Manrope", "Segoe UI", sans-serif;
}

body.itec-app-shell .MuiAppBar-root {
  background: linear-gradient(90deg, #070707 0%, #141414 70%, #2a0a11 100%) !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2) !important;
  border-bottom: 1px solid var(--itec-border);
}

body.itec-app-shell .MuiDrawer-paper,
body.itec-app-shell .MuiPaper-root.MuiDrawer-paper {
  background: linear-gradient(180deg, #0a0a0a 0%, #111111 100%) !important;
  border-right: 1px solid rgba(219, 13, 43, 0.14) !important;
}

body.itec-app-shell .MuiDrawer-paper .MuiListItemButton-root.Mui-selected,
body.itec-app-shell .MuiDrawer-paper .MuiListItemButton-root[aria-selected="true"] {
  background: linear-gradient(90deg, rgba(219, 13, 43, 0.18) 0%, rgba(219, 13, 43, 0.08) 100%) !important;
  box-shadow: inset 3px 0 0 var(--itec-red);
}

body.itec-app-shell .MuiDrawer-paper .MuiListItemButton-root:hover {
  background: rgba(219, 13, 43, 0.08) !important;
}

body.itec-app-shell .MuiButton-containedPrimary,
body.itec-app-shell .MuiFab-primary,
body.itec-app-shell .MuiSpeedDial-fab {
  background: linear-gradient(135deg, var(--itec-red) 0%, var(--itec-red-dark) 100%) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(219, 13, 43, 0.2) !important;
}

body.itec-app-shell .MuiButton-containedPrimary:hover,
body.itec-app-shell .MuiFab-primary:hover,
body.itec-app-shell .MuiSpeedDial-fab:hover {
  background: linear-gradient(135deg, #f01334 0%, #a30d27 100%) !important;
}

body.itec-app-shell .MuiButton-outlinedPrimary,
body.itec-app-shell .MuiButton-textPrimary,
body.itec-app-shell a {
  color: var(--itec-red);
}

body.itec-app-shell .MuiTabs-indicator,
body.itec-app-shell .MuiLinearProgress-bar,
body.itec-app-shell .MuiSlider-track,
body.itec-app-shell .MuiCheckbox-colorPrimary.Mui-checked,
body.itec-app-shell .MuiRadio-colorPrimary.Mui-checked,
body.itec-app-shell .MuiSwitch-colorPrimary.Mui-checked {
  color: var(--itec-red) !important;
  background-color: var(--itec-red) !important;
}

body.itec-app-shell .MuiPaper-root:not(.MuiAppBar-root):not(.MuiDrawer-paper),
body.itec-app-shell .leaflet-popup-content-wrapper,
body.itec-app-shell .maplibregl-popup-content {
  background: linear-gradient(180deg, rgba(255, 250, 251, 0.98) 0%, rgba(255, 241, 244, 0.97) 58%, rgba(255, 232, 237, 0.98) 100%);
  border: 1px solid rgba(219, 13, 43, 0.08);
}

body.itec-app-shell .MuiCard-root,
body.itec-app-shell .MuiDialog-paper,
body.itec-app-shell .MuiMenu-paper,
body.itec-app-shell .MuiPopover-paper {
  box-shadow:
    0 16px 36px rgba(15, 15, 15, 0.12),
    0 2px 8px rgba(219, 13, 43, 0.06) !important;
}

body.itec-app-shell .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline,
body.itec-app-shell .MuiInput-underline:after,
body.itec-app-shell .MuiFilledInput-underline:after {
  border-color: var(--itec-red) !important;
}

body.itec-app-shell .MuiInputLabel-root.Mui-focused,
body.itec-app-shell .MuiTab-root.Mui-selected,
body.itec-app-shell .MuiTypography-colorPrimary {
  color: var(--itec-red) !important;
}

body.itec-app-shell .MuiChip-colorPrimary,
body.itec-app-shell .MuiAlert-standardSuccess {
  border-radius: 999px;
}

body.itec-app-shell .MuiBottomNavigation-root {
  border-top: 1px solid rgba(219, 13, 43, 0.12);
}

body.itec-app-shell .MuiPaper-root .MuiInputBase-root {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
}

body.itec-app-shell .MuiPaper-root .MuiListItem-root,
body.itec-app-shell .MuiPaper-root .MuiListItemButton-root {
  border-radius: 1rem;
}

body.itec-app-shell .MuiPaper-root .MuiListItemButton-root:hover {
  background: rgba(219, 13, 43, 0.05) !important;
}

body.itec-app-shell .MuiPaper-root .MuiDivider-root {
  border-color: rgba(219, 13, 43, 0.08);
}

body.itec-app-shell .maplibregl-popup,
.maplibregl-popup {
  filter: drop-shadow(0 18px 36px rgba(13, 13, 13, 0.18));
}

body.itec-app-shell .maplibregl-popup-content,
.maplibregl-popup-content {
  min-width: 300px;
  max-width: 360px;
  padding: 18px 18px 16px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(219, 13, 43, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 252, 252, 0.98) 0%, rgba(255, 243, 246, 0.97) 65%, rgba(255, 236, 240, 0.99) 100%) !important;
  box-shadow:
    0 18px 38px rgba(15, 15, 15, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  overflow: hidden;
}

body.itec-app-shell .maplibregl-popup-content::before,
.maplibregl-popup-content::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #db0d2b 0%, #a00c25 55%, #6d0819 100%);
}

body.itec-app-shell .maplibregl-popup-tip,
.maplibregl-popup-tip {
  filter: drop-shadow(0 8px 12px rgba(15, 15, 15, 0.08));
}

body.itec-app-shell .maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
body.itec-app-shell .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
body.itec-app-shell .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip,
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
.maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip {
  border-top-color: rgba(255, 236, 240, 0.99) !important;
}

body.itec-app-shell .maplibregl-popup-anchor-top .maplibregl-popup-tip,
body.itec-app-shell .maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
body.itec-app-shell .maplibregl-popup-anchor-top-right .maplibregl-popup-tip,
.maplibregl-popup-anchor-top .maplibregl-popup-tip,
.maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.maplibregl-popup-anchor-top-right .maplibregl-popup-tip {
  border-bottom-color: rgba(255, 252, 252, 0.98) !important;
}

body.itec-app-shell .maplibregl-popup-anchor-left .maplibregl-popup-tip,
.maplibregl-popup-anchor-left .maplibregl-popup-tip {
  border-right-color: rgba(255, 246, 248, 0.98) !important;
}

body.itec-app-shell .maplibregl-popup-anchor-right .maplibregl-popup-tip,
.maplibregl-popup-anchor-right .maplibregl-popup-tip {
  border-left-color: rgba(255, 246, 248, 0.98) !important;
}

body.itec-app-shell .maplibregl-popup-close-button,
.maplibregl-popup-close-button {
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88) !important;
  color: #8a0d24 !important;
  font-size: 24px;
  line-height: 30px;
  box-shadow: 0 8px 16px rgba(138, 13, 36, 0.12);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

body.itec-app-shell .maplibregl-popup-close-button:hover,
.maplibregl-popup-close-button:hover {
  background: rgba(255, 237, 241, 0.98) !important;
  transform: scale(1.04);
}

body.itec-app-shell .maplibregl-popup-content h1,
body.itec-app-shell .maplibregl-popup-content h2,
body.itec-app-shell .maplibregl-popup-content h3,
body.itec-app-shell .maplibregl-popup-content h4,
body.itec-app-shell .maplibregl-popup-content h5,
body.itec-app-shell .maplibregl-popup-content h6,
.maplibregl-popup-content h1,
.maplibregl-popup-content h2,
.maplibregl-popup-content h3,
.maplibregl-popup-content h4,
.maplibregl-popup-content h5,
.maplibregl-popup-content h6 {
  margin: 0 0 14px;
  padding-right: 36px;
  color: #1a1f2b;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

body.itec-app-shell .maplibregl-popup-content > div > div:first-child,
.maplibregl-popup-content > div > div:first-child {
  color: #1a1f2b;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 12px;
  padding-right: 34px;
}

body.itec-app-shell .maplibregl-popup-content table,
body.itec-app-shell .maplibregl-popup-content .MuiTable-root,
.maplibregl-popup-content table,
.maplibregl-popup-content .MuiTable-root {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

body.itec-app-shell .maplibregl-popup-content tr,
.maplibregl-popup-content tr {
  vertical-align: top;
}

body.itec-app-shell .maplibregl-popup-content td,
body.itec-app-shell .maplibregl-popup-content th,
.maplibregl-popup-content td,
.maplibregl-popup-content th {
  padding: 0;
  font-size: 0.95rem;
  line-height: 1.45;
}

body.itec-app-shell .maplibregl-popup-content td:first-child,
body.itec-app-shell .maplibregl-popup-content th:first-child,
.maplibregl-popup-content td:first-child,
.maplibregl-popup-content th:first-child {
  width: 42%;
  color: #2b3343;
  font-weight: 800;
  padding-right: 12px;
}

body.itec-app-shell .maplibregl-popup-content td:last-child,
body.itec-app-shell .maplibregl-popup-content th:last-child,
.maplibregl-popup-content td:last-child,
.maplibregl-popup-content th:last-child {
  color: #5d6678;
  font-weight: 600;
}

body.itec-app-shell .maplibregl-popup-content a,
.maplibregl-popup-content a {
  color: #c60f2a !important;
  font-weight: 800;
  text-decoration: none;
}

body.itec-app-shell .maplibregl-popup-content a:hover,
.maplibregl-popup-content a:hover {
  color: #970d22 !important;
  text-decoration: underline;
}

body.itec-app-shell .maplibregl-popup-content button,
body.itec-app-shell .maplibregl-popup-content .MuiButton-root,
.maplibregl-popup-content button,
.maplibregl-popup-content .MuiButton-root {
  border-radius: 14px;
}

body.itec-app-shell .maplibregl-popup-content .MuiButton-textPrimary,
body.itec-app-shell .maplibregl-popup-content .MuiIconButton-root,
.maplibregl-popup-content .MuiButton-textPrimary,
.maplibregl-popup-content .MuiIconButton-root {
  color: #7c1427 !important;
}

body.itec-app-shell .maplibregl-popup-content hr,
.maplibregl-popup-content hr {
  border: 0;
  border-top: 1px solid rgba(219, 13, 43, 0.08);
  margin: 12px 0;
}

body.itec-app-shell .MuiCard-root:has(.draggable-header),
.MuiCard-root:has(.draggable-header) {
  width: min(92vw, 38rem) !important;
  border-radius: 26px !important;
  overflow: hidden;
  border: 1px solid rgba(219, 13, 43, 0.14) !important;
  background:
    linear-gradient(180deg, rgba(255, 253, 253, 0.98) 0%, rgba(255, 244, 246, 0.98) 68%, rgba(255, 236, 240, 0.99) 100%) !important;
  box-shadow:
    0 28px 54px rgba(10, 10, 10, 0.22),
    0 10px 26px rgba(219, 13, 43, 0.12) !important;
}

body.itec-app-shell .MuiCard-root:has(.draggable-header)::before,
.MuiCard-root:has(.draggable-header)::before {
  content: "";
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #db0d2b 0%, #b00c27 52%, #710817 100%);
}

body.itec-app-shell .MuiCard-root .draggable-header,
.MuiCard-root .draggable-header {
  min-height: 4.6rem;
  padding: 1.05rem 1.15rem 0.35rem 1.35rem !important;
  background:
    radial-gradient(circle at top right, rgba(219, 13, 43, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 251, 252, 0.98) 0%, rgba(255, 244, 246, 0.96) 100%) !important;
  border-bottom: 1px solid rgba(219, 13, 43, 0.08);
}

body.itec-app-shell .MuiCard-root .draggable-header .MuiTypography-root,
.MuiCard-root .draggable-header .MuiTypography-root {
  color: #253044 !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}

body.itec-app-shell .MuiCard-root .draggable-header .MuiIconButton-root,
.MuiCard-root .draggable-header .MuiIconButton-root {
  width: 2.35rem;
  height: 2.35rem;
  margin-top: -0.2rem;
  border-radius: 999px;
  color: #8d1126 !important;
  background: rgba(255, 255, 255, 0.88) !important;
  box-shadow: 0 10px 18px rgba(141, 17, 38, 0.12);
}

body.itec-app-shell .MuiCard-root .MuiCardContent-root,
.MuiCard-root .MuiCardContent-root {
  padding: 0.9rem 1.35rem 0.75rem !important;
}

body.itec-app-shell .MuiCard-root .MuiTable-root,
.MuiCard-root .MuiTable-root {
  border-collapse: separate;
  border-spacing: 0 10px;
}

body.itec-app-shell .MuiCard-root .MuiTableCell-root,
.MuiCard-root .MuiTableCell-root {
  border-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body.itec-app-shell .MuiCard-root .MuiTableRow-root .MuiTableCell-root:first-of-type,
.MuiCard-root .MuiTableRow-root .MuiTableCell-root:first-of-type {
  width: 42%;
}

body.itec-app-shell .MuiCard-root .MuiTableRow-root .MuiTypography-body2:first-child,
.MuiCard-root .MuiTableRow-root .MuiTypography-body2:first-child {
  color: #212b3d !important;
  font-weight: 800 !important;
}

body.itec-app-shell .MuiCard-root .MuiTableRow-root .MuiTypography-colorTextSecondary,
.MuiCard-root .MuiTableRow-root .MuiTypography-colorTextSecondary {
  color: #5a6476 !important;
  font-weight: 600 !important;
}

body.itec-app-shell .MuiCard-root .MuiCardContent-root a,
.MuiCard-root .MuiCardContent-root a {
  color: #c40f2a !important;
  font-weight: 800 !important;
  text-decoration: none;
}

body.itec-app-shell .MuiCard-root .MuiCardContent-root a:hover,
.MuiCard-root .MuiCardContent-root a:hover {
  color: #930d21 !important;
  text-decoration: underline;
}

body.itec-app-shell .MuiCard-root .MuiCardActions-root,
.MuiCard-root .MuiCardActions-root {
  padding: 0.7rem 0.95rem 0.95rem !important;
  border-top: 1px solid rgba(219, 13, 43, 0.08);
  background: linear-gradient(180deg, rgba(255, 246, 248, 0.88) 0%, rgba(255, 239, 243, 0.96) 100%);
}

body.itec-app-shell .MuiCard-root .MuiCardActions-root .MuiIconButton-root,
.MuiCard-root .MuiCardActions-root .MuiIconButton-root {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 16px;
  color: #6a7384 !important;
}

body.itec-app-shell .MuiCard-root .MuiCardActions-root .MuiIconButton-root:hover,
.MuiCard-root .MuiCardActions-root .MuiIconButton-root:hover {
  background: rgba(219, 13, 43, 0.08) !important;
  color: #9a0f25 !important;
}

body.itec-app-shell .MuiCard-root .MuiCardActions-root .MuiIconButton-colorSecondary,
body.itec-app-shell .MuiCard-root .MuiCardActions-root .MuiIconButton-colorSecondary .MuiSvgIcon-root,
.MuiCard-root .MuiCardActions-root .MuiIconButton-colorSecondary,
.MuiCard-root .MuiCardActions-root .MuiIconButton-colorSecondary .MuiSvgIcon-root {
  color: #c10f29 !important;
}

body.itec-app-shell .MuiCard-root .MuiCardActions-root .MuiIconButton-colorError,
body.itec-app-shell .MuiCard-root .MuiCardActions-root .MuiIconButton-colorError .MuiSvgIcon-root,
.MuiCard-root .MuiCardActions-root .MuiIconButton-colorError,
.MuiCard-root .MuiCardActions-root .MuiIconButton-colorError .MuiSvgIcon-root {
  color: #d5322f !important;
}

body.itec-app-shell .MuiCard-root:has(.draggable-header) .MuiCardActions-root .MuiIconButton-colorError,
.MuiCard-root:has(.draggable-header) .MuiCardActions-root .MuiIconButton-colorError {
  display: none !important;
}

@media (max-width: 640px) {
  body.itec-app-shell .maplibregl-popup-content,
  .maplibregl-popup-content {
    min-width: 260px;
    max-width: min(86vw, 320px);
    padding: 16px 16px 14px !important;
    border-radius: 18px !important;
  }

  body.itec-app-shell .maplibregl-popup-content td,
  body.itec-app-shell .maplibregl-popup-content th,
  .maplibregl-popup-content td,
  .maplibregl-popup-content th {
    font-size: 0.9rem;
  }

  body.itec-app-shell .MuiCard-root:has(.draggable-header),
  .MuiCard-root:has(.draggable-header) {
    width: min(92vw, 22rem) !important;
    border-radius: 22px !important;
  }

  body.itec-app-shell .MuiCard-root .draggable-header,
  .MuiCard-root .draggable-header {
    padding: 0.95rem 1rem 0.3rem 1.1rem !important;
  }

  body.itec-app-shell .MuiCard-root .MuiCardContent-root,
  .MuiCard-root .MuiCardContent-root {
    padding: 0.75rem 1.1rem 0.6rem !important;
  }

  body.itec-app-shell .MuiCard-root .MuiCardActions-root,
  .MuiCard-root .MuiCardActions-root {
    padding: 0.55rem 0.65rem 0.8rem !important;
  }
}

body.itec-login-page #root,
body.itec-login-page main {
  min-height: 100vh;
}

body.itec-login-page main[data-itec-login="true"] {
  position: relative;
  overflow: hidden;
}

body.itec-login-page main[data-itec-login="true"]::before,
body.itec-login-page main[data-itec-login="true"]::after {
  content: "";
  position: absolute;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(30px);
  opacity: 0.5;
  pointer-events: none;
}

body.itec-login-page main[data-itec-login="true"]::before {
  top: -8rem;
  right: -8rem;
  background: rgba(219, 13, 43, 0.22);
}

body.itec-login-page main[data-itec-login="true"]::after {
  bottom: -10rem;
  left: 24%;
  background: rgba(120, 7, 22, 0.26);
}

body.itec-login-page [data-itec-sidebar="true"] {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(0, 0, 0, 0.98) 0%, rgba(9, 9, 9, 0.95) 45%, rgba(33, 6, 11, 0.94) 100%) !important;
  isolation: isolate;
}

body.itec-login-page [data-itec-sidebar="true"]::before,
body.itec-login-page [data-itec-sidebar="true"]::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

body.itec-login-page [data-itec-sidebar="true"]::before {
  top: -7rem;
  left: -5rem;
  width: 18rem;
  height: 18rem;
  background: radial-gradient(circle, rgba(219, 13, 43, 0.45) 0%, rgba(219, 13, 43, 0) 68%);
}

body.itec-login-page [data-itec-sidebar="true"]::after {
  bottom: -8rem;
  right: -6rem;
  width: 22rem;
  height: 22rem;
  background: radial-gradient(circle, rgba(135, 8, 26, 0.48) 0%, rgba(135, 8, 26, 0) 70%);
}

body.itec-login-page .brand-login-sidebar-content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  padding: 3.5rem 3.25rem;
  color: #f6f7fb;
}

body.itec-login-page .brand-login-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffadb8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.itec-login-page .brand-login-mark {
  width: 6.5rem;
  height: 6.5rem;
  margin: 1.15rem 0 1.3rem;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(219, 13, 43, 0.18));
}

body.itec-login-page .brand-login-sidebar-content h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.5rem, 4vw, 4.4rem);
  line-height: 0.94;
  font-weight: 800;
  letter-spacing: -0.05em;
}

body.itec-login-page .brand-login-sidebar-content p {
  margin: 1.35rem 0 0;
  max-width: 34rem;
  color: rgba(244, 246, 252, 0.78);
  font-size: 1rem;
  line-height: 1.75;
}

body.itec-login-page .brand-login-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

body.itec-login-page .brand-login-stat {
  padding: 1rem 1rem 1.1rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(219, 13, 43, 0.2);
  backdrop-filter: blur(10px);
}

body.itec-login-page .brand-login-stat strong {
  display: block;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
}

body.itec-login-page .brand-login-stat span {
  display: block;
  margin-top: 0.35rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
  line-height: 1.4;
}

body.itec-login-page .brand-login-points {
  display: grid;
  gap: 0.9rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

body.itec-login-page .brand-login-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
  line-height: 1.55;
}

body.itec-login-page .brand-login-points li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #db0d2b 0%, #8a0d24 100%);
  box-shadow: 0 0 0 6px rgba(219, 13, 43, 0.12);
}

body.itec-login-page [data-itec-paper="true"] {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 246, 246, 0.99) 100%) !important;
}

body.itec-login-page [data-itec-paper="true"]::before {
  content: "";
  position: absolute;
  inset: 2rem auto auto 2rem;
  width: 5rem;
  height: 5rem;
  border-radius: 1.75rem;
  background: radial-gradient(circle, rgba(219, 13, 43, 0.16) 0%, rgba(219, 13, 43, 0) 72%);
  pointer-events: none;
}

body.itec-login-page [data-itec-form="true"] {
  position: relative;
  width: min(100%, 31rem) !important;
  max-width: 31rem !important;
  padding: 2rem !important;
  border: 1px solid rgba(22, 27, 37, 0.08);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 18px 48px rgba(16, 22, 35, 0.12),
    0 2px 12px rgba(16, 22, 35, 0.05);
  backdrop-filter: blur(18px);
}

body.itec-login-page .brand-login-intro {
  margin-bottom: 1.4rem;
}

body.itec-login-page .brand-login-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: rgba(219, 13, 43, 0.09);
  color: #9e0b23;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.itec-login-page .brand-login-intro h2 {
  margin: 0.95rem 0 0;
  color: #10141c;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
}

body.itec-login-page .brand-login-intro p {
  margin: 0.9rem 0 0;
  color: #596273;
  font-size: 0.98rem;
  line-height: 1.7;
}

body.itec-login-page [data-itec-form="true"] img {
  max-width: 12rem;
}

body.itec-login-page [data-itec-form="true"] input {
  font-family: inherit;
}

body.itec-login-page [data-itec-form="true"] input,
body.itec-login-page [data-itec-form="true"] .MuiInputBase-input {
  color: #10141c;
}

body.itec-login-page [data-itec-form="true"] .MuiFormControl-root,
body.itec-login-page [data-itec-form="true"] .MuiTextField-root {
  margin-bottom: 0.65rem;
}

body.itec-login-page [data-itec-form="true"] .MuiOutlinedInput-root,
body.itec-login-page [data-itec-form="true"] .MuiInputBase-root {
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.88);
}

body.itec-login-page [data-itec-form="true"] .MuiOutlinedInput-notchedOutline {
  border-color: rgba(21, 26, 36, 0.12);
}

body.itec-login-page [data-itec-form="true"] .Mui-focused .MuiOutlinedInput-notchedOutline {
  border-color: #db0d2b !important;
  border-width: 2px;
}

body.itec-login-page [data-itec-form="true"] .MuiInputLabel-root.Mui-focused {
  color: #9e0b23;
}

body.itec-login-page [data-itec-form="true"] button[type="submit"],
body.itec-login-page [data-itec-form="true"] .MuiButton-containedPrimary {
  min-height: 3.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #db0d2b 0%, #8f0a21 100%);
  box-shadow: 0 14px 30px rgba(219, 13, 43, 0.24);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body.itec-login-page [data-itec-form="true"] button[type="submit"]:hover,
body.itec-login-page [data-itec-form="true"] .MuiButton-containedPrimary:hover {
  background: linear-gradient(135deg, #f01334 0%, #a30d27 100%);
}

body.itec-login-page [data-itec-form="true"] a {
  color: #9e0b23;
  font-weight: 700;
}

body.itec-login-page .brand-login-footer-note {
  margin-top: 1.2rem;
  color: #6c7483;
  font-size: 0.85rem;
  line-height: 1.55;
}

@media (max-width: 1199px) {
  body.itec-login-page [data-itec-form="true"] {
    width: min(100%, 34rem) !important;
    max-width: 34rem !important;
  }

  body.itec-login-page .brand-login-sidebar-content {
    padding: 3rem 2.2rem;
  }
}

@media (max-width: 899px) {
  body.itec-login-page [data-itec-paper="true"] {
    background:
      linear-gradient(180deg, rgba(20, 23, 31, 0.15) 0%, rgba(255, 255, 255, 0.96) 16%, rgba(251, 248, 243, 0.99) 100%) !important;
  }

  body.itec-login-page [data-itec-form="true"] {
    margin: 1rem auto;
    padding: 1.5rem !important;
    border-radius: 1.6rem;
  }
}

@media (max-width: 599px) {
  body.itec-login-page .brand-login-intro h2 {
    font-size: 1.7rem;
  }

  body.itec-login-page .brand-login-intro p,
  body.itec-login-page .brand-login-footer-note {
    font-size: 0.9rem;
  }

  body.itec-login-page [data-itec-form="true"] {
    width: 100% !important;
    max-width: none !important;
    padding: 1.2rem !important;
  }
}

body.itec-app-shell .itec-wa-config-trigger,
.itec-wa-config-trigger {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: inherit;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
  background: linear-gradient(135deg, #169976 0%, #22b8aa 100%);
  box-shadow: 0 12px 24px rgba(34, 184, 170, 0.18);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

body.itec-app-shell .itec-wa-config-trigger:hover,
.itec-wa-config-trigger:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(34, 184, 170, 0.24);
}

body.itec-app-shell .itec-wa-config-trigger:disabled,
.itec-wa-config-trigger:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.itec-wa-config-trigger-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.14);
}

.itec-wa-modal.hidden {
  display: none;
}

.itec-wa-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.itec-wa-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.68);
  backdrop-filter: blur(10px);
}

.itec-wa-dialog {
  position: relative;
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  border-radius: 34px;
  padding: 32px 32px 26px;
  background:
    radial-gradient(circle at top right, rgba(219, 13, 43, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(255, 252, 253, 0.99) 0%, rgba(255, 243, 246, 0.98) 100%) !important;
  color: #172033 !important;
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(219, 13, 43, 0.16);
}

.itec-wa-dialog,
.itec-wa-dialog * {
  color: inherit;
}

.itec-wa-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 32, 51, 0.06);
  color: #5c667d;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}

.itec-wa-head {
  margin-bottom: 22px;
}

.itec-wa-kicker {
  display: inline-block;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #b1122d;
  background: rgba(219, 13, 43, 0.12);
}

.itec-wa-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: #141b2d !important;
}

.itec-wa-device-name {
  margin: 0;
  color: #b1122d !important;
  font-weight: 800;
  font-size: 1.05rem;
}

.itec-wa-switch-row,
.itec-wa-type-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.itec-wa-switch-row {
  margin-bottom: 22px;
  color: #263248 !important;
  font-weight: 700;
}

.itec-wa-grid,
.itec-wa-custom-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.itec-wa-custom-range {
  margin-top: 14px;
}

.itec-wa-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.itec-wa-field span,
.itec-wa-types > span {
  color: #5e6983 !important;
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.itec-wa-field input,
.itec-wa-field select {
  width: 100%;
  min-height: 58px;
  border-radius: 22px;
  border: 1px solid rgba(23, 32, 51, 0.12) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: #172033 !important;
  padding: 0 18px;
  font: inherit;
  font-size: 1.02rem;
  box-sizing: border-box;
}

.itec-wa-field input::placeholder {
  color: rgba(23, 32, 51, 0.42) !important;
}

.itec-wa-field input:focus,
.itec-wa-field select:focus {
  outline: none;
  border-color: rgba(34, 184, 170, 0.7) !important;
  box-shadow: 0 0 0 4px rgba(34, 184, 170, 0.12) !important;
}

.itec-wa-types {
  margin-top: 24px;
}

.itec-wa-type-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin-top: 14px;
}

.itec-wa-type-item {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(177, 18, 45, 0.05) !important;
  color: #243045 !important;
  font-weight: 700;
}

.itec-wa-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.itec-wa-primary,
.itec-wa-secondary {
  flex: 1;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.itec-wa-primary {
  color: #fff !important;
  background: linear-gradient(135deg, #19a38a 0%, #23bcb0 100%) !important;
  box-shadow: 0 16px 30px rgba(35, 188, 176, 0.22);
}

.itec-wa-secondary {
  color: #243045 !important;
  background: rgba(23, 32, 51, 0.06) !important;
}

.itec-wa-status {
  min-height: 24px;
  margin: 14px 2px 0;
  color: #5c667d !important;
  font-weight: 700;
}

.itec-wa-status[data-tone="ok"] {
  color: #69e3b0;
}

.itec-wa-status[data-tone="error"] {
  color: #ff8a9d;
}

@media (max-width: 720px) {
  .itec-wa-dialog {
    padding: 24px 20px 20px;
    border-radius: 26px;
  }

  .itec-wa-grid,
  .itec-wa-custom-range,
  .itec-wa-type-list,
  .itec-wa-actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .itec-wa-actions {
    gap: 10px;
  }
}
