/* Cândido Adventure V14.71 — Login no COMPUTADOR com o mesmo desenho do login do celular deitado:
   logo à esquerda, formulário à direita, tudo numa tela só (sem barra de rolagem).
   Não exige tela cheia nem janela deitada: vale para qualquer janela de computador com ≥ 760 px de largura (e tablets deitados altos).
   Janelas estreitas (< 760 px) continuam com o desenho antigo, em coluna. O celular deitado baixo segue em ca-mobile-gate-v1466.css. */
@media (pointer:fine) and (min-width:760px), (pointer:coarse) and (orientation:landscape) and (min-height:521px) and (min-width:760px){
  html body:has(#login:not(.hidden)) .wrap{
    display:grid!important;grid-template-columns:minmax(0,42%) minmax(0,1fr)!important;grid-template-rows:auto!important;
    align-items:center!important;align-content:center!important;column-gap:clamp(16px,3vw,56px)!important;row-gap:0!important;
    min-height:100vh!important;min-height:100dvh!important;box-sizing:border-box!important;max-width:none!important;margin:0!important;
    padding:clamp(8px,2.5vh,28px) clamp(16px,4vw,64px)!important;overflow:hidden!important;
  }
  html body:has(#login:not(.hidden)) .wrap>header.top{
    grid-column:1!important;grid-row:1!important;position:static!important;width:auto!important;min-height:0!important;
    margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;
    display:flex!important;align-items:center!important;justify-content:center!important;
  }
  html body:has(#login:not(.hidden)) .wrap>header.top .brand{display:flex!important;justify-content:center!important;align-items:center!important;width:100%!important;min-height:0!important;margin:0!important;padding:0!important}
  html body:has(#login:not(.hidden)) .wrap>header.top .brand .brand-logo{
    width:min(100%,clamp(220px,58vh,560px))!important;height:auto!important;max-width:100%!important;max-height:none!important;margin:0 auto!important;transform:none!important;
  }
  html body:has(#login:not(.hidden)) .wrap>#login{grid-column:2!important;grid-row:1!important;width:100%!important;max-width:760px!important;justify-self:center!important;margin:0!important;padding:0!important;min-width:0}
  html body .wrap>#login>.panel{width:100%!important;max-width:none!important;max-height:none!important;min-height:0!important;height:auto!important;overflow:visible!important;margin:0!important;padding:clamp(10px,3vh,26px) clamp(14px,2.4vw,30px)!important;box-sizing:border-box!important}
  html body #login .panel>h2{margin:0 0 clamp(4px,1.4vh,12px)!important;font-size:clamp(18px,3.4vh,32px)!important;line-height:1.1!important}
  /* botões de arte 664×253: a altura manda e a largura vem da proporção (nunca esticar) */
  html body #login .ca-login-role-choice{gap:clamp(8px,1.4vw,16px)!important;margin:0 0 clamp(4px,1.4vh,12px)!important;justify-content:center!important;justify-items:center!important;display:flex!important;flex-wrap:nowrap!important}
  html body #login .ca-login-role-choice>button[data-login-mode],
  html body:has(#login:not(.hidden)) #login #loginFields>button.btn{height:var(--ca-lbh,64px)!important;width:auto!important;min-height:0!important;max-height:none!important;min-width:0!important;max-width:none!important;aspect-ratio:664/253!important;padding:0!important;flex:0 0 auto!important}
  html body #login{--ca-lbh:clamp(44px,8.5vh,88px)}
  html body #login #loginFields{display:grid!important;grid-template-columns:minmax(120px,auto) minmax(0,1fr)!important;column-gap:clamp(8px,1.2vw,16px)!important;row-gap:clamp(5px,1.6vh,12px)!important;align-items:center!important}
  html body #login #loginFields>label{margin:0!important;text-align:right;font-size:clamp(13px,2.3vh,20px)!important;line-height:1.1!important}
  html body #login #loginFields>:is(select,input){height:clamp(34px,6vh,56px)!important;min-height:0!important;padding-top:0!important;padding-bottom:0!important;font-size:clamp(14px,2.5vh,20px)!important;margin:0!important;width:100%!important;box-sizing:border-box!important}
  html body #login #loginFields>:not(label):not(select):not(input):not(button){grid-column:1/-1}
  html body #login #loginFields>p:empty{display:none!important}
  html body:has(#login:not(.hidden)) #login #loginFields>button.btn{grid-column:1/-1;justify-self:center;margin:clamp(4px,1.6vh,12px) 0 0!important}
}
/* janela de computador baixa (≈ 560 px ou menos): compacta um pouco mais para o Entrar continuar à vista */
@media (pointer:fine) and (min-width:760px) and (max-height:560px){
  html body #login{--ca-lbh:clamp(36px,8vh,48px)}
  html body #login .panel>h2{display:none!important}
  html body:has(#login:not(.hidden)) .wrap>header.top .brand .brand-logo{width:min(100%,clamp(160px,56vh,320px))!important}
}
