:root{
    --jbe-auth-blue:#2b83d3;
    --jbe-auth-blue-2:#57aee4;
    --jbe-auth-green:#10a88b;
    --jbe-auth-green-2:#33c7a7;
    --jbe-auth-ink:#0f172a;
    --jbe-auth-text:#1f2937;
    --jbe-auth-muted:#667085;
    --jbe-auth-soft:#f8fbff;
    --jbe-auth-soft-2:#f3faf8;
    --jbe-auth-card:#ffffff;
    --jbe-auth-border:#dbe7f1;
    --jbe-auth-line:#e7eef6;
    --jbe-auth-shadow:0 26px 70px rgba(15,45,80,.13);
}
html,body{
    margin:0;
    min-height:100%;
    font-family:"Intro","Segoe UI",Tahoma,Arial,sans-serif!important;
    font-size:13px;
    color:var(--jbe-auth-text);
    background:#f8fbff;
}
body,button,input,select,textarea,a{font-family:"Intro","Segoe UI",Tahoma,Arial,sans-serif!important;}
*{box-sizing:border-box;}
.jbe-auth-page{
    min-height:100vh;
    min-height:100dvh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
    color:var(--jbe-auth-text);
    background:
        linear-gradient(135deg,rgba(255,255,255,.94),rgba(248,252,255,.92)),
        var(--jbe-auth-bg-image, none),
        radial-gradient(circle at 14% 14%,rgba(43,131,211,.13),transparent 30%),
        radial-gradient(circle at 86% 78%,rgba(16,168,139,.12),transparent 34%),
        linear-gradient(135deg,#ffffff 0%,#f7fbff 48%,#f2faf7 100%);
    background-size:cover,cover,auto,auto,auto;
    background-position:center,center,center,center,center;
    overflow-y:auto;
    position:relative;
}
.jbe-auth-page::before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    background:
        linear-gradient(120deg,rgba(43,131,211,.06),transparent 42%),
        linear-gradient(300deg,rgba(16,168,139,.06),transparent 46%);
    opacity:1;
}
.jbe-auth-page::after{
    content:"";
    position:fixed;
    right:34px;
    bottom:26px;
    width:160px;
    height:80px;
    pointer-events:none;
    background:var(--jbe-auth-watermark, none) center/contain no-repeat;
    opacity:.045;
    filter:grayscale(1) contrast(.95);
}
.jbe-auth-card{
    position:relative;
    z-index:1;
    width:min(100%,455px);
    border-radius:26px;
    padding:32px 38px 30px;
    background:
        linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,255,255,.94)),
        radial-gradient(circle at top right,rgba(43,131,211,.08),transparent 32%),
        radial-gradient(circle at bottom left,rgba(16,168,139,.08),transparent 34%);
    border:1px solid rgba(219,231,241,.95);
    box-shadow:var(--jbe-auth-shadow);
    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);
    text-align:center;
    overflow:hidden;
}
.jbe-auth-card::before{
    content:"";
    position:absolute;
    left:34px;
    right:34px;
    top:0;
    height:5px;
    border-radius:0 0 12px 12px;
    background:linear-gradient(90deg,var(--jbe-auth-blue),var(--jbe-auth-green));
    opacity:.92;
}
.jbe-auth-card::after{
    content:"";
    position:absolute;
    right:-58px;
    top:-68px;
    width:152px;
    height:152px;
    border-radius:50%;
    background:linear-gradient(135deg,rgba(43,131,211,.10),rgba(16,168,139,.07));
    pointer-events:none;
}
.jbe-auth-card-wide,
.jbe-auth-card-create{
    width:min(100%,940px);
    text-align:left;
    padding:30px 34px 32px;
}
.jbe-auth-card-create{max-height:calc(100vh - 36px);overflow:auto;}
.jbe-auth-logo{
    display:block;
    width:auto;
    max-width:116px;
    max-height:54px;
    margin:0 auto 14px;
    object-fit:contain;
}
.jbe-auth-logo.is-discreet{max-width:88px;max-height:42px;opacity:.94;}

