/* SORIO DNIT 2.1.1 - somente login anonimo GLPI 12 */
body.sorio-dnit12 { min-height:100vh!important; overflow-x:hidden!important; color:#eefaff!important;
 background:linear-gradient(90deg,rgba(0,8,28,.04) 0%,rgba(0,12,31,.10) 48%,rgba(0,9,26,.18) 100%),url('../img/fundo-login-dnit.png') center/cover no-repeat fixed!important; }
body.sorio-dnit12 .page-anonymous,body.sorio-dnit12 .page-anonymous .container-tight { background:transparent!important; }
body.sorio-dnit12 .page-anonymous>.flex-fill { margin-top:0!important; padding:12px 0!important; min-height:100vh; justify-content:center!important; }
body.sorio-dnit12 .container-tight { width:min(100%,580px)!important;max-width:580px!important;margin-left:auto!important;margin-right:clamp(24px,8vw,155px)!important;padding:0 14px!important; }
body.sorio-dnit12 .sorio-dnit-card { width:100%!important;max-width:560px!important; min-height:0!important;height:auto!important; margin:0!important; padding:18px 25px 22px!important;
 background:linear-gradient(150deg,rgba(8,36,78,.96),rgba(1,16,40,.97))!important;border:1px solid #00bfff!important;border-radius:23px!important;
 box-shadow:0 15px 55px rgba(0,0,0,.7),0 0 28px rgba(0,185,255,.22)!important;backdrop-filter:blur(10px);color:#fff!important; }
body.sorio-dnit12 .sorio-dnit-card .card-body {background:transparent!important;padding:10px 22px 5px!important;width:100%!important;max-width:none!important;}
body.sorio-dnit12 .sorio-dnit-card .sorio-dnit-brand{text-align:center;padding:2px 12px 8px!important;margin:0!important;}
body.sorio-dnit12 .sorio-dnit-card .sorio-dnit-brand img{display:block;width:auto;max-width:210px;max-height:76px;height:auto;margin:0 auto 9px;object-fit:contain;}
body.sorio-dnit12 .sorio-dnit-card .sorio-dnit-brand h2{font-size:clamp(22px,2.1vw,29px);font-weight:750;margin:5px 0;color:#fff!important;}
body.sorio-dnit12 .sorio-dnit-card .sorio-dnit-brand p{font-size:13px;margin:0 0 7px;color:#d5eaff!important;}
body.sorio-dnit12 .sorio-dnit-card form,body.sorio-dnit12 .sorio-dnit-card form>div{width:100%!important;max-width:none!important;min-width:0!important;}
body.sorio-dnit12 .sorio-dnit-card form .row{width:auto!important;max-width:none!important;}
body.sorio-dnit12 .sorio-dnit-card form .row>.col-md-5{flex:0 0 100%!important;width:100%!important;max-width:100%!important;}
body.sorio-dnit12 .sorio-dnit-card form label,body.sorio-dnit12 .sorio-dnit-card form h1,body.sorio-dnit12 .sorio-dnit-card form h2,body.sorio-dnit12 .sorio-dnit-card form h3{color:#f1faff!important;}
body.sorio-dnit12 .sorio-dnit-card form h1,body.sorio-dnit12 .sorio-dnit-card form h2,body.sorio-dnit12 .sorio-dnit-card form h3{text-align:center!important;max-width:none!important;white-space:normal;}
body.sorio-dnit12 .sorio-dnit-card form input.form-control,body.sorio-dnit12 .sorio-dnit-card form select.form-select {width:100%!important;max-width:none!important;min-height:47px!important;box-sizing:border-box;background:rgba(10,43,83,.92)!important;color:#fff!important;border:1px solid #4484b8!important;border-radius:9px!important;}
body.sorio-dnit12 .sorio-dnit-card form select.form-select option{color:#10233d;background:#fff;}
body.sorio-dnit12 .sorio-dnit-card form input.form-control:focus,body.sorio-dnit12 .sorio-dnit-card form select.form-select:focus{border-color:#00d6ff!important;box-shadow:0 0 0 3px rgba(0,200,255,.17)!important;}
body.sorio-dnit12 .sorio-dnit-card form button[type=submit],body.sorio-dnit12 .sorio-dnit-card form input[type=submit]{width:100%!important;max-width:none!important;min-height:51px!important;background:linear-gradient(95deg,#008bf2,#00c8e8)!important;color:#fff!important;font-weight:750!important;border:0!important;border-radius:9px!important;}
body.sorio-dnit12 .sorio-dnit-card form .mb-4{margin-bottom:12px!important;}
body.sorio-dnit12 .sorio-dnit-info{display:none!important;}
body.sorio-dnit12 .sorio-dnit-features{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;border-top:1px solid #00a9d8;margin-top:15px;padding-top:14px;text-align:center;}
body.sorio-dnit12 .sorio-dnit-features span{font-size:10px;color:#c8f4ff;letter-spacing:.03em;}
body.sorio-dnit12 .sorio-dnit-features b{display:block;color:#00d8ff;font-size:23px;line-height:1.4;font-weight:500;}
body.sorio-dnit12 img[alt="GLPI"],body.sorio-dnit12 .container-tight>.text-center img[alt*="GLPI"]{display:none!important;}
@media(max-width:1000px){body.sorio-dnit12 .container-tight{margin:0 auto!important;max-width:560px!important;}body.sorio-dnit12{background-position:40% center!important;}}
@media(max-width:600px){body.sorio-dnit12 .page-anonymous>.flex-fill{padding:12px 0!important;}body.sorio-dnit12 .sorio-dnit-card{padding:12px!important;}body.sorio-dnit12 .sorio-dnit-card .card-body{padding:10px 14px!important;}body.sorio-dnit12 .sorio-dnit-features span{font-size:8px;}body.sorio-dnit12 .sorio-dnit-features b{font-size:18px;}}
@media(max-height:760px) and (min-width:1001px){body.sorio-dnit12 .page-anonymous>.flex-fill{justify-content:flex-start!important;}body.sorio-dnit12 .sorio-dnit-card{padding-top:10px!important;padding-bottom:10px!important;}body.sorio-dnit12 .sorio-dnit-card .sorio-dnit-brand img{max-height:54px;}body.sorio-dnit12 .sorio-dnit-card form .mb-4{margin-bottom:8px!important;}}

/* SORIO DNIT 2.1.2 - logos oficiais ao lado da marca DNIT do fundo */
body.sorio-dnit12 .sorio-institutional-logos {
 position:fixed; z-index:3; top:12px; left:35%; width:min(29vw,510px);
 min-height:78px; padding:9px 14px; display:flex; align-items:center;
 justify-content:space-evenly; gap:18px; box-sizing:border-box;
 background:rgba(240,248,255,.95); border:1px solid rgba(0,207,255,.58);
 border-radius:12px; box-shadow:0 7px 25px rgba(0,9,30,.45);
 pointer-events:none;
}
body.sorio-dnit12 .sorio-institutional-logos img {display:block; width:auto; max-width:54%; height:auto; max-height:58px; object-fit:contain;}
body.sorio-dnit12 .sorio-institutional-logos img:last-child {max-width:34%;max-height:55px;}
/* Em telas estreitas, não cobrir a rodovia nem os campos de login. */
@media(max-width:1150px) {body.sorio-dnit12 .sorio-institutional-logos {position:relative;top:auto;left:auto;width:min(92%,470px);margin:12px auto 0;min-height:60px;padding:7px 12px;}}
@media(max-width:600px) {body.sorio-dnit12 .sorio-institutional-logos {gap:8px;}body.sorio-dnit12 .sorio-institutional-logos img {max-height:43px;}}

/* SORIO DNIT - Ocultar logotipo original do GLPI */

body.sorio-dnit12 .container-tight > .text-center,
body.sorio-dnit12 .container-tight > .text-center > .col-md {
    display: none !important;
}


/* SORIO DNIT - Fundo transparente das logomarcas */

body.sorio-dnit12 .sorio-partners,
body.sorio-dnit12 .sorio-partners-logos,
body.sorio-dnit12 .sorio-partners-container {
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

/* Preservar proporções das imagens */
body.sorio-dnit12 .sorio-partners img {
    object-fit: contain;
}


/* SORIO DNIT - Transparência do cabeçalho institucional */

body.sorio-dnit12 .sorio-institutional-logos {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

/* Preservar as logomarcas */
body.sorio-dnit12 .sorio-institutional-logos img {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    object-fit: contain;
}


/* SORIO DNIT - Ocultar logomarcas T&S e SORIO do cabeçalho */

body.sorio-dnit12 .sorio-institutional-logos {
    display: none !important;
}


/* SORIO DNIT - Logomarcas verticais */

body.sorio-dnit12 .sorio-logos-painel {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    background: transparent !important;
}

/* T&S Engenharia */
body.sorio-dnit12 .sorio-logos-painel img:first-child {
    max-width: 260px;
    width: 85%;
    height: 65px;
    object-fit: contain;
}

/* SORIO Service - aparência branca */
body.sorio-dnit12 .sorio-logos-painel img:last-child {
    max-width: 220px;
    width: 75%;
    height: 65px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}


/* 2.1.3: marcas oficiais somente no painel de autenticacao */
body.sorio-dnit12 .sorio-institutional-logos {display:none!important;}
body.sorio-dnit12 .sorio-dnit-card .sorio-dnit-brand > img {display:none!important;}
body.sorio-dnit12 .sorio-dnit-card .sorio-logos-painel {display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:5px!important;margin:0 auto 10px!important;}
body.sorio-dnit12 .sorio-dnit-card .sorio-logos-painel img {display:block!important;object-fit:contain!important;background:transparent!important;}
body.sorio-dnit12 .sorio-dnit-card .sorio-logos-painel img:first-child {width:auto!important;max-width:min(86%,290px)!important;height:54px!important;filter:none!important;}
body.sorio-dnit12 .sorio-dnit-card .sorio-logos-painel img:last-child {width:auto!important;max-width:min(75%,230px)!important;height:52px!important;filter:brightness(0) invert(1)!important;}
body.sorio-dnit12 .sorio-dnit-card .sorio-dnit-brand {padding-top:0!important;}
@media(max-height:850px) and (min-width:1001px) {body.sorio-dnit12 .sorio-dnit-card .sorio-logos-painel img:first-child {height:43px!important;}body.sorio-dnit12 .sorio-dnit-card .sorio-logos-painel img:last-child {height:43px!important;}body.sorio-dnit12 .sorio-dnit-card .sorio-logos-painel{gap:0!important;margin-bottom:4px!important;}}

/* SORIO DNIT 2.1.3 - Novo fundo institucional */
body.sorio-dnit12 {
    background-position: left center !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
}

@media (max-width: 1000px) {
    body.sorio-dnit12 {
        background-position: 35% center !important;
    }
}


/* =====================================================
   SORIO DNIT LOGIN 2.1.3
   Ajustes institucionais - Outubro/2026
   ===================================================== */

/* Exibir a imagem institucional completa */
body.sorio-dnit12 {
    background-position: left top !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
}

/* Remover somente o titulo duplicado do GLPI */
body.sorio-dnit12 .sorio-dnit-card form h2.mx-auto {
    display: none !important;
}


/* =====================================================
   SORIO DNIT LOGIN 2.1.3
   Ajustes institucionais - Outubro/2026
   ===================================================== */

/* Exibir a imagem institucional completa */
body.sorio-dnit12 {
    background-position: left top !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
}

/* Remover somente o titulo duplicado do GLPI */
body.sorio-dnit12 .sorio-dnit-card form h2.mx-auto {
    display: none !important;
}


/* SORIO DNIT - Formulário institucional branco */

body.sorio-dnit12 .sorio-dnit-card {
    max-width: 430px !important;
    padding: 24px 28px !important;
    background: #ffffff !important;
    border: 1px solid #dce8f4 !important;
    border-radius: 18px !important;
    box-shadow: 0 15px 45px rgba(0, 30, 70, .22) !important;
    backdrop-filter: none !important;
    color: #17345c !important;
}

body.sorio-dnit12 .container-tight {
    max-width: 460px !important;
    width: min(100%, 460px) !important;
}

body.sorio-dnit12 .sorio-dnit-card .sorio-dnit-brand h2 {
    color: #073b78 !important;
    font-size: 27px !important;
    font-weight: 800 !important;
}

body.sorio-dnit12 .sorio-dnit-card .sorio-dnit-brand p {
    color: #65758b !important;
}

body.sorio-dnit12 .sorio-dnit-card form h2.mx-auto {
    display: none !important;
}

body.sorio-dnit12 .sorio-dnit-card form label {
    color: #17345c !important;
    font-weight: 600 !important;
}

body.sorio-dnit12 .sorio-dnit-card form input.form-control,
body.sorio-dnit12 .sorio-dnit-card form select.form-select {
    background: #ffffff !important;
    color: #17345c !important;
    border: 1px solid #d5e1ee !important;
    border-radius: 9px !important;
    min-height: 45px !important;
}

body.sorio-dnit12 .sorio-dnit-card form input.form-control:focus {
    border-color: #0788dc !important;
    box-shadow: 0 0 0 3px rgba(0, 150, 255, .12) !important;
}

body.sorio-dnit12 .sorio-dnit-card form button[type="submit"] {
    background: linear-gradient(90deg, #0869bf, #008bd9) !important;
    color: #ffffff !important;
    border-radius: 9px !important;
    min-height: 48px !important;
    font-weight: 700 !important;
}

body.sorio-dnit12 .sorio-dnit-features {
    display: none !important;
}

body.sorio-dnit12 .sorio-dnit-card .card-body {
    padding: 10px 5px !important;
}


/* SORIO DNIT - Enquadramento institucional aprovado */
body.sorio-dnit12 {
    background-image:
        linear-gradient(
            90deg,
            rgba(0, 8, 28, 0.02),
            rgba(0, 12, 31, 0.05)
        ),
        url('../img/fundo-login-dnit.png') !important;

    background-size: 100% 100% !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}


/* SORIO DNIT - Corrigir logomarcas no formulário branco */

body.sorio-dnit12 .sorio-dnit-card .sorio-logos-painel {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 auto 12px !important;
}

/* Logomarca T&S Engenharia */
body.sorio-dnit12 .sorio-dnit-card .sorio-logos-painel img:first-child {
    display: block !important;
    max-width: 210px !important;
    height: 50px !important;
    object-fit: contain !important;
    filter: none !important;
}

/* Logomarca SORIO Service */
body.sorio-dnit12 .sorio-dnit-card .sorio-logos-painel img:last-child {
    display: block !important;
    max-width: 190px !important;
    height: 55px !important;
    object-fit: contain !important;
    filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}



/* SORIO DNIT - Identidade visual: SORIO no topo, T&S no rodape */
body.sorio-dnit12 .sorio-dnit-card .sorio-logos-painel img {
    filter: none !important; visibility: visible !important; opacity: 1 !important;
}
body.sorio-dnit12 .sorio-dnit-card .sorio-logos-painel img:last-child {
    display: block !important; max-width: 190px !important; height: 55px !important;
    filter: none !important;
}
body.sorio-dnit12 .sorio-dnit-card #sorio-rodape-tes {
    display: flex !important; align-items: center; justify-content: center;
    gap: 12px; margin-top: 18px; padding-top: 15px;
    border-top: 1px solid #dce8f4; color: #718096; font-size: 12px;
}
body.sorio-dnit12 .sorio-dnit-card #sorio-rodape-tes img {
    display: block !important; width: auto !important; max-width: 150px !important;
    height: 42px !important; object-fit: contain !important; filter: none !important;
}
