/* v1.9: camada exclusiva de correcoes visuais sobre a v1.8. */
html.idf-hw-preview-ready,html.idf-hw-preview-ready body,
body.idf-halloween-active {
  background-color:#15101f!important;
  background-image:radial-gradient(ellipse at 20% 0%,rgba(126,55,117,.16),transparent 45%),linear-gradient(165deg,#201429,#100d1b 72%)!important;
  color:#f7effe!important;
  color-scheme:dark;
}
/* A lua pertence ao BACKGROUND do portal, nao ao overlay dos personagens.
   O desenho e aplicado a camadas internas de superficie, atras dos elementos-filhos. */
body.idf-halloween-active .idf-hw-portal-root {
  background-color:#191321!important;
  background-image:url('./halloween-moon.svg'),radial-gradient(circle at 92% 9%,rgba(251,161,65,.10),transparent 33%),linear-gradient(145deg,#1e172a,#15101e)!important;
  background-size:clamp(185px,20vw,300px) auto,cover,cover!important;
  background-position:right clamp(16px,5vw,80px) top clamp(20px,7vh,90px),center,center!important;
  background-repeat:no-repeat!important;
  background-attachment:local!important;
  border-color:#56445e!important;color:#f8efff!important;
}
body.idf-halloween-active:not(.idf-hw-demo) .idf-hw-dark-shell,
body.idf-halloween-active:not(.idf-hw-demo) .idf-hw-shell-v19 {
  background-color:#1b1627!important;background-image:none!important;
  color:#f6ebfc!important;border-color:#4a3a59!important;
}
body.idf-halloween-active .idf-hw-dark-surface,
body.idf-halloween-active .idf-hw-surface-v19 {
  background-color:#292135!important;background-image:none!important;
  color:#f8efff!important;border-color:#62506e!important;
}
/* O login de alguns templates nao possui identificadores CSS previsiveis. */
body.idf-halloween-active :is(header,nav,.site-header,.elementor-location-header,.portal-header,.auth-header,.login-header):not(#wpadminbar):not(.demo-switch) {
  background-color:#1b1424!important;
  background-image:none!important;
  color:#f4eafa!important;
}
body.idf-halloween-active :is(.portal-login,.login-page,.login-wrapper,.auth-layout,.login-layout,.portal-hero,.login-hero,.portal-main,.portal-root,.auth-main,.dashboard-main,.main-content,.marketing-wrapper,.portal-wrapper,.marketing-dashboard,.dashboard-wrapper,.marketing-main):not(.idf-hw-demo) {
  background-color:#191321!important;
  color:#f6ebfc!important;
}
body.idf-halloween-active :is(.login-card,.auth-card,.form-card,.signin-card,.partner-login,.login-form,.auth-panel,.portal-card,.portal-panel,.marketing-panel,.marketing-card,.dashboard-card,.sidebar-card,.art-card,.card):not(.demo-poster) {
  background-color:#2a2137!important;border-color:#695470!important;color:#f7edfb!important;
}
body.idf-halloween-active :is(.idf-hw-portal-root,.idf-hw-surface-v19,.idf-hw-shell-v19) :is(h1,h2,h3,h4,h5,h6,p,label,legend,small,figcaption,strong):not(.idf-hw-orange-button) {
  color:#f6ebfc!important;
}
body.idf-halloween-active :is(.idf-hw-dark-text,.idf-hw-text-v19){color:#f6ebfc!important;}
body.idf-halloween-active :is(main,form,.idf-hw-portal-root,.portal-login,.login-wrapper,.auth-layout) :is(button,[type=submit],.btn-primary,.button-primary,.elementor-button,.idf-hw-orange-button){
  background:linear-gradient(110deg,#ffaf42,#fa801c)!important;
  border-color:#ffc171!important;color:#231522!important;
  text-shadow:none!important;font-weight:700!important;
}
body.idf-halloween-active :is(.idf-hw-portal-root,main,.login-wrapper,.auth-layout) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=submit]):not([type=button]),textarea,select) {
  background:#392b43!important;color:#fff9f5!important;border-color:#7c5b79!important;
}
body.idf-halloween-active :is(.idf-hw-portal-root,main,.login-wrapper,.auth-layout) :is(input,textarea)::placeholder {color:#e3cfdf!important;opacity:1!important;}
body.idf-halloween-active a:not(.idf-hw-orange-button):not(.button):not([role=button]) {color:#ffbc80;}
/* Remover a lua antiga do overlay da v1.8, inclusive em caches mistos. */
body.idf-halloween-active #idf-halloween-scene .idf-hw-moon{display:none!important;}
/* Personagens ficam acima do ceu, mas discretos; nunca capturam clicks. */
body.idf-halloween-active #idf-halloween-scene[data-idf-version="2.1"]{pointer-events:none!important;}
body.idf-halloween-active #idf-halloween-scene[data-idf-version="2.1"] .idf-hw-witch-flight {opacity:.89!important;}
body.idf-halloween-active #idf-halloween-scene[data-idf-version="2.1"] .idf-hw-flight-a {width:clamp(98px,9.5vw,142px)!important;}
body.idf-halloween-active #idf-halloween-scene[data-idf-version="2.1"] .idf-hw-flight-b {width:clamp(86px,7.8vw,120px)!important;}
/* A amostra independente apresenta o mesmo fundo, inclusive no login. */
body.idf-hw-demo{background-image:url('./halloween-moon.svg'),radial-gradient(circle at 86% 18%,rgba(241,143,50,.10),transparent 36%),linear-gradient(145deg,#20162d,#100c1a)!important;background-position:right 6vw top 12vh,center,center!important;background-size:clamp(160px,22vw,280px) auto,cover,cover!important;background-repeat:no-repeat!important;}
body.idf-hw-demo .demo-shell {position:relative;z-index:11;}
body.idf-hw-demo .demo-login,body.idf-hw-demo .demo-sidebar,body.idf-hw-demo .demo-art {background:#2b2239!important;color:#f5eefa!important;}
body.idf-hw-demo .demo-panel {background:#201827!important;}
@media(max-width:700px){body.idf-hw-demo{background-position:right -35px top 70px,center,center!important;background-size:185px auto,cover,cover!important;}}
@media(prefers-reduced-motion:reduce){#idf-halloween-scene .idf-hw-witch-flight{display:none!important;animation:none!important;}}
