/* Instituto Anglicano — V1.8.46
   Login com ambos os painéis preenchendo a viewport inteira: 50vw × 100dvh.
   CSS exclusivo das telas de autenticação, sem mudanças nos controllers, 2FA ou site público.
*/
@media (min-width:791px) {
    html:has(.adm-auth-body) { height:100%; width:100%; overflow:hidden; }
    body.adm-auth-body { width:100%; height:100vh; height:100dvh; min-height:0; margin:0; padding:0; overflow:hidden; }
    .adm-auth-shell.adm-auth-shell-v1845 {
        display:grid; width:100%; max-width:none; height:100vh; height:100dvh;
        min-height:0; margin:0; padding:0; gap:0;
        grid-template-columns:minmax(0,1fr) minmax(0,1fr);
        overflow:hidden;
    }
    .adm-auth-visual.adm-auth-visual-v1845,
    .adm-auth-content.adm-auth-content-v1845 {
        width:100%; height:100%; min-height:0; max-width:none;
        margin:0; border-radius:0;
    }
    .adm-auth-visual.adm-auth-visual-v1845 { overflow:hidden; background-size:cover; background-position:center center; }
    .adm-auth-visual-v1845 .adm-auth-visual-inner {
        height:100%; min-height:0;
        padding:clamp(25px,3.4vw,58px);
    }
    .adm-auth-content.adm-auth-content-v1845 {
        display:flex; flex-direction:column; justify-content:flex-start;
        padding:clamp(20px,3vh,50px) clamp(24px,4.4vw,94px) 22px;
        overflow-x:hidden; overflow-y:auto; overscroll-behavior-y:contain;
        scrollbar-width:thin;
    }
    .adm-auth-content-v1845 .adm-auth-wrap {
        width:min(100%,470px); margin:auto; flex:0 0 auto;
    }
    .adm-auth-content-v1845 .adm-auth-wrap:has(.adm-auth-card-wide) { width:min(100%,630px); }
    .adm-auth-content-v1845 .adm-auth-copyright {
        position:static; flex:0 0 auto; align-self:center;
        margin:18px 0 0; padding:0; text-align:center;
    }
}
/* Em notebooks com pouca altura, manter o formulário confortável sem cortar botões. */
@media (min-width:791px) and (max-height:760px) {
    .adm-auth-visual-v1845 .adm-auth-visual-copy h2 { font-size:clamp(27px,3vw,43px); }
    .adm-auth-visual-v1845 .adm-auth-visual-kicker { margin-bottom:12px; }
    .adm-auth-visual-v1845 .adm-auth-visual-foot { padding-top:12px; }
    .adm-auth-content.adm-auth-content-v1845 { padding-top:16px; padding-bottom:12px; }
    .adm-login-heading { margin-bottom:19px; }
    .adm-login-card-v1845 h1 { margin-top:10px; margin-bottom:8px; font-size:clamp(28px,2.6vw,37px); }
    .adm-login-form-v1845>input { margin-bottom:14px; }
    .adm-login-form-v1845 .adm-password-wrapper { margin-bottom:15px; }
    .adm-login-form-v1845 .adm-remember-option { margin-bottom:15px!important; padding:12px 14px; }
    .adm-login-card-v1845 .adm-auth-bottom { margin-top:19px; padding-top:17px; }
}
/* Em celulares, preencher a largura e altura disponível sem cortar os campos.
   A apresentação visual fica acima e o formulário ocupa o restante da tela. */
@media (max-width:790px) {
    html:has(.adm-auth-body) { width:100%; min-height:100%; overflow-x:hidden; }
    body.adm-auth-body { width:100%; min-height:100vh; min-height:100dvh; height:auto; margin:0; padding:0; overflow-x:hidden; overflow-y:auto; }
    .adm-auth-shell.adm-auth-shell-v1845 {
        display:flex; flex-direction:column; width:100%; max-width:none;
        min-height:100vh; min-height:100dvh; height:auto;
        margin:0; padding:0; gap:0; overflow:visible;
    }
    .adm-auth-visual.adm-auth-visual-v1845 {
        width:100%; height:clamp(220px,31dvh,320px); min-height:0;
        flex:0 0 clamp(220px,31dvh,320px); margin:0;
        background-size:cover; background-position:center 42%; border-radius:0;
    }
    .adm-auth-visual-v1845 .adm-auth-visual-inner { height:100%; min-height:0; }
    .adm-auth-content.adm-auth-content-v1845 {
        width:100%; flex:1 0 auto; min-height:calc(100dvh - clamp(220px,31dvh,320px));
        height:auto; margin:0; border-radius:0;
        padding:clamp(25px,5vw,40px) clamp(20px,5vw,34px) 23px;
        display:flex; flex-direction:column;
        overflow:visible;
    }
    .adm-auth-content-v1845 .adm-auth-wrap { width:min(100%,480px); margin:auto; flex:0 0 auto; }
    .adm-auth-content-v1845 .adm-auth-copyright {
        position:static; margin:26px 0 0; padding:0; text-align:center; align-self:center;
    }
}
@media (max-width:440px) {
    .adm-auth-visual.adm-auth-visual-v1845 {
        height:clamp(196px,28dvh,260px);
        flex-basis:clamp(196px,28dvh,260px);
    }
    .adm-auth-content.adm-auth-content-v1845 {
        min-height:calc(100dvh - clamp(196px,28dvh,260px));
    }
}

/* V1.8.57 — texto informativo e mensagens do reCAPTCHA no login. */
.adm-captcha-disclosure { margin: 0 0 12px; color: #64748b; font-size: 11px; line-height: 1.6; }
.adm-captcha-disclosure a { color: #1a568e; text-decoration: underline; text-underline-offset: 2px; }
.adm-login-form-v1845 .adm-captcha-error[hidden] { display: none !important; }
.adm-login-form-v1845 .adm-captcha-error { margin: 0 0 12px; }