.jbe-auth-logo.module-logo{
    max-width:208px;
    max-height:78px;
    width:auto;
    margin-bottom:12px;
    padding:0;
    border:0;
    background:transparent;
}
.jbe-auth-logo.module-logo.is-sigef{max-width:206px;max-height:76px;}
.jbe-auth-logo.module-logo.is-sigad{max-width:220px;max-height:80px;}
.jbe-auth-logo.module-logo.is-sigfar{max-width:220px;max-height:80px;}
.jbe-auth-page.module-sigef{--jbe-auth-blue:#123f91;--jbe-auth-green:#36b72c;}
.jbe-auth-page.module-sigad{--jbe-auth-blue:#123f91;--jbe-auth-green:#36b72c;}
.jbe-auth-page.module-sigfar{--jbe-auth-blue:#123f91;--jbe-auth-green:#36b72c;}
.jbe-auth-module-caption{
    margin:-4px auto 14px;
    color:var(--jbe-auth-muted);
    font-size:11.5px;
    line-height:1.35;
    text-align:center;
}
.jbe-auth-symbol{
    width:52px;
    height:52px;
    margin:0 auto 13px;
    border-radius:18px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid rgba(43,131,211,.16);
    background:linear-gradient(135deg,rgba(43,131,211,.12),rgba(16,168,139,.10));
    color:var(--jbe-auth-blue);
    font-size:23px;
    box-shadow:0 14px 26px rgba(15,45,80,.08);
}
.jbe-auth-title{
    margin:0 0 16px;
    color:var(--jbe-auth-ink);
    font-size:20px;
    line-height:1.12;
    font-weight:750;
    letter-spacing:.01em;
}
.jbe-auth-card-create .jbe-auth-title,
.jbe-auth-card-wide .jbe-auth-title{
    text-align:center;
    font-size:22px;
    margin-bottom:8px;
}
.jbe-auth-subtitle{
    margin:0 auto 18px;
    max-width:660px;
    color:var(--jbe-auth-muted);
    text-align:center;
    font-size:12px;
    line-height:1.45;
}
.jbe-auth-form{display:grid;gap:10px;margin:0;}
.jbe-auth-field{display:block;margin:0;}
.jbe-auth-field span:not(.jbe-auth-sr){display:block;color:#344054;font-size:11.5px;margin:0 0 5px;text-align:left;opacity:1;}
.jbe-auth-input,
.jbe-auth-select{
    width:100%;
    height:42px;
    border:1px solid var(--jbe-auth-border);
    border-radius:12px;
    outline:none;
    background:rgba(255,255,255,.98);
    color:var(--jbe-auth-ink);
    padding:0 13px;
    font-size:13px;
    box-shadow:0 1px 0 rgba(255,255,255,.80),0 10px 22px rgba(15,45,80,.045);
}
.jbe-auth-select{appearance:auto;}
.jbe-auth-input::placeholder{color:#7b8794;opacity:1;}
.jbe-auth-input:focus,
.jbe-auth-select:focus{box-shadow:0 0 0 3px rgba(43,131,211,.12),0 12px 24px rgba(15,45,80,.08);border-color:rgba(43,131,211,.50);}
.jbe-auth-button{
    width:100%;
    min-height:44px;
    border:0;
    border-radius:14px;
    background:linear-gradient(135deg,var(--jbe-auth-blue),var(--jbe-auth-green));
    color:#fff;
    font-size:14px;
    font-weight:750;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    box-shadow:0 16px 30px rgba(43,131,211,.18);
    transition:.16s ease;
}
.jbe-auth-button:hover{transform:translateY(-1px);filter:brightness(1.03);}
.jbe-auth-links{display:grid;gap:8px;margin-top:15px;font-size:12px;line-height:1.35;color:#526173;text-align:center;}
.jbe-auth-links a,
.jbe-auth-mini-link a{color:#1666b1;text-decoration:none;font-weight:750;}
.jbe-auth-links a:hover,
.jbe-auth-mini-link a:hover{text-decoration:underline;text-underline-offset:3px;}
.jbe-auth-links-row{display:flex;justify-content:center;gap:14px;flex-wrap:wrap;margin-top:12px;font-size:12px;}
.jbe-auth-links-row a{color:#1666b1;text-decoration:none;font-weight:750;}
.jbe-auth-links-row a:hover{text-decoration:underline;text-underline-offset:3px;}
.jbe-auth-alert{margin:0 0 12px;padding:9px 11px;border-radius:12px;border:1px solid var(--jbe-auth-line);font-size:12px;line-height:1.35;text-align:left;}
.jbe-auth-alert.error{background:#fff1f2;color:#9f1239;border-color:#fecdd3;}
.jbe-auth-alert.success{background:#ecfdf5;color:#166534;border-color:#bbf7d0;}
.jbe-auth-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}
.jbe-auth-check{display:flex;align-items:center;gap:8px;text-align:left;color:#475467;font-size:12px;line-height:1.3;}
.jbe-auth-check input{width:15px;height:15px;accent-color:var(--jbe-auth-green);}
.jbe-auth-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.jbe-auth-grid .full{grid-column:1 / -1;}
.jbe-auth-section-title{grid-column:1 / -1;margin:10px 0 0;color:#0f2552;font-size:13px;font-weight:750;border-top:1px solid var(--jbe-auth-line);padding-top:13px;}
.jbe-auth-section-title:first-child{border-top:0;margin-top:0;padding-top:0;}
.jbe-auth-muted{color:#64748b;font-size:11px;line-height:1.5;text-align:left;}
.jbe-auth-mini-link{text-align:center;margin-top:12px;font-size:12px;color:#64748b;}
.jbe-auth-actions{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;margin-top:14px;}
.jbe-auth-secondary-link{color:#1666b1;text-decoration:none;font-weight:750;font-size:12px;}
.jbe-auth-secondary-link:hover{text-decoration:underline;text-underline-offset:3px;}
.jbe-auth-nif-row{display:grid;grid-template-columns:1fr auto;gap:8px;}
.jbe-auth-nif-row input{min-width:0;}
.jbe-auth-nif-btn{height:42px;border:1px solid var(--jbe-auth-border);border-radius:12px;background:#f8fbff;color:#0f4f7e;font-weight:750;font-size:12px;padding:0 12px;cursor:pointer;white-space:nowrap;box-shadow:0 10px 22px rgba(15,45,80,.045);}
.jbe-auth-nif-status{display:none;margin-top:6px;font-size:11px;line-height:1.35;color:#64748b;}
.jbe-auth-nif-status.show{display:block;}
.jbe-auth-nif-status.ok{color:#047857;}.jbe-auth-nif-status.warn{color:#b45309;}.jbe-auth-nif-status.err{color:#b91c1c;}.jbe-auth-nif-status.muted{color:#64748b;}
.jbe-auth-nif-status a{color:#1666b1;font-weight:750;}
.jbe-portal-page{min-height:100vh;min-height:100dvh;padding:22px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,rgba(255,255,255,.95),rgba(249,252,255,.93)),var(--jbe-auth-bg-image,none),radial-gradient(circle at 12% 10%,rgba(43,131,211,.10),transparent 30%),radial-gradient(circle at 88% 86%,rgba(16,168,139,.10),transparent 34%),linear-gradient(135deg,#ffffff,#f7fbff 48%,#f3faf8);background-size:cover,cover,auto,auto,auto;background-position:center;position:relative;overflow:auto;}
.jbe-portal-page::before{content:"";position:fixed;inset:0;background:linear-gradient(135deg,rgba(255,255,255,.72),transparent 42%);pointer-events:none;}
.jbe-portal-frame{position:relative;z-index:1;width:min(100%,1080px);border:1px solid var(--jbe-auth-border);border-radius:28px;padding:28px;background:rgba(255,255,255,.86);box-shadow:0 26px 70px rgba(15,45,80,.12);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);}
.jbe-portal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;color:#0f2552;margin-bottom:18px;}
.jbe-portal-brand{display:flex;align-items:center;gap:12px;min-width:0;}
.jbe-portal-logo{width:96px;max-height:48px;object-fit:contain;background:#fff;border:1px solid var(--jbe-auth-line);border-radius:16px;padding:7px 10px;box-shadow:0 8px 18px rgba(15,45,80,.06);}
.jbe-portal-title{margin:0;font-size:22px;line-height:1.1;font-weight:750;}
.jbe-portal-sub{margin:4px 0 0;color:#64748b;font-size:12px;}
.jbe-portal-tools{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.jbe-portal-pill{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--jbe-auth-border);background:#fff;color:#0f4f7e;border-radius:999px;padding:7px 10px;font-size:11.5px;text-decoration:none;box-shadow:0 8px 18px rgba(15,45,80,.045);}
.jbe-portal-modules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.jbe-portal-card{--accent:#2b83d3;background:#fff;border:1px solid var(--jbe-auth-line);border-radius:22px;padding:18px;display:flex;flex-direction:column;gap:12px;box-shadow:0 14px 30px rgba(15,45,80,.075);min-height:300px;position:relative;overflow:hidden;}
.jbe-portal-card::before{content:"";position:absolute;left:18px;right:18px;top:0;height:4px;border-radius:0 0 10px 10px;background:linear-gradient(90deg,var(--accent),var(--jbe-auth-green));opacity:.86;}
.jbe-portal-card.sigef{--accent:#2b83d3}.jbe-portal-card.sigad{--accent:#7862d9}.jbe-portal-card.sigfar{--accent:#10a88b}
.jbe-portal-card-top{display:flex;align-items:center;justify-content:space-between;gap:10px;}
.jbe-portal-icon{width:44px;height:44px;border-radius:16px;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--accent) 11%,#fff);border:1px solid color-mix(in srgb,var(--accent) 22%,#e2e8f0);color:var(--accent);font-size:21px;}

.jbe-portal-icon img{width:34px;height:34px;object-fit:contain;display:block;}
.jbe-portal-card-logo{height:48px;max-width:100%;object-fit:contain;display:block;margin:0 0 2px;}
.jbe-portal-card-title{display:grid;gap:4px;}
.jbe-portal-status{font-size:11px;border-radius:999px;padding:6px 9px;background:#fff;border:1px solid #e2e8f0;color:#475569;white-space:nowrap;}
.jbe-portal-card h2{font-size:20px;line-height:1.05;margin:0;color:#0f2552;font-weight:750;}
.jbe-portal-full{font-size:12px;color:#64748b;margin-top:4px;line-height:1.35;}
.jbe-portal-pitch{font-size:12.5px;color:#334155;line-height:1.5;margin:0;}
.jbe-portal-list{display:grid;gap:7px;margin-top:2px;}
.jbe-portal-item{display:flex;gap:7px;align-items:flex-start;color:#526173;font-size:11.8px;line-height:1.35;}
.jbe-portal-item i{color:var(--accent);margin-top:1px;}
.jbe-portal-footer{margin-top:auto;display:grid;gap:8px;}
.jbe-portal-hint{font-size:11px;color:#64748b;line-height:1.35;}
.jbe-portal-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:42px;border-radius:14px;background:linear-gradient(135deg,var(--accent),var(--jbe-auth-green));color:#fff;text-decoration:none;font-size:13px;font-weight:750;box-shadow:0 14px 28px rgba(15,45,80,.12);}
.jbe-portal-btn.disabled{background:#f8fafc;color:#94a3b8;border:1px solid #e2e8f0;box-shadow:none;}
.jbe-portal-bottom{margin-top:14px;color:#64748b;font-size:12px;display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;}
@supports not (color:color-mix(in srgb,#000 10%,#fff)){.jbe-portal-icon{background:#f8fafc;border-color:#e2e8f0;}}
@media(max-width:980px){
    .jbe-portal-page{align-items:flex-start;padding:14px;}
    .jbe-portal-frame{padding:18px;border-radius:22px;}
    .jbe-portal-head{align-items:flex-start;flex-direction:column;}
    .jbe-portal-tools{justify-content:flex-start;}
    .jbe-portal-modules{grid-template-columns:1fr;}
    .jbe-portal-card{min-height:auto;}
}
@media(max-width:760px){
    .jbe-auth-page{align-items:center;padding:14px;}
    .jbe-auth-card{padding:25px 22px 24px;border-radius:22px;width:min(100%,430px);}
    .jbe-auth-card-wide,.jbe-auth-card-create{width:min(100%,540px);}
    .jbe-auth-grid{grid-template-columns:1fr;}
    .jbe-auth-grid .full{grid-column:auto;}
    .jbe-auth-actions{grid-template-columns:1fr;}
    .jbe-auth-nif-row{grid-template-columns:1fr;}
}
@media(max-height:640px) and (min-width:761px){
    .jbe-auth-page{align-items:flex-start;padding-top:12px;}
    .jbe-auth-card{padding:22px 34px 23px;}
    .jbe-auth-logo{max-height:42px;margin-bottom:8px;}
    .jbe-auth-symbol{width:46px;height:46px;margin-bottom:8px;}
    .jbe-auth-title{margin-bottom:12px;font-size:19px;}
    .jbe-auth-links{margin-top:10px;gap:5px;}
}

/* Acabamento JBE 2026-05-23: branco moderno, identidade azul/verde própria */
.jbe-auth-page{
    background:
        radial-gradient(circle at 10% 12%,rgba(43,131,211,.12),transparent 28%),
        radial-gradient(circle at 88% 82%,rgba(16,168,139,.11),transparent 30%),
        linear-gradient(135deg,rgba(255,255,255,.965),rgba(249,252,255,.955)),
        var(--jbe-auth-bg-image, none),
        linear-gradient(135deg,#ffffff 0%,#f8fbff 48%,#f4fbf8 100%);
    background-size:auto,auto,cover,cover,auto;
    background-position:center,center,center,center,center;
}
.jbe-auth-page::before{background:linear-gradient(135deg,rgba(255,255,255,.36),rgba(255,255,255,.18));}
.jbe-auth-card{box-shadow:0 22px 58px rgba(15,45,80,.115);border-color:rgba(219,231,241,.98);}
.jbe-auth-logo{max-width:136px;max-height:62px;margin-bottom:15px;}
.jbe-auth-title{color:#0b2d4a;font-weight:800;}
.jbe-auth-subtitle{color:#5f6f82;}
.jbe-auth-card-create .jbe-auth-logo{max-width:126px;max-height:58px;}
.jbe-auth-card-create{width:min(100%,900px);}
.jbe-auth-input,.jbe-auth-select{border-radius:13px;background:#fff;}
.jbe-auth-button{border-radius:14px;background:linear-gradient(135deg,#2563eb 0%,#0f9f8f 100%);}
.jbe-auth-secondary-link,.jbe-auth-links a,.jbe-auth-mini-link a{color:#0b65b8;}
.jbe-portal-page{
    background:
        radial-gradient(circle at 12% 10%,rgba(43,131,211,.12),transparent 30%),
        radial-gradient(circle at 90% 86%,rgba(16,168,139,.11),transparent 34%),
        linear-gradient(135deg,rgba(255,255,255,.965),rgba(249,252,255,.955)),
        var(--jbe-auth-bg-image,none),
        linear-gradient(135deg,#ffffff,#f8fbff 48%,#f4fbf8);
    background-size:auto,auto,cover,cover,auto;
}
.jbe-portal-frame{width:min(100%,1120px);background:rgba(255,255,255,.92);box-shadow:0 24px 62px rgba(15,45,80,.115);}
.jbe-portal-logo{width:112px;max-height:54px;}
.jbe-portal-title{color:#0b2d4a;}
.jbe-portal-card{border-radius:24px;}
.jbe-portal-card h2{color:#0b2d4a;}
@media(max-width:760px){.jbe-auth-card-create{width:min(100%,560px);max-height:none}.jbe-auth-logo{max-width:124px}.jbe-portal-logo{width:98px}}


/* PATCH 20260523i - Login exactamente ao centro
   Mantém SIGEF, SIGAD e SIGFAR com o cartão de login no centro real do ecrã. */
html:has(.jbe-auth-page),
body:has(.jbe-auth-page){
    width:100%!important;
    min-height:100%!important;
}
body:has(.jbe-auth-page){
    margin:0!important;
    overflow-x:hidden!important;
}
.jbe-auth-page{
    width:100%!important;
    min-height:100vh!important;
    min-height:100dvh!important;
    display:grid!important;
    place-items:center!important;
    align-content:center!important;
    justify-content:center!important;
    padding:clamp(14px,3.2vh,34px) 18px!important;
}
.jbe-auth-page > .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide){
    width:min(100%,430px)!important;
    margin:auto!important;
    align-self:center!important;
    justify-self:center!important;
}
.jbe-auth-page > .jbe-auth-card-create,
.jbe-auth-page > .jbe-auth-card-wide{
    margin:auto!important;
    align-self:center!important;
    justify-self:center!important;
}
.jbe-auth-logo{
    margin-left:auto!important;
    margin-right:auto!important;
}
@media (max-height:680px){
    .jbe-auth-page{align-content:start!important;place-items:start center!important;padding-top:14px!important;padding-bottom:14px!important;}
    .jbe-auth-page > .jbe-auth-card{margin-top:0!important;margin-bottom:0!important;}
}
@media (max-width:520px){
    .jbe-auth-page{padding:12px!important;}
    .jbe-auth-page > .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide){width:100%!important;}
}

/* PATCH 20260523j - Login maior, moderno e centrado
   Mantém o cartão no centro real do ecrã do computador, sem reduzir o tamanho. */
@media (min-width:761px){
    .jbe-auth-page{
        display:grid!important;
        place-items:center!important;
        align-content:center!important;
        justify-content:center!important;
        padding:clamp(22px,4vh,46px)!important;
    }
    .jbe-auth-page > .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide){
        width:min(100%,520px)!important;
        min-height:560px!important;
        padding:42px 46px 38px!important;
        margin:auto!important;
        align-self:center!important;
        justify-self:center!important;
        border-radius:30px!important;
        box-shadow:0 30px 80px rgba(15,45,80,.15)!important;
    }
    .jbe-auth-page > .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide)::before{
        left:44px!important;
        right:44px!important;
        height:6px!important;
    }
    .jbe-auth-logo{
        max-width:160px!important;
        max-height:72px!important;
        margin-bottom:18px!important;
    }
    .jbe-auth-symbol{
        width:62px!important;
        height:62px!important;
        border-radius:20px!important;
        margin-bottom:16px!important;
        font-size:27px!important;
    }
    .jbe-auth-title{
        font-size:24px!important;
        margin-bottom:18px!important;
    }
    .jbe-auth-subtitle{
        font-size:13px!important;
        margin-bottom:22px!important;
    }
    .jbe-auth-form{gap:13px!important;}
    .jbe-auth-field span:not(.jbe-auth-sr){font-size:12px!important;margin-bottom:6px!important;}
    .jbe-auth-input,
    .jbe-auth-select{
        height:48px!important;
        border-radius:14px!important;
        font-size:13px!important;
        padding:0 15px!important;
    }
    .jbe-auth-button{
        min-height:50px!important;
        border-radius:16px!important;
        font-size:15px!important;
        margin-top:2px!important;
    }
    .jbe-auth-links{font-size:12.5px!important;margin-top:18px!important;gap:9px!important;}
}
@media (min-width:761px) and (max-height:680px){
    .jbe-auth-page{
        place-items:center!important;
        align-content:center!important;
        padding-top:18px!important;
        padding-bottom:18px!important;
    }
    .jbe-auth-page > .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide){
        min-height:auto!important;
        padding:34px 42px 32px!important;
    }
}
@media (max-width:760px){
    .jbe-auth-page > .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide){
        width:min(100%,460px)!important;
        padding:28px 24px 26px!important;
    }
    .jbe-auth-logo{max-width:132px!important;max-height:62px!important;}
}

/* Ajuste final 2026-05-25: login maior no computador, mantendo responsividade. */
@media (min-width: 900px){
    .jbe-auth-page{
        padding:36px;
    }
    .jbe-auth-card:not(.jbe-auth-card-wide):not(.jbe-auth-card-create){
        width:min(100%,560px);
        min-height:560px;
        padding:42px 58px 38px;
        border-radius:30px;
    }
    .jbe-auth-card:not(.jbe-auth-card-wide):not(.jbe-auth-card-create)::before{
        left:70px;
        right:70px;
        height:6px;
    }
    .jbe-auth-card:not(.jbe-auth-card-wide):not(.jbe-auth-card-create)::after{
        right:-48px;
        top:-62px;
        width:178px;
        height:178px;
    }
    .jbe-auth-card:not(.jbe-auth-card-wide):not(.jbe-auth-card-create) .jbe-auth-logo{
        max-width:150px;
        max-height:72px;
        margin-bottom:20px;
    }
    .jbe-auth-card:not(.jbe-auth-card-wide):not(.jbe-auth-card-create) .jbe-auth-title{
        font-size:26px;
        margin-bottom:22px;
        letter-spacing:.01em;
    }
    .jbe-auth-card:not(.jbe-auth-card-wide):not(.jbe-auth-card-create) .jbe-auth-form{
        gap:14px;
    }
    .jbe-auth-card:not(.jbe-auth-card-wide):not(.jbe-auth-card-create) .jbe-auth-input,
    .jbe-auth-card:not(.jbe-auth-card-wide):not(.jbe-auth-card-create) .jbe-auth-select{
        height:54px;
        border-radius:15px;
        padding:0 18px;
        font-size:15px;
    }
    .jbe-auth-card:not(.jbe-auth-card-wide):not(.jbe-auth-card-create) .jbe-auth-button{
        min-height:54px;
        border-radius:16px;
        font-size:15px;
        margin-top:8px;
    }
    .jbe-auth-card:not(.jbe-auth-card-wide):not(.jbe-auth-card-create) .jbe-auth-check{
        font-size:13px;
        margin-top:2px;
    }
    .jbe-auth-card:not(.jbe-auth-card-wide):not(.jbe-auth-card-create) .jbe-auth-check input{
        width:16px;
        height:16px;
    }
    .jbe-auth-card:not(.jbe-auth-card-wide):not(.jbe-auth-card-create) .jbe-auth-links{
        margin-top:20px;
        font-size:13px;
        gap:10px;
    }
}

@media (min-width: 1200px){
    .jbe-auth-card:not(.jbe-auth-card-wide):not(.jbe-auth-card-create){
        width:min(100%,590px);
        padding-left:64px;
        padding-right:64px;
    }
}

@media (max-width: 899px){
    .jbe-auth-card:not(.jbe-auth-card-wide):not(.jbe-auth-card-create){
        width:min(100%,455px);
    }
}


/* PATCH 20260525c - Login normal, centrado e sem scroll desnecessário
   Corrige o excesso de tamanho do patch anterior e mantém o cartão confortável no computador. */
@media (min-width:800px){
    html:has(.jbe-auth-page),
    body:has(.jbe-auth-page){
        width:100%!important;
        min-height:100%!important;
        overflow-x:hidden!important;
    }
    body:has(.jbe-auth-page){
        margin:0!important;
    }
    .jbe-auth-page{
        width:100%!important;
        min-height:100vh!important;
        min-height:100dvh!important;
        display:flex!important;
        align-items:center!important;
        justify-content:center!important;
        padding:18px 22px!important;
        overflow-y:auto!important;
    }
    .jbe-auth-page > .jbe-auth-card-login,
    .jbe-auth-page > .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide){
        width:min(92vw,500px)!important;
        max-width:500px!important;
        min-width:0!important;
        min-height:0!important;
        height:auto!important;
        padding:32px 44px 30px!important;
        border-radius:26px!important;
        margin:auto!important;
        box-shadow:0 24px 64px rgba(15,45,80,.13)!important;
    }
    .jbe-auth-page > .jbe-auth-card-login::before,
    .jbe-auth-page > .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide)::before{
        left:58px!important;
        right:58px!important;
        height:5px!important;
    }
    .jbe-auth-page > .jbe-auth-card-login::after,
    .jbe-auth-page > .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide)::after{
        width:150px!important;
        height:150px!important;
        top:-64px!important;
        right:-54px!important;
    }
    .jbe-auth-card-login .jbe-auth-logo,
    .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide) .jbe-auth-logo{
        max-width:148px!important;
        max-height:66px!important;
        margin-bottom:14px!important;
    }
    .jbe-auth-card-login .jbe-auth-title,
    .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide) .jbe-auth-title{
        font-size:23px!important;
        margin-bottom:18px!important;
        line-height:1.12!important;
    }
    .jbe-auth-card-login .jbe-auth-form,
    .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide) .jbe-auth-form{
        gap:11px!important;
    }
    .jbe-auth-card-login .jbe-auth-input,
    .jbe-auth-card-login .jbe-auth-select,
    .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide) .jbe-auth-input,
    .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide) .jbe-auth-select{
        height:46px!important;
        border-radius:13px!important;
        font-size:13px!important;
        padding:0 15px!important;
    }
    .jbe-auth-card-login .jbe-auth-button,
    .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide) .jbe-auth-button{
        min-height:48px!important;
        border-radius:14px!important;
        font-size:14px!important;
        margin-top:4px!important;
    }
    .jbe-auth-card-login .jbe-auth-check,
    .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide) .jbe-auth-check{
        font-size:12px!important;
        margin-top:0!important;
    }
    .jbe-auth-card-login .jbe-auth-check input,
    .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide) .jbe-auth-check input{
        width:15px!important;
        height:15px!important;
    }
    .jbe-auth-card-login .jbe-auth-links,
    .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide) .jbe-auth-links{
        margin-top:16px!important;
        font-size:12px!important;
        gap:7px!important;
    }
}
@media (min-width:800px) and (max-height:680px){
    .jbe-auth-page{
        padding-top:12px!important;
        padding-bottom:12px!important;
    }
    .jbe-auth-page > .jbe-auth-card-login,
    .jbe-auth-page > .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide){
        width:min(90vw,480px)!important;
        max-width:480px!important;
        padding:24px 40px 23px!important;
        border-radius:24px!important;
    }
    .jbe-auth-card-login .jbe-auth-logo,
    .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide) .jbe-auth-logo{
        max-width:138px!important;
        max-height:58px!important;
        margin-bottom:10px!important;
    }
    .jbe-auth-card-login .jbe-auth-title,
    .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide) .jbe-auth-title{
        font-size:21px!important;
        margin-bottom:14px!important;
    }
    .jbe-auth-card-login .jbe-auth-form,
    .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide) .jbe-auth-form{
        gap:9px!important;
    }
    .jbe-auth-card-login .jbe-auth-input,
    .jbe-auth-card-login .jbe-auth-select,
    .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide) .jbe-auth-input,
    .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide) .jbe-auth-select{
        height:42px!important;
    }
    .jbe-auth-card-login .jbe-auth-button,
    .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide) .jbe-auth-button{
        min-height:44px!important;
        margin-top:2px!important;
    }
    .jbe-auth-card-login .jbe-auth-links,
    .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide) .jbe-auth-links{
        margin-top:11px!important;
        gap:5px!important;
    }
}
@media (max-width:799px){
    .jbe-auth-page > .jbe-auth-card-login,
    .jbe-auth-page > .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide){
        width:min(100%,455px)!important;
        min-width:0!important;
    }
}


/* ============================================================
   Ajuste final de branding: quando o logo oficial já contém o
   nome do módulo, não repetimos SIGEF/SIGAD/SIGFAR em texto.
   ============================================================ */
.jbe-auth-card-login .jbe-auth-logo.module-logo,
.jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide) .jbe-auth-logo.module-logo{
    max-width:260px!important;
    max-height:92px!important;
    margin-bottom:20px!important;
}
.jbe-auth-card-login .jbe-auth-logo.module-logo.is-sigef{max-width:244px!important;max-height:86px!important;}
.jbe-auth-card-login .jbe-auth-logo.module-logo.is-sigad,
.jbe-auth-card-login .jbe-auth-logo.module-logo.is-sigfar{max-width:270px!important;max-height:94px!important;}
.jbe-portal-card-title{align-items:center;text-align:center;gap:0!important;}
.jbe-portal-card-logo{height:60px!important;max-width:100%!important;margin:2px auto 0!important;}
.jbe-portal-full{display:none!important;}
@media(max-width:760px){
    .jbe-auth-card-login .jbe-auth-logo.module-logo,
    .jbe-auth-card:not(.jbe-auth-card-create):not(.jbe-auth-card-wide) .jbe-auth-logo.module-logo{
        max-width:218px!important;
        max-height:78px!important;
        margin-bottom:16px!important;
    }
    .jbe-portal-card-logo{height:52px!important;}
}
