body {
    min-height: 100vh;
    background:
        linear-gradient(rgba(255, 255, 255, .32), rgba(255, 255, 255, .32)),
        url('/img/fondo_mas_servicios.jpeg') center / cover fixed no-repeat;
    color: #1f2937;
}

.brand-navbar {
    min-height: 92px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: rgba(255, 255, 255, .9);
    border-bottom: 1px solid rgba(148, 163, 184, .3);
    box-shadow: 0 8px 24px rgba(31, 41, 55, .08);
    gap: 1rem;
    padding: 1rem 1.25rem;
}

.brand-logo {
    display: block;
    grid-column: 2;
    justify-self: center;
    width: min(130px, 46vw);
    height: auto;
}

.nav-user {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: .85rem;
}

.user-summary {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    min-width: 0;
}

.user-initial {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    border-radius: 50%;
    background: #4b5563;
    color: #fff;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(31, 41, 55, .18);
}

.user-name {
    max-width: 180px;
    overflow: hidden;
    color: #374151;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-form {
    margin: 0;
}

.logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    gap: .4rem;
    border-radius: 50%;
    padding: 0;
    white-space: nowrap;
}

.report-shell {
    min-height: calc(100vh - 92px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 1rem;
}

.report-panel {
    width: min(100%, 760px);
    background: rgba(255, 255, 255, .94);
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(31, 41, 55, .12);
    padding: 2rem;
}

.report-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.date-summary {
    color: #64748b;
    font-size: .95rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

.btn-download {
    min-height: 42px;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-card {
    width: min(100%, 420px);
    background: rgba(255, 255, 255, .95);
    border: 1px solid #d9e2ec;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(31, 41, 55, .14);
    padding: 2rem;
}

.login-logo {
    display: block;
    width: 120px;
    height: auto;
    margin: 0 auto 1.5rem;
}

.login-title {
    color: #111827;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    margin: 0 0 1.5rem;
}

.login-form {
    display: grid;
    gap: 1rem;
}

.login-form .form-control {
    min-height: 44px;
    padding-right: 1.1rem;
    padding-left: 1.1rem;
}

.login-submit {
    min-height: 44px;
    font-weight: 600;
    margin-top: .25rem;
}

@media (max-width: 575.98px) {
    .brand-navbar {
        grid-template-columns: auto 1fr;
        min-height: 78px;
    }

    .brand-logo {
        grid-column: 1;
        justify-self: start;
        width: 104px;
    }

    .nav-user {
        grid-column: 2;
        gap: .55rem;
    }

    .user-name {
        display: none;
    }
}
