:root {
    --mia-accent: #e62877;
    --mia-accent-hover: #c51e64;
    --mia-accent-soft: #fde8f1;
    --mia-heading: #273d4e;
    --mia-dark: #000910;
    --mia-bg: #f4f6fb;
    --miacom-dark: #000910;
    --miacom-accent: #e62877;
}

body {
    background: var(--mia-bg);
    color: var(--mia-heading);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

body.auth-page {
    background:
        radial-gradient(ellipse 80% 55% at 50% -12%, rgba(230, 40, 119, 0.55), transparent 58%),
        radial-gradient(circle 280px at 90% 16%, rgba(230, 40, 119, 0.16), transparent 70%),
        #000910;
    min-height: 100vh;
}

.navbar-miacom {
    background: linear-gradient(110deg, #10161d, #1d2733);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.12);
}

.navbar-brand-miacom {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.navbar-logo {
    height: 38px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    object-position: left center;
}

.navbar-app-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.01em;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    padding-left: 0.75rem;
    line-height: 1.2;
}

.navbar-miacom .nav-link {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    padding: 0.55rem 0.85rem !important;
    border-radius: 0.4rem;
}

.navbar-miacom .nav-link:hover,
.navbar-miacom .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.navbar-miacom .nav-link.active {
    box-shadow: inset 0 -2px 0 var(--mia-accent);
    border-radius: 0.4rem 0.4rem 0 0;
}

.navbar-intranet {
    text-decoration: none;
}

.navbar-intranet:hover {
    color: #fff !important;
}

.app-footer {
    border-top: 1px solid #e6ebf2;
    background: #fff;
    margin-top: auto;
}

.app-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-main {
    flex: 1 1 auto;
}

.bg-miacom {
    background-color: var(--miacom-dark) !important;
}

.btn-miacom {
    background: linear-gradient(135deg, var(--mia-accent) 0%, var(--mia-accent-hover) 100%);
    border-color: var(--mia-accent);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(230, 40, 119, 0.28);
}

.btn-miacom:hover,
.btn-miacom:focus {
    background: var(--mia-accent-hover);
    border-color: var(--mia-accent-hover);
    color: #fff;
}

.stat-card {
    border: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.correo-iframe {
    width: 100%;
    min-height: 480px;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    background: #fff;
}

.correo-texto {
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: 0.95rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 1rem;
    margin: 0;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

@media (max-width: 767.98px) {
    .correo-iframe {
        min-height: 320px;
    }
}

@keyframes sync-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.sync-spin {
    display: inline-block;
    animation: sync-spin 1s linear infinite;
}

#syncModal .modal-content {
    border-radius: 0.75rem;
}

.sla-badge {
    font-weight: 600;
    letter-spacing: 0.01em;
}

a.stat-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.correo-asunto {
    font-weight: 600;
    line-height: 1.3;
}

.correo-preview {
    font-size: 0.82rem;
    line-height: 1.35;
    margin-top: 0.2rem;
    max-width: 42rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dash {
    max-width: 1400px;
    margin: 0 auto;
}

.dash-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.85rem 1.25rem;
    background: linear-gradient(105deg, #000910 0%, #3a1526 42%, #e62877 100%);
    border-radius: 0.85rem;
    padding: 0.95rem 1.15rem;
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 9, 16, 0.16);
    margin-bottom: 1rem;
}

.dash-hero-main {
    min-width: 0;
    flex: 1 1 16rem;
}

.dash-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.dash-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.75;
}

.dash-sub {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
}

.dash-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
}

.dash-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dash-block {
    margin: 0;
}

.dash-block-last {
    margin-top: 0.15rem;
}

.dash-side {
    min-width: 0;
}

.dash-sec {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7c8f;
    margin: 0 0 0.5rem;
}

.dash-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.dash-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-grid-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-kpi {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 0.7rem;
    padding: 0.7rem 0.75rem 0.7rem 0.95rem;
    min-height: 0;
    box-shadow: 0 4px 14px rgba(13, 59, 86, 0.05);
    overflow: hidden;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.dash-kpi::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--miacom-accent);
}

.dash-kpi:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(13, 59, 86, 0.1);
    color: inherit;
}

.dash-kpi-sm {
    padding: 0.65rem 0.7rem 0.65rem 0.9rem;
}

