/* ui4.css — industrial line-art: page background, login hero, brand looks, deal strip, home banner.
   All art is our own SVG, used as a mask so it takes the theme colour. Cards stay solid. */
html:root{--art:#1f5fbf;--artop:.06;--indc:#1f5fbf}
html:root[data-theme=dark]{--art:#8fb4ff;--artop:.07;--indc:#8fb4ff}
body[data-bu=mcpm]{--art:#1f5fbf}body[data-bu=rebus]{--art:#0f8aa6}
html:root[data-theme=dark] body[data-bu=mcpm]{--art:#8fb4ff}html:root[data-theme=dark] body[data-bu=rebus]{--art:#4fd0e8}

/* 1) page background pattern (behind everything) */
body::before{content:'';position:fixed;inset:0;z-index:0;pointer-events:none;background:var(--art);opacity:var(--artop);
  -webkit-mask:url(/art/bg-both.svg) 0 0/780px 780px repeat;mask:url(/art/bg-both.svg) 0 0/780px 780px repeat}
body[data-bu=mcpm]::before{-webkit-mask-image:url(/art/bg-mcpm.svg);mask-image:url(/art/bg-mcpm.svg)}   /* 3) MCPM: data lines */
body[data-bu=rebus]::before{-webkit-mask-image:url(/art/bg-rebus.svg);mask-image:url(/art/bg-rebus.svg)} /* 3) Rebus: circuit traces */
.shell,#app>.page{position:relative;z-index:1}
@media(max-width:860px){body::before{-webkit-mask-size:560px 560px;mask-size:560px 560px}}
@media print{body::before{display:none}}

/* 2) login hero */
body:has(.login){background:radial-gradient(1200px 700px at 78% 8%,#2a5db0 0%,transparent 60%),linear-gradient(165deg,#07101f 0%,#0e2347 55%,#173a70 100%)!important;min-height:100vh}
body:has(.login)::before{-webkit-mask:none;mask:none;background:url(/art/login.svg) center bottom/cover no-repeat;opacity:.32}
body:has(.login) #app{position:relative;z-index:1}
.login{background:rgba(255,255,255,.13)!important;-webkit-backdrop-filter:blur(18px) saturate(1.2);backdrop-filter:blur(18px) saturate(1.2);border:1px solid rgba(255,255,255,.28)!important;box-shadow:0 30px 80px rgba(0,0,0,.45)!important;color:#fff}
.login h2,.login h3,.login label,.login .sub,.login p,.login small{color:#fff}
.login a{color:#cfe2ff}
.login input{background:rgba(255,255,255,.96)!important;color:#12203a!important;border:1px solid transparent}
.login input::placeholder{color:#55627a}
.login .themebtn{background:rgba(255,255,255,.18);color:#fff}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.login{background:rgba(10,24,48,.88)!important}}

/* 4) deal header: industry strip */
.dhead{position:relative;overflow:hidden}
.dhead::before{content:'';position:absolute;inset:0 0 0 auto;width:min(62%,760px);pointer-events:none;background:var(--indc);opacity:.14;
  -webkit-mask:var(--indimg) right bottom/auto 100% no-repeat;mask:var(--indimg) right bottom/auto 100% no-repeat}
.dhead>*{position:relative}
.dhead .indlabel{position:absolute!important;right:14px;top:8px;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--mut);opacity:.9}

/* 5) home banner */
#main.hasbanner{position:relative}
.herobanner{position:absolute;left:0;right:0;top:0;height:160px;pointer-events:none;z-index:0;background:var(--art);opacity:.15;
  -webkit-mask:url(/art/ind-default.svg) right bottom/auto 100% no-repeat;mask:url(/art/ind-default.svg) right bottom/auto 100% no-repeat}
#main.hasbanner>*:not(.herobanner){position:relative;z-index:1}
@media(max-width:860px){.herobanner{height:110px;opacity:.09}}
