.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 2rem 1.75rem;
}

.auth-logo {
    display: block;
    max-height: 48px;
    margin: 0 auto 1rem;
}

.auth-card h1 {
    font-size: 1.25rem;
    text-align: center;
    margin: 0 0 0.35rem;
}

.auth-sub {
    text-align: center;
    color: #6b7280;
    margin: 0 0 1.5rem;
    font-size: 0.9rem;
}

.auth-form label {
    display: block;
    font-size: 0.85rem;
    margin: 0.75rem 0 0.25rem;
}

.auth-form input {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.auth-submit {
    width: 100%;
    margin-top: 1.25rem;
}

.auth-erro {
    margin-top: 0.75rem;
    color: #b91c1c;
    font-size: 0.875rem;
}

.auth-aviso {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.875rem;
    margin: 0 0 0.5rem;
}

.auth-user-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
    font-size: 0.85rem;
    color: #374151;
}

.auth-user-bar strong {
    font-weight: 600;
}

.tab-btn.auth-hidden-tab {
    display: none !important;
}

.rbac-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
    margin: 0.5rem 0 1rem;
}

.rbac-grid label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
}

.auth-panel-forms {
    display: grid;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
    .auth-panel-forms {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===== Identidade SIGENT (igual ao impressor/SIGSEP) ===== */
@font-face {
    font-family: 'Manrope'; font-weight: 200 800; font-display: swap;
    src: url('/fonts/manrope-var.woff2') format('woff2');
}
.auth-body {
    font-family: 'Manrope', -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #29343d;
    background:
        radial-gradient(1100px 560px at 50% -12%, rgba(99,91,255,.20), transparent 60%),
        radial-gradient(760px 480px at 108% 112%, rgba(37,83,185,.12), transparent 55%),
        linear-gradient(160deg, #eef0ff 0%, #f4f7fb 46%, #eaeef7 100%);
    padding-top: calc(1.5rem + var(--safe-top));
    padding-bottom: calc(1.5rem + var(--safe-bottom));
    padding-left: calc(1.5rem + var(--safe-left));
    padding-right: calc(1.5rem + var(--safe-right));
}
.auth-card {
    max-width: 404px; border: 1px solid rgba(99,91,255,.10); border-radius: 22px;
    padding: 2.75rem 2.25rem 2.25rem;
    background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
    box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 26px 50px -14px rgba(37,83,185,.28);
}
.auth-logo { max-height: 52px; margin: 0 auto 1.4rem; }
.auth-card h1, .sigent-badge {
    display: inline-block; margin: 0 auto .7rem; padding: .42rem 1.25rem;
    background: linear-gradient(135deg, #6f67ff, #5147f5); color: #fff;
    font-weight: 800; font-size: 1.05rem; letter-spacing: .5px;
    border-radius: 999px; text-align: center;
    box-shadow: 0 8px 18px rgba(99,91,255,.38);
}
.auth-card { text-align: center; }
.auth-sub {
    text-transform: uppercase; letter-spacing: .85px; font-size: .7rem;
    font-weight: 700; color: #8a97a3; margin: 0 0 1.75rem;
}
.auth-form { text-align: left; }
.auth-form label { font-size: .78rem; color: #7b8893; font-weight: 600; margin: .9rem 0 .3rem; }
.auth-form input {
    border: 1px solid #dde5ee; border-radius: 11px; padding: .75rem .95rem;
    background: #f8fafc; transition: border-color .15s, box-shadow .15s, background .15s;
}
.auth-form input:hover { border-color: #c7d2e0; }
.auth-form input:focus {
    outline: none; border-color: #635bff; background: #fff;
    box-shadow: 0 0 0 4px rgba(99,91,255,.15);
}
.auth-submit, .auth-form .btn-primary {
    display: flex; justify-content: center; width: 100%;
    background: linear-gradient(135deg, #6f67ff, #5147f5); border: none; color: #fff;
    border-radius: 999px; padding: .8rem; font-weight: 800; font-size: .95rem;
    letter-spacing: .3px; font-family: inherit; cursor: pointer; margin-top: 1.5rem;
    box-shadow: 0 8px 20px rgba(99,91,255,.35);
    transition: transform .12s, box-shadow .15s, filter .15s;
}
.auth-submit:hover, .auth-form .btn-primary:hover {
    filter: brightness(1.05); box-shadow: 0 10px 26px rgba(99,91,255,.45);
}
.auth-submit:active, .auth-form .btn-primary:active { transform: translateY(1px); }
.auth-foot {
    text-align: center; margin: 1.5rem 0 0; padding-top: 1.25rem;
    border-top: 1px solid #eef1f6; font-size: .72rem; color: #9aa6b2; letter-spacing: .2px;
}
