/* R10.5.3H: full-width animated power station -> high-voltage grid header.
   Scoped to the native sign-in dialog. Does not touch Supabase authentication. */
#r1051AuthDialog .r1051-auth-head.r1053h-header{
  position:relative;display:block;box-sizing:border-box;
  height:142px;min-height:142px;width:100%;padding:0;gap:0;
  overflow:hidden;isolation:isolate;background:#0b4058;
  border-bottom:1px solid rgba(66,205,216,.45)
}
#r1051AuthDialog .r1053h-scene{
  position:absolute;inset:0;display:block;overflow:hidden;
  width:100%;height:100%;pointer-events:none;
  background:linear-gradient(112deg,#082c48,#0b546e 68%,#096378)
}
#r1051AuthDialog .r1053h-scene svg{
  width:100%;height:100%;display:block;overflow:hidden;
}
#r1051AuthDialog .r1053h-moving-wire{
  animation:r1053h-current 3.8s linear infinite;
  filter:drop-shadow(0 0 3px rgba(80,249,234,.7))
}
#r1051AuthDialog .r1053h-stars{animation:r1053h-twinkle 4.1s ease-in-out infinite}
#r1051AuthDialog .r1053h-sparkles{animation:r1053h-twinkle 1.7s ease-in-out infinite alternate}
#r1051AuthDialog .r1053h-smoke{animation:r1053h-smoke 4.3s ease-in-out infinite alternate}
#r1051AuthDialog .r1053h-plant{filter:drop-shadow(0 0 3px #128eaa70)}
#r1051AuthDialog .r1053h-towers{filter:drop-shadow(0 0 2px #70ddf75c)}
#r1051AuthDialog #r1051AuthClose{
  position:absolute;top:11px;right:11px;z-index:3;
  width:37px;height:37px;padding:0;display:grid;place-items:center;
  border:1px solid #b7ebf4a3;border-radius:11px;
  background:#062d47cf;color:#fff;
  box-shadow:0 3px 12px rgba(2,22,39,.38);
  font-size:23px;cursor:pointer;
}
#r1051AuthDialog #r1051AuthClose:hover{background:#136582;box-shadow:0 0 0 3px #75e3e33d,0 4px 15px #001a28ab}
#r1051AuthDialog #r1051AuthClose:focus-visible{outline:3px solid #fff;outline-offset:2px}
/* Banner is ONE header. No second artwork row and no login-frame zoom. */
#r1051AuthDialog .r1051-auth-frame{
  height:min(415px,calc(100dvh - 215px));
  max-height:calc(100dvh - 215px)
}
@keyframes r1053h-current{to{stroke-dashoffset:-200}}
@keyframes r1053h-twinkle{0%,100%{opacity:.48}48%{opacity:1}}
@keyframes r1053h-smoke{to{transform:translateY(-7px);opacity:.18}}
@media(max-width:540px){
  #r1051AuthDialog .r1051-auth-head.r1053h-header{height:115px;min-height:115px}
  #r1051AuthDialog .r1051-auth-frame{height:min(415px,calc(100dvh - 186px));max-height:calc(100dvh - 186px)}
  #r1051AuthDialog #r1051AuthClose{top:8px;right:9px;width:33px;height:33px}
}
@media(max-height:600px){
  #r1051AuthDialog .r1051-auth-head.r1053h-header{height:91px;min-height:91px}
  #r1051AuthDialog .r1051-auth-frame{height:min(415px,calc(100dvh - 160px));max-height:calc(100dvh - 160px)}
}
@media(prefers-reduced-motion:reduce){
  #r1051AuthDialog .r1053h-moving-wire,
  #r1051AuthDialog .r1053h-stars,
  #r1051AuthDialog .r1053h-sparkles,
  #r1051AuthDialog .r1053h-smoke{animation:none!important}
  #r1051AuthDialog .r1053h-beam-dot{display:none!important}
}
