/* GIRADESK V287.20 - padrão único de autenticação.
 * Mesma composição mobile em todas as páginas; desktop V286.3 aprovado intacto.
 * Uma marca institucional no cabeçalho e somente a logo personalizada no formulário.
 * Rolagem vertical natural para telas baixas e teclado virtual, sem cortes. */
@media (max-width:1100px) {
 html:has(body.gd-v2863-auth) {height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;}
 body.ax137-auth.gd-v2863-auth {
   min-height:100svh!important;height:auto!important;max-height:none!important;
   overflow-x:hidden!important;overflow-y:visible!important;
   background:linear-gradient(180deg,#063b2b 0,#07543b 240px,#ecf1e9 430px,#f5f7f1 100%)!important;
 }
 body.gd-v2863-auth :is(.ax137-page,.member-ax137-page,.ax137-main,.ax137-auth-panel) {
   height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;
   width:100%!important;max-width:100%!important;min-width:0!important;
   margin:0!important;padding:0!important;transform:none!important;
 }
 body.gd-v2863-auth .ax137-form-side {
   width:min(100%,640px)!important;max-width:640px!important;
   height:auto!important;min-height:0!important;max-height:none!important;
   margin:0 auto!important;
   padding:clamp(16px,4vw,28px) clamp(18px,5vw,30px) clamp(28px,5vw,48px)!important;
   overflow:visible!important;
 }
 body.gd-v2863-auth .ax137-form-side::before {
   top:clamp(150px,36vw,218px)!important;bottom:12px!important;
   left:clamp(8px,2.5vw,16px)!important;right:clamp(8px,2.5vw,16px)!important;
 }
 body.gd-v2863-auth .ax137-form-side :is(.gd-v2866-mobile-brand,.gd-v28716-mobile-brand) {
   display:flex!important;justify-content:center!important;align-items:center!important;
   margin:0 0 clamp(54px,15vw,90px)!important;
   padding:clamp(14px,3vw,22px) 4px!important;
   background:transparent!important;border:0!important;box-shadow:none!important;
 }
 body.gd-v2863-auth .ax137-form-side :is(.gd-v2866-mobile-brand,.gd-v28716-mobile-brand) img {
   width:min(100%,345px)!important;height:auto!important;max-height:95px!important;object-fit:contain!important;
 }
 body.gd-v2863-auth .ax137-form-logo {
   display:flex!important;justify-content:center!important;align-items:center!important;
   width:100%!important;max-width:100%!important;
   margin:0 auto clamp(12px,3vw,20px)!important;background:none!important;
 }
 body.gd-v2863-auth .ax137-form-logo.ax164-default-logo {display:none!important;}
 body.gd-v2863-auth .ax137-form-logo img {
   display:block!important;width:auto!important;height:auto!important;max-width:100%!important;
   max-height:clamp(80px,24vw,140px)!important;object-fit:contain!important;
 }
 body.gd-v2863-auth :is(.ax137-title,.ax137-subtitle){text-align:center!important;}
 body.gd-v2863-auth .ax137-form{width:100%!important;min-width:0!important;}
 body.gd-v2863-auth :is(.ax137-field,.ax137-control,.ax137-submit,.ax137-secondary){max-width:100%!important;min-width:0!important;}
 body.gd-v2863-auth .ax137-control input{font-size:16px!important;min-width:0!important;}
 body.gd-v2863-auth .ax137-secondary {margin-top:clamp(16px,4vw,28px)!important;}
 body.gd-v2863-auth :is(.ax137-auth-panel,.ax137-form-side){box-sizing:border-box!important;}
}
@media (max-width:380px){
 body.gd-v2863-auth .ax137-form-side{padding-inline:17px!important;}
 body.gd-v2863-auth .ax137-form-side::before{top:150px!important;}
 body.gd-v2863-auth .ax137-title{font-size:clamp(25px,7.3vw,31px)!important;}
 body.gd-v2863-auth .ax137-secondary a{font-size:13px!important;}
}
@media (max-width:1100px) and (orientation:landscape) and (max-height:540px){
 body.gd-v2863-auth .ax137-form-side::before{top:120px!important;}
 body.gd-v2863-auth .ax137-form-side :is(.gd-v2866-mobile-brand,.gd-v28716-mobile-brand){margin-bottom:45px!important;padding:8px 4px!important;}
 body.gd-v2863-auth .ax137-form-side :is(.gd-v2866-mobile-brand,.gd-v28716-mobile-brand) img{max-height:68px!important;}
}
/* A autenticação de dois fatores exige mais conteúdo: mantenha a mesma linguagem,
 * com rolagem natural e sem modificar campos, token ou fluxo. */
@media (max-width:1100px){
 body.gd2fa-page{min-height:100svh!important;height:auto!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;background:linear-gradient(180deg,#063b2b 0,#07543b 230px,#edf1e8 430px)!important;}
 body.gd2fa-page .gd2fa-shell{height:auto!important;min-height:100svh!important;overflow:visible!important;}
 body.gd2fa-page .gd2fa-content{width:100%!important;max-width:680px!important;margin:0 auto!important;padding:18px!important;}
 body.gd2fa-page .gd2fa-card{width:100%!important;max-width:100%!important;box-sizing:border-box!important;border-radius:26px!important;box-shadow:0 12px 36px rgba(7,49,29,.12)!important;overflow-wrap:anywhere!important;}
 body.gd2fa-page :is(.gd2fa-code-grid,.gd2fa-secret){max-width:100%!important;overflow-wrap:anywhere!important;}
 body.gd2fa-page .gd-v2863-2fa-brand{background:#063b2b!important;border-radius:14px!important;padding:12px!important;}
 body.gd2fa-page .gd-v2863-2fa-brand img{max-width:100%!important;max-height:85px!important;object-fit:contain!important;}
}
@media (min-width:1101px){body.gd-v2863-auth .gd-login-showcase h2{text-align:left!important;}}

/* V287.21 — rolagem quando necessaria, preservando o layout V287.20.
   Permite expandir a pagina acima da altura visivel, sem rolagem horizontal. */
html:has(body.ax137-auth.gd-v2863-auth),
html:has(body.gd2fa-page) {
  height:auto !important;
  min-height:100% !important;
  overflow-x:clip !important;
  overflow-y:auto !important;
}
body.ax137-auth.gd-v2863-auth,
body.gd2fa-page {
  height:auto !important;
  min-height:100vh !important;
  min-height:100dvh !important;
  max-height:none !important;
  overflow-x:clip !important;
  overflow-y:auto !important;
}
body.ax137-auth.gd-v2863-auth .ax137-page,
body.ax137-auth.gd-v2863-auth .ax137-main,
body.ax137-auth.gd-v2863-auth .ax137-auth-panel,
body.ax137-auth.gd-v2863-auth .ax137-form-side,
body.gd2fa-page .gd2fa-shell,
body.gd2fa-page .gd2fa-content {
  height:auto !important;
  max-height:none !important;
  overflow-y:visible !important;
}
@media(max-width:1100px) {
  body.ax137-auth.gd-v2863-auth,
  body.gd2fa-page {
    position:relative !important;
    overflow-y:auto !important;
    overscroll-behavior-y:auto !important;
    -webkit-overflow-scrolling:touch;
  }
  body.ax137-auth.gd-v2863-auth .ax137-page,
  body.ax137-auth.gd-v2863-auth .ax137-main,
  body.ax137-auth.gd-v2863-auth .ax137-auth-panel,
  body.ax137-auth.gd-v2863-auth .ax137-form-side {
    min-height:0 !important;
    overflow-y:visible !important;
  }
}
