/* GiraDesk V287.17 — Fidelidade à prévia premium aprovada.
   Apenas telas de autenticação mobile: nenhum estilo desktop é substituído.
   Respeita altura de conteúdo e permite rolagem vertical natural. */
@media (max-width:1100px) {
  html:has(body.gd-v2863-auth) { overflow-x:clip !important; overflow-y:auto !important; background:#f4f6ef !important; }
  body.ax137-auth.gd-v2863-auth {
    display:block !important; position:relative !important;
    margin:0 !important; padding:0 !important;
    width:100% !important; min-width:0 !important; max-width:100% !important;
    min-height:100svh !important; height:auto !important; max-height:none !important;
    overflow-x:clip !important; overflow-y:auto !important;
    background:linear-gradient(160deg,#073a29 0px,#076042 190px,#e9eee6 380px,#f4f6ef 480px) !important;
  }
  body.ax137-auth.gd-v2863-auth::before {display:none !important;}
  body.gd-v2863-auth :is(.ax137-page,.member-ax137-page,.ax137-main,.ax137-auth-panel) {
    display:block !important; position:relative !important;
    box-sizing:border-box !important; width:100% !important; min-width:0 !important;
    max-width:100% !important; height:auto !important; min-height:0 !important;
    max-height:none !important; margin:0 !important; padding:0 !important;
    border:none !important; border-radius:0 !important; box-shadow:none !important;
    background:transparent !important; overflow:visible !important; transform:none !important;
  }
  body.gd-v2863-auth :is(.gd-login-showcase,.ax137-side-panel) { display:none !important; }
  body.gd-v2863-auth .ax137-form-side {
    display:flex !important; position:relative !important; isolation:isolate !important;
    flex-direction:column !important; align-items:stretch !important; justify-content:flex-start !important;
    box-sizing:border-box !important; width:100% !important; max-width:640px !important;
    min-width:0 !important; height:auto !important; min-height:0 !important;
    max-height:none !important; margin:0 auto !important;
    padding:clamp(22px,5vw,34px) clamp(22px,5vw,32px) clamp(40px,7vw,65px) !important;
    background:transparent !important; border:0 !important;
    border-radius:0 !important; box-shadow:none !important; overflow:visible !important;
  }
  /* White rounded sheet begins below the institutional header. */
  body.gd-v2863-auth .ax137-form-side::before {
    content:"" !important; display:block !important;
    position:absolute !important; z-index:-1 !important;
    top:clamp(178px,38vw,220px) !important;
    right:clamp(10px,2.5vw,16px) !important;
    bottom:12px !important; left:clamp(10px,2.5vw,16px) !important;
    background:#ffffff !important; border:1px solid rgba(13,66,40,.08) !important;
    border-radius:clamp(24px,6vw,34px) !important;
    box-shadow:0 14px 35px rgba(10,49,32,.11) !important;
    pointer-events:none !important;
  }
  body.gd-v2863-auth .ax137-form-side > * {position:relative !important; z-index:1 !important;}
  /* GiraDesk wordmark appears directly on the green header, not inside a dark rectangle. */
  body.gd-v2863-auth .ax137-form-side :is(.gd-v2866-mobile-brand,.gd-v28716-mobile-brand) {
    display:flex !important; align-items:center !important; justify-content:center !important;
    flex:0 0 auto !important; box-sizing:border-box !important;
    width:100% !important; max-width:100% !important; min-height:0 !important; height:auto !important;
    margin:0 auto clamp(62px,16vw,94px) !important; padding:clamp(12px,4vw,24px) 6px !important;
    border:0 !important; border-radius:0 !important;
    background:transparent !important; box-shadow:none !important;
  }
  body.gd-v2863-auth .ax137-form-side :is(.gd-v2866-mobile-brand,.gd-v28716-mobile-brand) img {
    display:block !important; width:min(100%,360px) !important;
    max-width:100% !important; height:auto !important;
    max-height:clamp(64px,18vw,100px) !important; object-fit:contain !important;
    filter:drop-shadow(0 2px 2px rgba(0,0,0,.08)) !important;
  }
  /* Tenant brand remains centered, without colored block. */
  body.gd-v2863-auth .ax137-form-logo,
  body.gd-v2863-auth .ax137-form-logo.ax164-custom-logo {
    display:flex !important; align-items:center !important; justify-content:center !important;
    box-sizing:border-box !important; width:100% !important; max-width:100% !important;
    min-height:0 !important; max-height:none !important; height:auto !important;
    margin:0 auto clamp(12px,3vw,20px) !important; padding:0 !important;
    border:0 !important; border-radius:0 !important; background:transparent !important;
    box-shadow:none !important;
  }
  body.gd-v2863-auth .ax137-form-logo img {
    display:block !important; width:auto !important; height:auto !important;
    max-width:min(100%,340px) !important;
    max-height:clamp(92px,25vw,145px) !important;
    object-position:center !important; object-fit:contain !important;
  }
  body.gd-v2863-auth .ax137-form-logo.ax164-default-logo {display:none !important;}
  body.gd-v2863-auth .ax137-title {
    margin:0 0 8px !important; color:#083b29 !important;
    text-align:center !important; font-family:Poppins,system-ui,sans-serif !important;
    font-size:clamp(27px,6.6vw,39px) !important; line-height:1.18 !important;
    font-weight:800 !important; letter-spacing:-.03em !important;
  }
  body.gd-v2863-auth .ax137-subtitle {
    margin:0 auto clamp(20px,5vw,30px) !important;
    text-align:center !important; max-width:440px !important;
    color:#66716c !important; font-size:clamp(13px,3.5vw,16px) !important;
    line-height:1.45 !important;
  }
  body.gd-v2863-auth .ax137-form {width:100% !important; display:grid !important; gap:clamp(14px,3.2vw,20px) !important;}
  body.gd-v2863-auth .ax137-field {gap:8px !important; width:100% !important; min-width:0 !important; font-size:clamp(13px,3.6vw,16px) !important; font-weight:700 !important; color:#0c3f2d !important;}
  body.gd-v2863-auth .ax137-control {
    box-sizing:border-box !important; min-height:clamp(54px,12vw,64px) !important;
    width:100% !important; min-width:0 !important; max-width:100% !important;
    background:#fff !important; border:1px solid #d3dfd6 !important;
    border-radius:17px !important; box-shadow:0 3px 8px rgba(27,64,43,.045) !important;
  }
  body.gd-v2863-auth .ax137-control input {min-width:0 !important; font-size:16px !important;}
  body.gd-v2863-auth .ax137-toggle {border-radius:11px !important; background:#eaf3ed !important; color:#0b472c !important; font-weight:700 !important;}
  body.gd-v2863-auth .ax137-options {margin:4px 0 2px !important; align-items:center !important; gap:8px !important;}
  body.gd-v2863-auth .ax161-member-forgot {margin:4px 0 2px !important;}
  body.gd-v2863-auth .ax137-submit {
    box-sizing:border-box !important; width:100% !important; min-width:0 !important;
    min-height:clamp(55px,13vw,68px) !important;
    padding:12px 17px !important; border-radius:17px !important;
    background:linear-gradient(160deg,#00a94d,#006d38) !important;
    box-shadow:0 8px 18px rgba(0,87,48,.18) !important;
    font-size:clamp(13px,3.7vw,17px) !important; font-weight:800 !important;
    color:#fff !important; overflow-wrap:anywhere !important;
  }
  body.gd-v2863-auth .ax137-secondary {
    box-sizing:border-box !important; width:100% !important; min-width:0 !important;
    display:flex !important; flex-direction:column !important; align-items:center !important;
    gap:12px !important; margin:clamp(24px,6vw,36px) 0 0 !important;
    padding:20px 0 6px !important; text-align:center !important;
    border-top:1px solid #e4eae5 !important;
  }
  body.gd-v2863-auth .ax137-secondary a {
    display:inline-flex !important; align-items:center !important; justify-content:center !important;
    width:100% !important; max-width:480px !important; min-height:52px !important;
    box-sizing:border-box !important; padding:10px 14px !important;
    border:1px solid #a9c8b4 !important; border-radius:15px !important;
    color:#08472c !important; background:#e6f1e8 !important;
    font-weight:800 !important; text-decoration:none !important;
    white-space:normal !important; overflow-wrap:anywhere !important;
  }
  body.gd-v2863-auth .ax137-footer {display:block !important; padding:14px 20px 20px !important; font-size:11px !important; background:transparent !important; color:#506a58 !important;}
  body.gd-v2863-auth .ax137-note {margin-top:16px !important;}
}
@media (max-width:370px) {
  body.gd-v2863-auth .ax137-form-side {padding-left:20px !important; padding-right:20px !important;}
  body.gd-v2863-auth .ax137-form-side :is(.gd-v2866-mobile-brand,.gd-v28716-mobile-brand) {margin-bottom:65px !important;}
  body.gd-v2863-auth .ax137-title {font-size:27px !important;}
  body.gd-v2863-auth .ax137-control {min-height:51px !important;}
}
@media (max-width:1100px) and (orientation:landscape) and (max-height:520px) {
  body.gd-v2863-auth .ax137-form-side :is(.gd-v2866-mobile-brand,.gd-v28716-mobile-brand) {margin-bottom:58px !important; padding:10px 3px !important;}
  body.gd-v2863-auth .ax137-form-side::before {top:118px !important;}
  body.gd-v2863-auth .ax137-form-logo img {max-height:85px !important;}
}
/* Desktop is intentionally unchanged except the approved text alignment. */
@media (min-width:1101px) {
 body.gd-v2863-auth .gd-login-showcase h2 {text-align:left !important;}
}
