/* ZT ACCOUNTS — modo de carregamento em tela cheia.
   O cabeçalho regular desaparece visualmente: permanece apenas a marca. */

/* Impede rolagem suave herdada ao trocar de etapa. */
html {scroll-behavior:auto;}
body[data-screen="loading"],
body[data-screen="migration-loading"] {
  height:100vh;
  height:100dvh;
  overflow:hidden;
  overscroll-behavior:none;
}
body[data-screen="loading"] .site-header,
body[data-screen="migration-loading"] .site-header {
  position:fixed;
  top:0; left:0; right:0;
  z-index:102;
  height:88px;
  padding:0 clamp(24px,5.9vw,100px);
  background:transparent;
  border:0;
  pointer-events:none;
}
body[data-screen="loading"] .site-header .brand,
body[data-screen="migration-loading"] .site-header .brand {
  pointer-events:auto;
}
body[data-screen="loading"] .site-header .header-right,
body[data-screen="migration-loading"] .site-header .header-right,
body[data-screen="loading"] .site-footer,
body[data-screen="migration-loading"] .site-footer {
  display:none;
}

/* Position fixed: a seção surge no centro do viewport independentemente
   da altura ou da posição de scroll da etapa anterior. */
body[data-screen="loading"] #screen-loading,
body[data-screen="migration-loading"] #screen-migration-loading {
  position:fixed;
  inset:0;
  z-index:100;
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  height:100vh;
  height:100dvh;
  min-height:0;
  margin:0;
  padding:104px 24px 24px;
  overflow-y:auto;
  overscroll-behavior:contain;
  background:
    radial-gradient(ellipse 52% 65% at 82% 35%,rgba(43,76,132,.27),transparent 78%),
    radial-gradient(ellipse 55% 85% at 5% 4%,rgba(37,45,82,.25),transparent 80%),
    linear-gradient(145deg,#0d101a 0%,#080b13 61%,#0b101d 100%);
  isolation:isolate;
}
body[data-screen="loading"] #screen-loading:before,
body[data-screen="migration-loading"] #screen-migration-loading:before {
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  background-image:linear-gradient(rgba(200,210,255,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(200,210,255,.025) 1px,transparent 1px);
  background-size:76px 76px;
  mask-image:linear-gradient(#000 12%,transparent 98%);
  pointer-events:none;
}
body[data-screen="loading"] .loading-layout,
body[data-screen="migration-loading"] .loading-layout {
  width:min(565px,100%);
  flex:0 0 auto;
  margin:auto;
  padding:0 2px;
  animation:zt-loading-enter .52s cubic-bezier(.22,1,.36,1) both;
}
body[data-screen="loading"] .loading-visual,
body[data-screen="migration-loading"] .loading-visual {
  margin-top:0;
}
body[data-screen="loading"] .loading-copy h2,
body[data-screen="migration-loading"] .loading-copy h2 {
  margin-top:14px;
}
@keyframes zt-loading-enter {
  from {opacity:0;transform:translateY(12px) scale(.985)}
  to {opacity:1;transform:translateY(0) scale(1)}
}
@media(max-width:630px){
 body[data-screen="loading"] .site-header,
 body[data-screen="migration-loading"] .site-header {height:72px;padding:0 22px;}
 body[data-screen="loading"] #screen-loading,
 body[data-screen="migration-loading"] #screen-migration-loading {padding:84px 20px 20px;}
 body[data-screen="loading"] .loading-visual,
 body[data-screen="migration-loading"] .loading-visual {height:130px;margin-bottom:5px;transform:scale(.79);}
 body[data-screen="loading"] .loading-copy h2,
 body[data-screen="migration-loading"] .loading-copy h2 {font-size:clamp(35px,9vw,45px);margin:12px 0;}
 body[data-screen="loading"] .loading-progress,
 body[data-screen="migration-loading"] .loading-progress {margin-top:24px;}
 body[data-screen="loading"] .loading-steps {margin-top:19px;gap:12px;}
 body[data-screen="migration-loading"] .v5-loading-footnote {margin-top:22px;}
}
@media(max-height:650px){
 body[data-screen="loading"] #screen-loading,
 body[data-screen="migration-loading"] #screen-migration-loading {align-items:flex-start;}
 body[data-screen="loading"] .loading-visual,
 body[data-screen="migration-loading"] .loading-visual {height:120px;transform:scale(.75);margin-bottom:0;}
 body[data-screen="loading"] .loading-progress,
 body[data-screen="migration-loading"] .loading-progress {margin-top:18px;}
}
@media(prefers-reduced-motion:reduce){
 body[data-screen="loading"] .loading-layout,
 body[data-screen="migration-loading"] .loading-layout {animation:none;}
}
