.d_box_shadow {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 6px 20px rgba(0, 0, 0, 0.1);
}

.cri_box_shadow {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 1.0);
}

/* ------------------------------------------------------------------ */
/* EmploySmart / CRI Group auth — UI/UX Directive v1.0                  */
/* ------------------------------------------------------------------ */

.cri-auth-page {
    background-color: #0f243d;
    min-height: 100vh;
}

.cri-auth-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.cri-auth-main {
    min-height: 0;
    flex: 1 1 auto;
}

/* Left intelligence panel */
.cri-auth-brand {
    position: relative;
    background: linear-gradient(155deg, #0a1a2e 0%, #0f243d 42%, #1b3a5c 100%);
    color: #ffffff;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    flex: 1 1 auto;
    display: flex;
}

.cri-auth-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 22%, rgba(46, 107, 164, 0.22), transparent 45%),
        radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.05), transparent 40%);
    pointer-events: none;
}

.cri-auth-brand::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 85%);
    pointer-events: none;
}

.cri-auth-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin: 0 auto;
    min-height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2rem 2.5rem;
}

.cri-auth-brand-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    background: rgba(46, 107, 164, 0.22);
    border: 1px solid rgba(125, 181, 226, 0.35);
    color: #d7e8f8;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.cri-auth-headline {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 0.75rem;
}

.cri-auth-subhead {
    color: #b9d4ec;
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    line-height: 1.55;
    font-weight: 600;
    margin: 0 0 1rem;
}

.cri-auth-lead {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
    line-height: 1.7;
    font-weight: 400;
    margin: 0 0 1.5rem;
}

.cri-auth-section-label {
    color: #8eb8dc;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.cri-auth-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.cri-auth-accreditations {
    margin-bottom: 1.5rem;
}

.cri-auth-accreditation-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cri-auth-stat-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.85rem;
    padding: 1rem 1.1rem;
    height: 100%;
}
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.85rem;
    padding: 1rem 1.1rem;
    height: 100%;
}

.cri-auth-stat-value {
    color: #ffffff;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.2;
}

.cri-auth-stat-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.cri-auth-accreditation-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.75rem;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #eef4fa;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.2;
}

.cri-auth-powered {
    margin-top: auto;
    padding-top: 1.25rem;
}

.cri-auth-logo-wrap {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 0.75rem;
}

.cri-auth-powered-logo {
    width: 100%;
    max-width: 280px;
    height: auto;
    object-fit: contain;
    filter: brightness(1.05);
}

.cri-auth-powered-text {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    line-height: 1.55;
    margin: 0;
}

.cri-auth-powered-text strong {
    color: #ffffff;
}

/* Right login panel */
.cri-auth-form-panel {
    background: #f7f9fc;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.cri-auth-card {
    max-width: 460px;
    border: 1px solid rgba(27, 58, 92, 0.1);
    box-shadow:
        0 20px 50px rgba(15, 36, 61, 0.14),
        0 6px 18px rgba(15, 36, 61, 0.08);
}

.cri-auth-form-logo {
    display: block;
    max-width: 190px;
    width: 100%;
    height: auto;
}

.cri-auth-input {
    border-color: #cfd8e3;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cri-auth-input:focus {
    border-color: #2e6ba4;
    box-shadow: 0 0 0 0.2rem rgba(46, 107, 164, 0.15);
}

.cri-auth-submit {
    background-color: #1b3a5c;
    border-color: #1b3a5c;
    font-weight: 600;
}

.cri-auth-submit:hover,
.cri-auth-submit:focus {
    background-color: #0f243d;
    border-color: #0f243d;
}

/* Footer */
.cri-auth-footer {
    background: #0a1a2e;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    padding: 1.25rem 1.5rem;
}

.cri-auth-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cri-auth-footer-brand {
    color: #ffffff;
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.cri-auth-footer-sep {
    margin: 0 0.45rem;
    color: rgba(255, 255, 255, 0.35);
}

.cri-auth-footer-legal {
    font-size: 0.8rem;
    margin-bottom: 0.35rem;
}

.cri-auth-footer-locations {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.58);
    margin-bottom: 0.65rem;
}

.cri-auth-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1rem;
}

.cri-auth-footer-links a {
    color: #8eb8dc;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}

.cri-auth-footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Portal login (Tailwind layout) */
.cri-portal-auth-root {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #0f243d;
}

.cri-portal-auth-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .cri-portal-auth-main {
        flex-direction: row;
    }

    .cri-auth-brand {
        flex: 1 1 54%;
        max-width: 54%;
    }

    .cri-auth-form-panel {
        flex: 1 1 46%;
        max-width: 46%;
    }
}

@media (max-width: 991.98px) {
    .cri-auth-brand {
        min-height: auto;
    }

    .cri-auth-powered-logo {
        max-width: 240px;
    }

    .cri-auth-card {
        max-width: 100%;
    }

    .cri-portal-auth-card {
        max-width: 100% !important;
    }
}

.cri-portal-auth-card {
    max-width: 420px;
    width: 100%;
    border: 1px solid rgba(27, 58, 92, 0.1);
    box-shadow:
        0 20px 50px rgba(15, 36, 61, 0.14),
        0 6px 18px rgba(15, 36, 61, 0.08);
}

