/* GiraDesk - Ajuste de identidade e responsividade para autenticação (V286.1)
   Escopo: login, recuperação e ativação; sem interferir em telas autenticadas.
   A marca institucional contém branco: requer fundo escuro, sem reintroduzir fundo no PNG.
*/
body.ax137-auth .ax137-form-side { min-width:0 !important; box-sizing:border-box !important; }
body.ax137-auth .ax137-form-logo,
body.ax137-auth .ax137-form-logo.ax164-default-logo,
body.ax137-auth .ax137-form-logo.ax164-custom-logo {
  box-sizing:border-box !important;
  position:relative !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  height:auto !important;
  min-height:112px !important;
  max-height:none !important;
  margin:0 0 27px !important;
  padding:14px 18px !important;
  border-radius:16px !important;
  overflow:visible !important;
  flex:0 0 auto !important;
}
/* A marca padrão, em branco e verde-lima, tem alto contraste neste suporte. */
body.ax137-auth .ax137-form-logo.ax164-default-logo {
  background:#062e20 !important;
  border:1px solid rgba(99,179,126,.20) !important;
  box-shadow:0 9px 24px rgba(5,51,31,.10) !important;
}
/* As licenças continuam usando sua própria marca e não recebem fundo forçado. */
body.ax137-auth .ax137-form-logo.ax164-custom-logo {
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}
body.ax137-auth .ax137-form-logo img,
body.ax137-auth .ax137-form-logo img[data-logo],
body.ax137-auth .ax137-form-logo.ax164-default-logo img,
body.ax137-auth .ax137-form-logo.ax164-default-logo img[data-logo],
body.ax137-auth .ax137-form-logo.ax164-custom-logo img,
body.ax137-auth .ax137-form-logo.ax164-custom-logo img[data-logo] {
  position:relative !important;
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  width:auto !important;
  height:auto !important;
  max-width:100% !important;
  max-height:102px !important;
  margin:0 auto !important;
  padding:0 !important;
  object-fit:contain !important;
  object-position:center !important;
  transform:none !important;
  filter:none !important;
  clip-path:none !important;
}
body.ax137-auth .ax137-form-logo.ax164-default-logo img { width:min(100%, 460px) !important; }
body.ax137-auth .ax137-auth-panel { min-width:0 !important; }
body.ax137-auth .ax137-main,
body.ax137-auth .ax137-page { min-width:0 !important; }
body.ax137-auth .ax137-form,
body.ax137-auth .ax137-control,
body.ax137-auth .ax137-field { min-width:0 !important; max-width:100% !important; box-sizing:border-box !important; }
body.ax137-auth .ax137-control input { min-width:0 !important; font-size:max(16px,1rem) !important; }
body.ax137-auth .ax137-options { flex-wrap:wrap !important; gap:12px !important; }
body.ax137-auth .ax137-secondary { max-width:100% !important; }
body.ax137-auth .ax137-secondary a { white-space:normal !important; overflow-wrap:anywhere !important; text-align:center !important; }
@media(min-width:901px) {
  body.ax137-auth .ax137-auth-panel { grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr) !important; }
  body.ax137-auth .ax137-form-side { padding:clamp(32px,4vw,65px) !important; }
  body.ax137-auth .ax137-form-logo { max-width:480px !important; }
}
@media(min-width:621px) and (max-width:900px) {
  body.ax137-auth .ax137-page { padding:clamp(16px,3vw,28px) !important; }
  body.ax137-auth .ax137-main { width:min(690px,100%) !important; }
  body.ax137-auth .ax137-auth-panel { grid-template-columns:minmax(0,1fr) !important; min-height:0 !important; }
  body.ax137-auth .ax137-form-side { padding:clamp(24px,5vw,44px) !important; }
  body.ax137-auth .ax137-form-logo { max-width:530px !important; margin-inline:auto !important; }
  body.ax137-auth .ax137-side-panel { min-height:0 !important; padding:24px 30px !important; }
}
@media(max-width:620px) {
  html, body.ax137-auth { max-width:100% !important; overflow-x:hidden !important; }
  body.ax137-auth .ax137-form-side { box-sizing:border-box !important; padding:clamp(16px,4vw,24px) max(18px,env(safe-area-inset-right)) max(28px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)) !important; }
  body.ax137-auth .ax137-form-logo,
  body.ax137-auth .ax137-form-logo.ax164-default-logo,
  body.ax137-auth .ax137-form-logo.ax164-custom-logo { min-height:88px !important; max-height:none !important; padding:14px 12px !important; margin:0 auto 22px !important; border-radius:13px !important; }
  body.ax137-auth .ax137-form-logo img,
  body.ax137-auth .ax137-form-logo img[data-logo],
  body.ax137-auth .ax137-form-logo.ax164-default-logo img,
  body.ax137-auth .ax137-form-logo.ax164-default-logo img[data-logo] { width:min(100%,390px) !important; max-width:100% !important; max-height:92px !important; }
  body.ax137-auth .ax137-title { font-size:clamp(27px,7vw,37px) !important; line-height:1.12 !important; }
  body.ax137-auth .ax137-options { align-items:flex-start !important; }
  body.ax137-auth .ax137-options a { overflow-wrap:anywhere !important; }
  body.ax137-auth .ax137-submit { width:100% !important; min-height:52px !important; }
}
@media(max-width:360px) {
  body.ax137-auth .ax137-form-side { padding-left:14px !important; padding-right:14px !important; }
  body.ax137-auth .ax137-form-logo,
  body.ax137-auth .ax137-form-logo.ax164-default-logo { padding:12px 10px !important; }
}
@media(max-height:720px) and (min-width:901px) {
  body.ax137-auth .ax137-page { padding-block:14px !important; }
  body.ax137-auth .ax137-auth-panel { min-height:0 !important; }
  body.ax137-auth .ax137-form-side { padding-block:28px !important; }
  body.ax137-auth .ax137-side-panel { padding-block:28px !important; }
  body.ax137-auth .ax160-visual { display:none !important; }
}
@media(prefers-reduced-motion:reduce){body.ax137-auth .ax137-form-logo,body.ax137-auth .ax137-form-logo img{transition:none !important;animation:none !important;}}
