/* ================= LOGIN AUTH STYLE ================= */

body{
    margin:0;
    font-family:"Segoe UI", Arial, sans-serif;
}

.login-page{
    min-height:100vh;
    background:#0f172a;
    overflow:hidden;
}

.login-bg{
    min-height:100vh;
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:90px;
    padding:40px;
    box-sizing:border-box;
}

.blob{
    position:absolute;
    border-radius:50%;
    opacity:.9;
}

.blob-left{
    width:480px;
    height:480px;
    background:#1e3a8a;
    left:-180px;
    top:-170px;
}

.blob-right{
    width:340px;
    height:340px;
    background:#0f766e;
    right:-80px;
    bottom:-90px;
}

.login-intro{
    width:390px;
    color:white;
    z-index:1;
}

.login-intro h1{
    font-size:42px;
    margin:0;
    font-weight:800;
}

.login-intro p{
    margin:8px 0 170px;
    color:#cbd5e1;
    font-size:17px;
}

.frase{
    color:#e2e8f0;
    font-size:19px;
    font-style:italic;
    line-height:1.5;
}

.frase span{
    color:#5eead4;
}

.login-card{
    width:340px;
    min-height:430px;
    background:white;
    border-radius:2px;
    padding:34px 32px;
    box-shadow:0 30px 80px rgba(0,0,0,.35);
    z-index:1;
    box-sizing:border-box;
}

.logo-text{
    text-align:center;
    color:#0f172a;
    font-size:24px;
    font-weight:800;
    margin-bottom:24px;
}

.login-card h2{
    margin:0;
    text-align:center;
    color:#0f172a;
    font-size:22px;
}

.login-card .sub{
    margin:6px 0 24px;
    text-align:center;
    color:#64748b;
    font-size:13px;
}

.login-card label{
    display:block;
    color:#334155;
    font-size:13px;
    font-weight:700;
    margin-bottom:6px;
}

.login-card input{
    width:100%;
    padding:13px;
    margin-bottom:14px;
    border:1px solid #d8e1ea;
    border-radius:8px;
    font-size:15px;
    outline:none;
    box-sizing:border-box;
}

.login-card input:focus{
    border-color:#2563eb;
    box-shadow:0 0 0 3px rgba(37,99,235,.12);
}

.login-card button{
    width:100%;
    height:46px;
    background:#2563eb;
    color:white;
    border:none;
    border-radius:6px;
    font-weight:800;
    cursor:pointer;
    margin-top:8px;
}

.login-card button:hover{
    background:#1d4ed8;
}

.login-card small{
    display:block;
    text-align:center;
    color:#64748b;
    margin-top:18px;
    font-size:12px;
}

@media(max-width:850px){
    .login-bg{
        flex-direction:column;
        gap:25px;
    }

    .login-intro{
        width:100%;
        text-align:center;
    }

    .login-intro p{
        margin-bottom:20px;
    }

    .login-card{
        width:100%;
        max-width:360px;
    }
}

/* ================= PORTAL ================= */

.portal-body{
    background:#f2f6fa;
    color:#1d2b36;
}

.portal-header{
    background:linear-gradient(135deg,#1f5fa5,#356791);
    color:white;
    padding:28px 40px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.portal-header h1{
    margin:0;
    font-size:30px;
}

.portal-header p{
    margin:6px 0 0;
    opacity:.9;
}

.btn-sair{
    width:auto;
    padding:10px 18px;
    background:white;
    color:#1f5fa5;
    border:none;
    border-radius:10px;
    font-weight:bold;
    cursor:pointer;
}

.filtros{
    margin:25px 35px;
    background:white;
    padding:18px;
    border-radius:14px;
    display:flex;
    align-items:center;
    gap:12px;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
}

.filtros > input{
    flex:1;
    padding:12px;
    border:1px solid #d8e1ea;
    border-radius:10px;
}

.filtros button{
    width:auto;
    padding:12px 18px;
    background:#356791;
    color:white;
    border:none;
    border-radius:10px;
    cursor:pointer;
    font-weight:bold;
}

.filtro-periodo{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:nowrap;
}

.filtro-periodo label{
    font-size:14px;
    font-weight:bold;
    color:#35506b;
}

.filtro-periodo input{
    width:160px;
    padding:12px;
    border:1px solid #d8e1ea;
    border-radius:10px;
}

.relatorios-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:22px;
    margin:0 35px 40px;
}

.relatorio-card{
    background:white;
    padding:22px;
    border-radius:16px;
    box-shadow:0 10px 28px rgba(0,0,0,.08);
    border:1px solid #e8eef5;
}

.relatorio-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:14px;
}

.badge{
    background:#e7f5ee;
    color:#14804a;
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:bold;
}

.relatorio-card h2{
    margin:0 0 10px;
    color:#17324d;
}

.relatorio-card p{
    color:#4b5c6b;
}

.chave{
    background:#f5f8fb;
    padding:12px;
    border-radius:10px;
    font-size:13px;
    margin:16px 0;
    color:#34495e;
}

.btn-download{
    display:inline-block;
    padding:12px 18px;
    background:#0b7d3b;
    color:white;
    text-decoration:none;
    border-radius:10px;
    font-weight:bold;
}

.empty{
    background:white;
    padding:30px;
    border-radius:14px;
    text-align:center;
    color:#667;
    box-shadow:0 8px 24px rgba(0,0,0,.08);
}

@media(max-width:700px){
    .portal-header{
        flex-direction:column;
        align-items:flex-start;
        gap:15px;
        padding:24px;
    }

    .filtros{
        flex-direction:column;
        align-items:stretch;
        margin:20px;
    }

    .filtro-periodo{
        flex-direction:column;
        align-items:stretch;
    }

    .filtro-periodo input{
        width:100%;
    }

    .relatorios-grid{
        margin:0 20px 30px;
    }
}

.portal-container *{
    box-sizing:border-box;
}

.portal-container button{
    width:auto !important;
}

.portal-container input{
    margin:0 !important;
}

.portal-container .filtros{
    display:flex !important;
    flex-direction:row !important;
    align-items:center !important;
}

.portal-container .btn-sair{
    background:white !important;
    color:#1f5fa5 !important;
}

.portal-container .btn-download{
    color:white !important;
}