.cri-portal-auth-card .btn-primary,
.cri-portal-auth-card .btn.btn-primary {
    background-color: #1b3a5c !important;
    border-color: #1b3a5c !important;
}

.cri-portal-auth-card .btn-primary:hover {
    background-color: #0f243d !important;
    border-color: #0f243d !important;
}

/* Executive Command Center */
.cri-exec-trust-banner {
    background: linear-gradient(135deg, #0a1a2e 0%, #1b3a5c 100%);
    border-radius: 1rem;
    color: #fff;
    padding: 1rem 1.25rem;
}

.cri-exec-trust-banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
}

.cri-exec-trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cri-exec-trust-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.cri-exec-trust-meta {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 500;
}

.cri-exec-kpi-card {
    display: block;
    height: 100%;
    padding: 1.25rem 1.35rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(27, 58, 92, 0.08);
    box-shadow: 0 8px 24px rgba(15, 36, 61, 0.06);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cri-exec-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 36, 61, 0.1);
}

.cri-exec-kpi-label {
    color: #5e6278;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cri-exec-kpi-value {
    color: #181c32;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.cri-exec-kpi-delta {
    margin-top: 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.cri-exec-kpi-delta-up {
    color: #50cd89;
}

.cri-exec-kpi-delta-down {
    color: #f1416c;
}

.cri-exec-kpi-primary .cri-exec-kpi-value { color: #1b3a5c; }
.cri-exec-kpi-success .cri-exec-kpi-value { color: #50cd89; }
.cri-exec-kpi-warning .cri-exec-kpi-value { color: #ffc700; }
.cri-exec-kpi-danger .cri-exec-kpi-value { color: #f1416c; }
.cri-exec-kpi-info .cri-exec-kpi-value { color: #009ef7; }

.cri-exec-toolbar {
    padding: 0.25rem 0;
}

.cri-exec-range-filter {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: #f5f8fa;
    border: 1px solid rgba(27, 58, 92, 0.08);
}

.cri-exec-range-btn {
    border: 0;
    background: transparent;
    color: #5e6278;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.cri-exec-range-btn.active,
.cri-exec-range-btn:hover {
    background: #1b3a5c;
    color: #fff;
}

.cri-exec-panel {
    border: 1px solid rgba(27, 58, 92, 0.08);
    box-shadow: 0 8px 24px rgba(15, 36, 61, 0.05);
}

.cri-exec-feed-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(227, 230, 240, 0.9);
    text-decoration: none;
    transition: background 0.15s ease;
}

.cri-exec-feed-item:last-child {
    border-bottom: 0;
}

.cri-exec-feed-item:hover {
    background: rgba(245, 248, 250, 0.7);
}

.cri-exec-feed-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cri-exec-feed-danger .cri-exec-feed-icon {
    background: rgba(241, 65, 108, 0.12);
    color: #f1416c;
}

.cri-exec-feed-warning .cri-exec-feed-icon {
    background: rgba(255, 199, 0, 0.16);
    color: #b78103;
}

.cri-exec-feed-info .cri-exec-feed-icon {
    background: rgba(0, 158, 247, 0.12);
    color: #009ef7;
}

.cri-exec-sla-gauge-wrap {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0 0.25rem;
}

.cri-exec-sla-gauge {
    --gauge-value: 100;
    width: 9.5rem;
    height: 9.5rem;
    border-radius: 50%;
    background: conic-gradient(
        currentColor calc(var(--gauge-value) * 1%),
        #eef2f7 0
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cri-exec-sla-gauge-success { color: #50cd89; }
.cri-exec-sla-gauge-warning { color: #ffc700; }
.cri-exec-sla-gauge-danger { color: #f1416c; }

.cri-exec-sla-gauge-inner {
    width: 7.2rem;
    height: 7.2rem;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(27, 58, 92, 0.06);
}

.cri-exec-sla-gauge-value {
    font-size: 1.45rem;
    font-weight: 700;
    color: #181c32;
    line-height: 1.1;
}

.cri-exec-sla-gauge-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #7e8299;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cri-exec-risk-tile {
    height: 100%;
    padding: 1rem 1.1rem;
    border-radius: 0.85rem;
    background: #fff;
    border: 1px solid rgba(27, 58, 92, 0.08);
}

.cri-exec-risk-count {
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.1;
}

.cri-exec-risk-label {
    margin-top: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #5e6278;
}

.cri-exec-risk-danger .cri-exec-risk-count { color: #f1416c; }
.cri-exec-risk-warning .cri-exec-risk-count { color: #b78103; }
.cri-exec-risk-info .cri-exec-risk-count { color: #009ef7; }

.cri-exec-team-tabs {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.25rem;
    border-radius: 0.65rem;
    background: #f5f8fa;
}

.cri-exec-team-tab {
    border: 0;
    background: transparent;
    color: #5e6278;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 0.5rem;
}

.cri-exec-team-tab.active,
.cri-exec-team-tab:hover {
    background: #fff;
    color: #1b3a5c;
    box-shadow: 0 2px 8px rgba(15, 36, 61, 0.08);
}

.cri-exec-table thead th {
    border-bottom-width: 1px;
}
