/* SGPM 1.0.0 — ajuste isolado do login, sem alterar CSS global. */
@media (min-width:1081px) {
  html:has(body.auth-page), body.auth-page {height:100%;}
  body.auth-page {height:100dvh; min-height:0; overflow:hidden;}
  body.auth-page .auth-main {box-sizing:border-box;display:flex;align-items:center;justify-content:center;height:100dvh;min-height:0;padding:12px 18px;overflow:hidden;}
  body.auth-page .auth-shell {box-sizing:border-box;width:100%;height:100%;min-height:0;margin:auto;}
  body.auth-page .auth-card--login {box-sizing:border-box;height:100%;max-height:100%;min-height:0!important;overflow:hidden;align-items:stretch;}
  body.auth-page .auth-card--login > .auth-panel {box-sizing:border-box;min-height:0;max-height:100%;overflow:hidden;}
  body.auth-page .auth-panel--form {display:flex;flex-direction:column;justify-content:center;padding:clamp(12px,1.7vh,20px) clamp(19px,2vw,30px)!important;}
  body.auth-page .auth-form__header {margin-bottom:clamp(5px,1vh,10px)!important;}
  body.auth-page .auth-form__subtitle {margin-top:4px;line-height:1.35;}
  body.auth-page .auth-form {gap:clamp(6px,1.1vh,11px)!important;}
  body.auth-page .auth-form__grid {display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(6px,1.1vh,11px)!important;}
  body.auth-page .auth-form__grid > .auth-form__field {grid-column:1 / -1!important;min-width:0;max-width:100%;margin:0;}
  body.auth-page .auth-platform-access {display:flex;flex-direction:row;align-items:center;gap:10px;padding:9px 12px!important;min-height:0;}
  body.auth-page .auth-platform-access__icon {width:34px;height:34px;flex:0 0 34px;display:grid;place-items:center;}
  body.auth-page .auth-platform-access__body {min-width:0;flex:1;}
  body.auth-page .auth-platform-access__body small {display:none;}
  body.auth-page .auth-platform-access__eyebrow {font-size:.67rem;}
  body.auth-page .auth-platform-access__body strong {font-size:.83rem;line-height:1.2;}
  body.auth-page .auth-platform-access__button {flex:0 0 auto;white-space:nowrap;padding:7px 10px;font-size:.78rem;}
  body.auth-page .auth-form__field label {margin-bottom:3px;}
  body.auth-page .auth-form__field .form-control {min-height:39px;}
  body.auth-page .auth-municipio-help {display:block;margin-top:3px;font-size:.69rem;line-height:1.28;}
  body.auth-page .auth-field-links {margin-top:4px;}
  body.auth-page .auth-form__actions {margin-top:0;gap:8px;}
  body.auth-page .auth-form__actions .btn {padding:9px 14px;min-height:40px;}
  body.auth-page .auth-panel--brand {padding:clamp(12px,1.8vh,22px) clamp(17px,2vw,28px)!important;gap:clamp(7px,1.1vh,13px)!important;}
  body.auth-page .auth-highlight {padding:clamp(7px,.9vh,11px) 11px;}
  body.auth-page .auth-brand__highlights {gap:clamp(6px,.85vh,10px)!important;}
}
/* Em janelas excepcionalmente baixas não ocultamos ações indispensáveis. */
@media (min-width:1081px) and (max-height:710px) {
  body.auth-page .auth-card--login > .auth-panel--form {overflow-y:auto;scrollbar-width:thin;justify-content:flex-start;}
  body.auth-page .auth-form__subtitle {font-size:.83rem;}
  body.auth-page .auth-form__header--municipio .auth-form__illustration {transform:scale(.8);transform-origin:right top;}
}
@media (max-width:1080px) {
  body.auth-page {height:auto;min-height:100dvh;overflow-y:auto;}
  body.auth-page .auth-main {height:auto;min-height:100dvh;overflow:visible;}
  body.auth-page .auth-card--login {height:auto;max-height:none;min-height:0;}
  body.auth-page .auth-form__grid > .auth-form__field {min-width:0;}
}
@media (max-width:640px) {
  body.auth-page .auth-main {padding:12px 8px 20px;}
  body.auth-page .auth-panel--form {text-align:center;padding:20px 16px;}
  body.auth-page .auth-form__header--municipio {align-items:center;justify-content:center;gap:8px;}
  body.auth-page .auth-form__header--municipio > div:first-child {text-align:center;}
  body.auth-page .auth-form__header--municipio .auth-form__illustration {margin-inline:auto;}
  body.auth-page .auth-form__field, body.auth-page .auth-form__field label {text-align:center;}
  body.auth-page .auth-form__field .form-control {width:100%;}
  body.auth-page .auth-platform-access {display:flex;flex-direction:column;align-items:center;text-align:center;gap:7px;padding:12px;}
  body.auth-page .auth-platform-access__body {text-align:center;}
  body.auth-page .auth-platform-access__button {width:100%;justify-content:center;}
  body.auth-page .auth-field-links,body.auth-page .auth-form__actions {justify-content:center;flex-wrap:wrap;}
  body.auth-page .auth-form__actions .btn {flex:1 1 145px;justify-content:center;}
  body.auth-page .auth-panel--brand {text-align:center;}
}


/* Ajuste fino da faixa de Administração Global */
@media (min-width:1081px) {
  body.auth-page .auth-platform-access {display:grid;grid-template-columns:36px minmax(0,1fr) auto;align-items:center;column-gap:12px;row-gap:0;padding:10px 14px!important;}
  body.auth-page .auth-platform-access__icon {width:36px;height:36px;flex:none;}
  body.auth-page .auth-platform-access__body {display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:0;}
  body.auth-page .auth-platform-access__eyebrow {display:block;margin:0 0 1px 0;font-size:.66rem;line-height:1.1;text-transform:uppercase;letter-spacing:.05em;}
  body.auth-page .auth-platform-access__body strong {display:block;margin:0;font-size:.95rem;line-height:1.2;white-space:normal;}
  body.auth-page .auth-platform-access__button {min-width:205px;justify-content:center;align-self:center;}
}
@media (min-width:1081px) and (max-width:1320px) {
  body.auth-page .auth-platform-access {grid-template-columns:34px minmax(0,1fr) auto;column-gap:10px;padding:9px 12px!important;}
  body.auth-page .auth-platform-access__body strong {font-size:.89rem;}
  body.auth-page .auth-platform-access__button {min-width:190px;padding:7px 9px;font-size:.76rem;}
}
@media (max-width:640px) {
  body.auth-page .auth-platform-access__eyebrow {display:block;margin-bottom:2px;}
  body.auth-page .auth-platform-access__body strong {display:block;}
}