.dash-kpi-k {
    font-size: 0.68rem;
    font-weight: 700;
    color: #6b7c8f;
    line-height: 1.2;
}

.dash-kpi-n {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 0.2rem;
    letter-spacing: -0.03em;
}

.dash-kpi-h {
    font-size: 0.7rem;
    color: #7a8b9c;
    margin-top: 0.2rem;
    line-height: 1.25;
}

.dash-kpi-crit::before { background: #c62828; }
.dash-kpi-crit .dash-kpi-n { color: #c62828; }
.dash-kpi-urg::before { background: #e65100; }
.dash-kpi-urg .dash-kpi-n { color: #e65100; }
.dash-kpi-pend::before { background: #c9a227; }
.dash-kpi-pend .dash-kpi-n { color: #8a6d00; }
.dash-kpi-ok::before { background: #2e7d32; }
.dash-kpi-ok .dash-kpi-n { color: #2e7d32; }
.dash-kpi-info::before { background: var(--mia-accent); }
.dash-kpi-info .dash-kpi-n { color: var(--mia-accent); }
.dash-kpi-venc::before { background: #e53935; }
.dash-kpi-venc .dash-kpi-n { color: #c62828; }
.dash-kpi-cerr::before { background: #37474f; }
.dash-kpi-cerr .dash-kpi-n { color: #37474f; }
.dash-kpi-gmail::before { background: var(--mia-accent); }
.dash-kpi-gmail .dash-kpi-n { color: var(--mia-accent); }

.dash-grid-cat {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dash-cat {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 0.65rem;
    padding: 0.65rem 0.75rem;
    box-shadow: 0 3px 12px rgba(13, 59, 86, 0.05);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.dash-cat:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(13, 59, 86, 0.1);
    border-color: rgba(230, 40, 119, 0.35);
    color: inherit;
}

.dash-cat-name {
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    color: #2c3e50;
}

.dash-cat-n {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 0.25rem;
    color: var(--mia-accent);
    letter-spacing: -0.02em;
}

.dash-cat-h {
    font-size: 0.68rem;
    color: #7a8b9c;
    margin-top: 0.15rem;
}

.dash-cat-empty {
    opacity: 0.72;
}

.dash-cat-empty .dash-cat-n {
    color: #90a4ae;
}

.dash-cat-muted .dash-cat-n {
    color: #607d8b;
}

.dash-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.dash-chip {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 0.65rem;
    padding: 0.55rem 0.75rem;
    box-shadow: 0 2px 10px rgba(13, 59, 86, 0.04);
    transition: background 0.12s ease, border-color 0.12s ease;
}

.dash-chip:hover {
    background: #f7f9fc;
    border-color: #d5deea;
    color: inherit;
}

.dash-chip-n {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--mia-heading);
    line-height: 1;
}

.dash-chip-k {
    font-size: 0.72rem;
    color: #6b7c8f;
    font-weight: 600;
}

.dash-chip-pend .dash-chip-n { color: #8a6d00; }
.dash-chip-venc .dash-chip-n { color: #c62828; }
.dash-chip-crit .dash-chip-n { color: #c62828; }

.dash-panel {
    background: #fff;
    border: 1px solid #e6ebf2;
    border-radius: 0.85rem;
    padding: 0.85rem 0.95rem 0.7rem;
    box-shadow: 0 6px 18px rgba(13, 59, 86, 0.05);
}

.dash-panel-rank {
    display: flex;
    flex-direction: column;
    max-height: none;
}

.dash-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
    flex: 0 0 auto;
}

.dash-panel-head a {
    text-decoration: none;
    white-space: nowrap;
}

.dash-rank {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    overflow: auto;
    max-height: min(52vh, 28rem);
    padding-right: 0.15rem;
    margin-right: -0.1rem;
}

.dash-rank-row {
    display: block;
    text-decoration: none;
    color: inherit;
    padding: 0.3rem 0.2rem;
    border-radius: 0.4rem;
}

.dash-rank-row:hover {
    background: #f5f8fc;
    color: inherit;
}

.dash-rank-meta {
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    margin-bottom: 0.18rem;
}

.dash-rank-pos {
    width: 1.15rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: #8a9aab;
    flex: 0 0 auto;
}

.dash-rank-name {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dash-rank-email {
    display: none;
}

.dash-rank-n {
    flex: 0 0 auto;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--mia-heading);
}

.dash-rank-bar {
    height: 6px;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
    margin-left: 1.6rem;
}

.dash-rank-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #e62877, #f06ba8);
}

.dash-foot {
    margin-top: 0.85rem;
}

/* Portátiles / escritorio: 2 columnas, ranking fijo a la vista */
@media (min-width: 992px) {
    .dash-layout {
        grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
        gap: 1.1rem;
        align-items: start;
    }

    .dash-grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dash-grid-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .dash-grid-cat {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dash-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dash-side {
        position: sticky;
        top: 0.75rem;
    }

    .dash-panel-rank {
        max-height: calc(100vh - 7.5rem);
    }

    .dash-rank {
        max-height: none;
        flex: 1 1 auto;
        overflow: auto;
    }

    .dash-rank-name {
        white-space: normal;
    }

    .dash-rank-email {
        display: block;
        font-size: 0.7rem;
        font-weight: 400;
        color: #7a8b9c;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

/* Pantallas anchas pero bajas (portátil típico 1366×768) */
@media (min-width: 992px) and (max-height: 820px) {
    main.container-fluid {
        padding-top: 0.85rem !important;
        padding-bottom: 0.85rem !important;
    }

    .dash-hero {
        padding: 0.75rem 1rem;
        margin-bottom: 0.75rem;
    }

    .dash-hero .h4 {
        font-size: 1.15rem;
    }

    .dash-main {
        gap: 0.75rem;
    }

    .dash-kpi-n {
        font-size: 1.35rem;
    }

    .dash-kpi-h {
        display: none;
    }

    .dash-panel-rank {
        max-height: calc(100vh - 5.5rem);
    }
}

@media (min-width: 1200px) {
    .dash-layout {
        grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
    }
}

.breadcrumb a {
    text-decoration: none;
}

select.estado-rapido,
select.categoria-rapida {
    min-width: 8.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border-color: #d5deea;
}

select.categoria-rapida {
    min-width: 10.5rem;
    max-width: 12.5rem;
}

select.estado-rapido:focus,
select.categoria-rapida:focus {
    border-color: var(--mia-accent);
    box-shadow: 0 0 0 0.2rem rgba(230, 40, 119, 0.15);
}

select.estado-rapido.estado-rapido-ok,
select.categoria-rapida.categoria-rapida-ok {
    border-color: #2e7d32;
    background-color: #f1f8f2;
}

tr.estado-rapido-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gmail-flags {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.gmail-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 0.35rem;
    font-size: 0.82rem;
    line-height: 1;
}

.gmail-flag-unread {
    color: var(--mia-accent);
    background: var(--mia-accent-soft);
}

.gmail-flag-read {
    color: #6b7c8f;
    background: #f0f2f5;
}

.gmail-flag-replied {
    color: #2e7d32;
    background: #edf7ee;
}

.bandeja-col-gmail {
    white-space: nowrap;
    width: 4.25rem;
    min-width: 4.25rem;
    text-align: center;
}

/* ——— Bandeja: scroll usable en portátil ——— */
main.app-main:has(.bandeja-page) {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 56px);
    max-height: calc(100vh - 56px);
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
    overflow: hidden;
}

.bandeja-page {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    gap: 0.65rem;
}

.bandeja-top {
    flex: 0 0 auto;
}

.bandeja-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.65rem 1rem;
    margin-bottom: 0.55rem;
}

.bandeja-head-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.bandeja-filters .form-label {
    color: #6b7c8f;
}

.bandeja-filters-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem 0.65rem;
    align-items: end;
}

.bandeja-filters-extra {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem 0.65rem;
    align-items: end;
}

.bandeja-f-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding-bottom: 0.1rem;
}

.bandeja-f-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.9rem;
    align-items: center;
    padding-bottom: 0.15rem;
}

.bandeja-list {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bandeja-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.bandeja-table {
    width: max-content;
    min-width: 100%;
    margin-bottom: 0;
}

.bandeja-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #eef2f7;
    border-bottom: 1px solid #dbe3ee;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5a6b7d;
    white-space: nowrap;
    box-shadow: 0 1px 0 #dbe3ee;
}

.bandeja-table tbody td {
    vertical-align: middle;
    font-size: 0.875rem;
}

.bandeja-col-fecha {
    width: 7.5rem;
    min-width: 7.5rem;
}

.bandeja-col-rem {
    width: 11.5rem;
    min-width: 11rem;
    max-width: 13rem;
}

.bandeja-rem-name {
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bandeja-rem-mail {
    font-size: 0.72rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bandeja-col-asunto {
    min-width: 16rem;
    max-width: 28rem;
}

.bandeja-table .correo-preview {
    max-width: 26rem;
    -webkit-line-clamp: 1;
}

.bandeja-col-sla,
.bandeja-col-prio {
    white-space: nowrap;
}

.bandeja-col-estado {
    min-width: 9.5rem;
    width: 9.5rem;
}

.bandeja-col-categoria {
    min-width: 11rem;
    width: 11rem;
}

.bandeja-col-resp {
    max-width: 7.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bandeja-col-acc {
    position: sticky;
    right: 0;
    z-index: 2;
    background: #fff;
    box-shadow: -6px 0 10px rgba(13, 59, 86, 0.06);
    text-align: right;
    width: 5.5rem;
    min-width: 5.5rem;
}

.bandeja-table thead .bandeja-col-acc {
    z-index: 4;
    background: #eef2f7;
}

.bandeja-table tbody tr:hover .bandeja-col-acc {
    background: #f8f9fa;
}

.bandeja-pager {
    flex: 0 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.85rem;
    border-top: 1px solid #e6ebf2;
    background: #fff;
}

@media (min-width: 768px) {
    .bandeja-filters-main {
        grid-template-columns: minmax(10rem, 1.6fr) minmax(7.5rem, 0.8fr) minmax(7.5rem, 0.8fr) auto;
    }

    .bandeja-filters-extra {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .bandeja-col-asunto {
        max-width: 34rem;
    }

    .bandeja-table .correo-preview {
        max-width: 32rem;
    }
}

@media (max-height: 820px) {
    .bandeja-table .correo-preview {
        display: none;
    }
}

/* ——— Login corporativo ——— */
.auth-main {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.auth-stage {
    width: min(920px, 100%);
}

.auth-card {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(300px, 1.08fr);
    min-height: 520px;
    border-radius: 1.35rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    text-align: center;
    background: linear-gradient(160deg, #e62877 0%, #c51e64 48%, #000910 100%);
    color: #fff;
    overflow: hidden;
}

.auth-brand::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

.auth-logo-link {
    position: relative;
    z-index: 1;
    line-height: 0;
}

.auth-logo {
    width: min(200px, 80%);
    height: auto;
    object-fit: contain;
}

.auth-brand h1 {
    position: relative;
    z-index: 1;
    margin: 1rem 0 0.25rem;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.auth-brand p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.5rem 2rem;
}

.auth-panel h2 {
    margin: 0 0 0.25rem;
    font-size: 1.45rem;
    font-weight: 700;
    color: #10161d;
}

.auth-lead {
    margin: 0 0 1.5rem;
    font-size: 0.85rem;
    color: #747b84;
}

.auth-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mia-accent);
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap > i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--mia-accent);
    opacity: 0.85;
    pointer-events: none;
    z-index: 2;
}

.auth-input-wrap .form-control {
    padding-left: 2.5rem;
    min-height: 48px;
    border-radius: 0.75rem;
    border: 1.5px solid #d8dce6;
    background: #f4f5f9;
}

.auth-input-wrap .form-control:focus {
    background: #fff;
}

.auth-submit {
    min-height: 48px;
    font-weight: 700;
    border-radius: 0.75rem;
    border: none;
    box-shadow: 0 8px 28px rgba(230, 40, 119, 0.35);
}

.auth-intranet a {
    color: var(--mia-accent);
    text-decoration: none;
    font-weight: 500;
}

.auth-intranet a:hover {
    text-decoration: underline;
}

.auth-copy {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
}

.auth-config-warn {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 767.98px) {
    .auth-card {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .auth-brand {
        min-height: 200px;
        padding: 2rem 1.5rem 1.5rem;
    }

    .auth-panel {
        padding: 1.75rem 1.5rem 2rem;
    }

    .navbar-app-name {
        display: none;
    }

    .navbar-logo {
        height: 34px;
        max-width: 120px;
    }
}
