:root {
    --color-primary: #1e88e5;
    --color-primary-dark: #0d47a1;
    --color-primary-soft: #eaf4ff;
    --color-sky: #38bdf8;
    --color-bg: #f5f8fc;
    --color-card: #ffffff;
    --color-text: #102a43;
    --color-muted: #64748b;
    --color-border: #dbe7f3;
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --shadow-soft: 0 16px 40px rgba(30, 64, 175, 0.08);
    --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.08);
    --radius-lg: 22px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --sidebar-width: 280px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.25), transparent 35%),
        linear-gradient(135deg, #eef7ff 0%, #ffffff 45%, #edf6ff 100%);
}

.auth-wrapper {
    width: min(1180px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    place-items: center;
    padding: 32px 0;
}

.auth-panel {
    width: 100%;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    align-items: stretch;
}

.auth-visual {
    position: relative;
    min-height: 620px;
    padding: 42px;
    border-radius: 34px;
    overflow: hidden;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(13, 71, 161, 0.95), rgba(30, 136, 229, 0.88)),
        url("data:image/svg+xml,%3Csvg width='900' height='700' viewBox='0 0 900 700' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.14'%3E%3Cpath d='M90 120h720M90 240h720M90 360h720M90 480h720M90 600h720M180 40v620M360 40v620M540 40v620M720 40v620'/%3E%3C/g%3E%3C/svg%3E");
    box-shadow: var(--shadow-soft);
}

.logo-box {
    display: inline-flex;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(16px);
}

.logo-symbol {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    font-weight: 900;
    letter-spacing: -1px;
    background: #ffffff;
    color: var(--color-primary);
}

.logo-box span {
    display: block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-copy {
    max-width: 620px;
    margin-top: 120px;
}

.auth-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(34px, 4vw, 58px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.auth-copy p {
    max-width: 540px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.7;
}

.auth-glass-card {
    position: absolute;
    left: 42px;
    right: 42px;
    bottom: 42px;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.13);
    backdrop-filter: blur(20px);
}

.auth-glass-card strong {
    display: block;
    font-size: 28px;
}

.auth-glass-card span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.75);
}

.auth-card {
    padding: 34px;
    border: 1px solid rgba(219, 231, 243, 0.95);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.install-card {
    max-width: 520px;
    width: 100%;
}

.auth-brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 28px;
}

.brand-mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    font-weight: 900;
    font-size: 22px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-sky));
    box-shadow: 0 14px 30px rgba(30, 136, 229, 0.28);
}

.auth-brand h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -0.035em;
}

.auth-brand p {
    margin: 4px 0 0;
    color: var(--color-muted);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #294461;
    font-size: 14px;
    font-weight: 700;
}

.form-group input {
    width: 100%;
    height: 50px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    border-radius: 15px;
    outline: none;
    color: var(--color-text);
    background: #ffffff;
    transition: 0.2s ease;
}

.form-group input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.12);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 20px;
    border: 0;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, var(--color-primary), #24a8ff);
    box-shadow: 0 16px 32px rgba(30, 136, 229, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 36px rgba(30, 136, 229, 0.34);
}

.full-width {
    width: 100%;
}

.alert {
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-danger {
    color: #991b1b;
    background: #fee2e2;
    border: 1px solid #fecaca;
}

.alert-success {
    color: #065f46;
    background: #d1fae5;
    border: 1px solid #a7f3d0;
}

.alert-warning {
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
}

.security-warning {
    padding: 16px;
    margin-bottom: 18px;
    border-radius: 16px;
    color: #92400e;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    color: var(--color-muted);
    font-size: 13px;
}

.app-body {
    display: flex;
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.16), transparent 32%),
        var(--color-bg);
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    padding: 22px;
    border-right: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    overflow-y: auto;
}

.sidebar-brand {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 10px 6px 28px;
}

.afi-logo {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary), var(--color-sky));
    box-shadow: 0 14px 28px rgba(30, 136, 229, 0.25);
}

.sidebar-brand strong {
    display: block;
    font-size: 24px;
    letter-spacing: -0.045em;
}

.sidebar-brand strong span {
    color: var(--color-primary);
}

.sidebar-brand small {
    display: block;
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 13px;
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.sidebar-nav a {
    display: flex;
    gap: 14px;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 16px;
    color: #335675;
    font-weight: 700;
    transition: 0.2s ease;
}

.sidebar-nav a span {
    width: 24px;
    text-align: center;
}

.sidebar-nav a:hover {
    color: var(--color-primary);
    background: var(--color-primary-soft);
}

.sidebar-nav a.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--color-primary), #27a9ff);
    box-shadow: 0 14px 30px rgba(30, 136, 229, 0.26);
}

.sidebar-card {
    margin-top: 34px;
    padding: 24px;
    min-height: 220px;
    border: 1px solid var(--color-border);
    border-radius: 24px;
    background:
        radial-gradient(circle at top right, rgba(56, 189, 248, 0.22), transparent 42%),
        #ffffff;
    box-shadow: var(--shadow-card);
}

.sidebar-card strong {
    display: block;
    font-size: 20px;
    color: var(--color-primary);
}

.sidebar-card p {
    margin: 8px 0 24px;
    color: var(--color-muted);
    line-height: 1.5;
}

.book-illustration {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    border-radius: 26px;
    color: #ffffff;
    font-size: 44px;
    transform: rotate(-12deg);
    background: linear-gradient(135deg, #62c9ff, var(--color-primary));
    box-shadow: 0 18px 34px rgba(30, 136, 229, 0.28);
}

.main-content {
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    padding: 24px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.topbar small {
    color: var(--color-primary);
    font-weight: 700;
}

.topbar h1 {
    margin: 4px 0 0;
    font-size: 24px;
    letter-spacing: -0.035em;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    width: 420px;
    height: 54px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--color-muted);
}

.search-box span {
    color: var(--color-primary);
    font-size: 22px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.avatar {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary), var(--color-sky));
}

.user-menu strong,
.user-menu small {
    display: block;
}

.user-menu strong {
    font-size: 14px;
}

.user-menu small {
    color: var(--color-muted);
    font-size: 12px;
}

.logout-link {
    padding: 8px 10px;
    border-radius: 12px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 800;
    background: var(--color-primary-soft);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}

.kpi-card {
    display: flex;
    gap: 16px;
    align-items: center;
    min-height: 132px;
    padding: 22px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-card);
    box-shadow: var(--shadow-card);
}

.kpi-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: var(--color-primary);
    font-size: 26px;
    background: var(--color-primary-soft);
}

.kpi-card span {
    display: block;
    color: var(--color-muted);
    font-size: 14px;
    font-weight: 700;
}

.kpi-card strong {
    display: block;
    margin-top: 4px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.kpi-card small {
    display: block;
    margin-top: 8px;
    color: var(--color-muted);
}

.positive {
    color: var(--color-success) !important;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.95fr;
    gap: 18px;
    margin-bottom: 18px;
}

.panel-card {
    padding: 22px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-card);
    box-shadow: var(--shadow-card);
}

.panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.panel-header h2 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -0.035em;
}

.panel-header p {
    margin: 5px 0 0;
    color: var(--color-muted);
}

.badge-soft {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 800;
    background: var(--color-primary-soft);
}

.timeline {
    display: grid;
    gap: 18px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 14px;
    align-items: start;
}

.timeline-item > span {
    width: 16px;
    height: 16px;
    margin-top: 4px;
    border-radius: 50%;
    border: 4px solid var(--color-primary-soft);
    background: var(--color-primary);
}

.timeline-item.pending > span {
    background: var(--color-warning);
}

.timeline-item strong {
    display: block;
    font-size: 15px;
}

.timeline-item p {
    margin: 4px 0 0;
    color: var(--color-muted);
    line-height: 1.5;
}

.activity-list {
    display: grid;
    gap: 14px;
}

.activity-item {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf2f7;
}

.activity-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-primary), var(--color-sky));
}

.activity-item strong {
    display: block;
    font-size: 14px;
}

.activity-item p {
    margin: 4px 0 0;
    color: var(--color-muted);
    font-size: 13px;
}

.activity-item small {
    color: var(--color-muted);
    font-size: 12px;
}

.empty-state {
    padding: 24px;
    border-radius: 18px;
    text-align: center;
    background: #f8fbff;
    border: 1px dashed var(--color-border);
}

.empty-state strong {
    display: block;
}

.empty-state p {
    margin: 8px 0 0;
    color: var(--color-muted);
}

.module-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.module-pill {
    padding: 12px 16px;
    border-radius: 999px;
    color: #285276;
    font-weight: 800;
    background: #f0f7ff;
    border: 1px solid #d8ebff;
}

code {
    padding: 2px 6px;
    border-radius: 8px;
    background: #eef2ff;
}

@media (max-width: 1180px) {
    .kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .search-box {
        display: none;
    }
}

@media (max-width: 860px) {
    .auth-panel {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        display: none;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
    }

    .app-body {
        display: block;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
    }

    .topbar,
    .topbar-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   SIGEE PRO - DASHBOARD PREMIUM LIGHT THEME
   ========================================================= */

.sigee-dashboard-pro {
    --pro-sidebar: 292px;
    --pro-blue: #1e88e5;
    --pro-blue-dark: #0b3f91;
    --pro-cyan: #22c7ff;
    --pro-bg: #f4f8fd;
    --pro-card: rgba(255, 255, 255, 0.92);
    --pro-border: rgba(189, 213, 238, 0.72);
    --pro-text: #102a43;
    --pro-muted: #667b95;
    --pro-shadow: 0 22px 48px rgba(17, 54, 94, 0.08);
    --pro-shadow-soft: 0 14px 30px rgba(30, 136, 229, 0.10);

    min-height: 100vh;
    color: var(--pro-text);
    background:
        radial-gradient(circle at 82% 8%, rgba(56, 189, 248, 0.20), transparent 32%),
        radial-gradient(circle at 8% 4%, rgba(30, 136, 229, 0.12), transparent 28%),
        linear-gradient(180deg, #f8fbff 0%, #eef5fc 100%);
}

.pro-sidebar {
    position: fixed;
    inset: 14px auto 14px 14px;
    width: calc(var(--pro-sidebar) - 28px);
    padding: 22px 18px;
    border: 1px solid rgba(214, 229, 245, 0.95);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--pro-shadow);
    backdrop-filter: blur(22px);
    overflow-y: auto;
}

.pro-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 4px 4px 24px;
}

.pro-brand-logo {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background:
        linear-gradient(135deg, #0b6fe8 0%, #28c7ff 55%, #6fdcff 100%);
    box-shadow: 0 18px 34px rgba(30, 136, 229, 0.28);
}

.pro-brand-logo span {
    color: #ffffff;
    font-weight: 950;
    letter-spacing: -0.08em;
}

.pro-brand strong {
    display: block;
    font-size: 25px;
    line-height: 1;
    letter-spacing: -0.055em;
}

.pro-brand strong b {
    color: var(--pro-blue);
}

.pro-brand small {
    display: block;
    margin-top: 7px;
    color: var(--pro-muted);
    font-size: 12px;
    font-weight: 600;
}

.pro-menu {
    display: grid;
    gap: 7px;
}

.pro-menu a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 17px;
    color: #385a7b;
    font-size: 15px;
    font-weight: 800;
    transition: 0.22s ease;
}

.pro-menu a:hover {
    color: var(--pro-blue);
    background: rgba(30, 136, 229, 0.08);
    transform: translateX(2px);
}

.pro-menu a.active {
    color: #ffffff;
    background:
        linear-gradient(135deg, #1e88e5 0%, #28b6ff 100%);
    box-shadow: 0 16px 32px rgba(30, 136, 229, 0.26);
}

.menu-icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.menu-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pro-sidebar-card {
    position: relative;
    margin-top: 26px;
    padding: 20px;
    min-height: 210px;
    overflow: hidden;
    border: 1px solid rgba(190, 218, 248, 0.9);
    border-radius: 24px;
    background:
        radial-gradient(circle at 80% 18%, rgba(34, 199, 255, 0.28), transparent 28%),
        linear-gradient(145deg, #ffffff 0%, #eef8ff 100%);
    box-shadow: 0 18px 38px rgba(30, 136, 229, 0.10);
}

.pro-sidebar-card::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -82px;
    bottom: -92px;
    border-radius: 50%;
    background: rgba(30, 136, 229, 0.13);
}

.card-tag {
    display: inline-flex;
    padding: 6px 10px;
    margin-bottom: 12px;
    border-radius: 999px;
    color: var(--pro-blue);
    font-size: 12px;
    font-weight: 900;
    background: rgba(30, 136, 229, 0.10);
}

.pro-sidebar-card strong {
    position: relative;
    z-index: 1;
    display: block;
    color: #15324f;
    font-size: 17px;
    line-height: 1.3;
}

.pro-sidebar-card p {
    position: relative;
    z-index: 1;
    margin: 8px 0 18px;
    color: var(--pro-muted);
    font-size: 13px;
    line-height: 1.55;
}

.mini-illustration {
    position: relative;
    z-index: 1;
    width: 82px;
    height: 58px;
    margin-left: auto;
    border-radius: 18px;
    background: linear-gradient(135deg, #1e88e5, #38bdf8);
    transform: rotate(-8deg);
    box-shadow: 0 18px 30px rgba(30, 136, 229, 0.22);
}

.mini-illustration span {
    position: absolute;
    width: 46px;
    height: 10px;
    left: 18px;
    bottom: -10px;
    border-radius: 999px;
    background: #bcecff;
}

.pro-main {
    width: calc(100% - var(--pro-sidebar));
    margin-left: var(--pro-sidebar);
    padding: 22px 24px 28px 4px;
}

.pro-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
    padding: 6px 0;
}

.institution-title span {
    display: block;
    color: var(--pro-blue);
    font-size: 13px;
    font-weight: 900;
}

.institution-title h1 {
    margin: 4px 0 0;
    color: #112c49;
    font-size: 23px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.pro-topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.pro-search {
    width: min(430px, 38vw);
    height: 54px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 17px;
    border: 1px solid var(--pro-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 12px 26px rgba(17, 54, 94, 0.05);
    backdrop-filter: blur(18px);
}

.pro-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--pro-text);
    background: transparent;
}

.pro-search svg,
.pro-notification svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #385a7b;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pro-notification {
    position: relative;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border: 1px solid var(--pro-border);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 26px rgba(17, 54, 94, 0.05);
}

.pro-notification span {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 21px;
    height: 21px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    background: #ef3b7d;
    box-shadow: 0 8px 16px rgba(239, 59, 125, 0.26);
}

.pro-user {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    padding: 7px 9px 7px 7px;
    border: 1px solid var(--pro-border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 12px 26px rgba(17, 54, 94, 0.05);
}

.pro-avatar {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 950;
    background: linear-gradient(135deg, #0b6fe8, #22c7ff);
}

.pro-user strong,
.pro-user small {
    display: block;
}

.pro-user strong {
    max-width: 150px;
    overflow: hidden;
    color: #102a43;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pro-user small {
    color: var(--pro-muted);
    font-size: 12px;
}

.pro-user a {
    padding: 8px 10px;
    border-radius: 12px;
    color: var(--pro-blue);
    font-size: 12px;
    font-weight: 900;
    background: rgba(30, 136, 229, 0.10);
}

.pro-hero {
    display: grid;
    grid-template-columns: 1fr 330px;
    gap: 20px;
    margin-bottom: 18px;
    padding: 28px;
    border: 1px solid rgba(190, 218, 248, 0.86);
    border-radius: 30px;
    background:
        radial-gradient(circle at 82% 22%, rgba(56, 189, 248, 0.30), transparent 26%),
        linear-gradient(135deg, rgba(255,255,255,0.95), rgba(234,247,255,0.92));
    box-shadow: var(--pro-shadow);
    overflow: hidden;
}

.hero-kicker {
    display: inline-flex;
    padding: 7px 11px;
    margin-bottom: 12px;
    border-radius: 999px;
    color: var(--pro-blue);
    font-size: 12px;
    font-weight: 950;
    background: rgba(30, 136, 229, 0.10);
}

.hero-content h2 {
    margin: 0;
    color: #102a43;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 780px;
    margin: 12px 0 0;
    color: var(--pro-muted);
    font-size: 15px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hero-btn {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 950;
}

.hero-btn.primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--pro-blue), #24baff);
    box-shadow: 0 16px 28px rgba(30, 136, 229, 0.25);
}

.hero-btn.secondary {
    color: #28506f;
    background: #ffffff;
    border: 1px solid var(--pro-border);
}

.hero-status {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    align-items: center;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(206, 226, 247, 0.88);
}

.status-ring {
    width: 134px;
    height: 134px;
    display: grid;
    place-items: center;
    text-align: center;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, #ffffff 0 56%, transparent 57%),
        conic-gradient(#1e88e5 0 100%, #dcecff 0);
    box-shadow: inset 0 0 0 1px rgba(30, 136, 229, 0.10);
}

.status-ring strong {
    display: block;
    margin-top: 12px;
    font-size: 28px;
    letter-spacing: -0.05em;
}

.status-ring span {
    display: block;
    margin-top: -28px;
    color: var(--pro-muted);
    font-size: 12px;
    font-weight: 800;
}

.status-list {
    display: grid;
    gap: 10px;
}

.status-list div {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #315371;
    font-size: 13px;
    font-weight: 800;
}

.status-list span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.12);
}

.pro-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.pro-kpi-card {
    min-height: 178px;
    padding: 20px;
    border: 1px solid rgba(203, 224, 246, 0.95);
    border-radius: 26px;
    background: var(--pro-card);
    box-shadow: var(--pro-shadow-soft);
    backdrop-filter: blur(20px);
    transition: 0.22s ease;
}

.pro-kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 26px 48px rgba(30, 136, 229, 0.13);
}

.kpi-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.kpi-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
}

.kpi-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.kpi-icon.blue {
    color: #1e88e5;
    background: rgba(30, 136, 229, 0.10);
}

.kpi-icon.cyan {
    color: #0891b2;
    background: rgba(34, 199, 255, 0.13);
}

.kpi-icon.navy {
    color: #0b3f91;
    background: rgba(11, 63, 145, 0.10);
}

.kpi-icon.green {
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
}

.kpi-trend {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 950;
}

.kpi-trend.up {
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
}

.kpi-trend.neutral {
    color: #2563eb;
    background: rgba(37, 99, 235, 0.10);
}

.pro-kpi-card small {
    display: block;
    color: var(--pro-muted);
    font-size: 13px;
    font-weight: 850;
}

.pro-kpi-card strong {
    display: block;
    margin-top: 6px;
    color: #102a43;
    font-size: 34px;
    line-height: 1;
    letter-spacing: -0.06em;
}

.pro-kpi-card p {
    margin: 10px 0 0;
    color: var(--pro-muted);
    font-size: 13px;
    line-height: 1.5;
}

.pro-content-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr;
    gap: 16px;
    margin-bottom: 18px;
}

.pro-panel {
    padding: 22px;
    border: 1px solid rgba(203, 224, 246, 0.95);
    border-radius: 28px;
    background: var(--pro-card);
    box-shadow: var(--pro-shadow-soft);
    backdrop-filter: blur(20px);
}

.pro-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.pro-panel-header span {
    display: block;
    margin-bottom: 5px;
    color: var(--pro-blue);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pro-panel-header h3 {
    margin: 0;
    color: #102a43;
    font-size: 21px;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.pro-panel-header strong {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--pro-blue);
    font-size: 12px;
    background: rgba(30, 136, 229, 0.10);
}

.implementation-list {
    display: grid;
    gap: 12px;
}

.implementation-item {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    align-items: center;
    padding: 15px;
    border: 1px solid rgba(218, 232, 247, 0.86);
    border-radius: 20px;
    background: rgba(248, 251, 255, 0.76);
}

.implementation-item.completed {
    background: rgba(240, 253, 250, 0.72);
}

.implementation-item.current {
    border-color: rgba(30, 136, 229, 0.34);
    background: rgba(239, 246, 255, 0.82);
}

.step-number {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
    background: linear-gradient(135deg, #1e88e5, #22c7ff);
}

.implementation-item strong {
    display: block;
    color: #183653;
    font-size: 15px;
}

.implementation-item p {
    margin: 4px 0 0;
    color: var(--pro-muted);
    font-size: 13px;
    line-height: 1.5;
}

.pro-activity-list {
    display: grid;
    gap: 12px;
}

.pro-activity-item {
    display: grid;
    grid-template-columns: 14px 1fr auto;
    gap: 12px;
    align-items: start;
    padding-bottom: 13px;
    border-bottom: 1px solid rgba(221, 234, 248, 0.85);
}

.activity-dot {
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--pro-blue);
    box-shadow: 0 0 0 5px rgba(30, 136, 229, 0.10);
}

.pro-activity-item strong {
    display: block;
    color: #173554;
    font-size: 14px;
}

.pro-activity-item p {
    margin: 4px 0 0;
    color: var(--pro-muted);
    font-size: 13px;
    line-height: 1.45;
}

.pro-activity-item small {
    color: var(--pro-muted);
    font-size: 12px;
    white-space: nowrap;
}

.pro-empty {
    padding: 24px;
    border: 1px dashed rgba(30, 136, 229, 0.26);
    border-radius: 20px;
    text-align: center;
    background: rgba(239, 246, 255, 0.70);
}

.pro-empty p {
    margin: 8px 0 0;
    color: var(--pro-muted);
}

.pro-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.pro-module-card {
    min-height: 118px;
    padding: 18px;
    border: 1px solid rgba(211, 228, 245, 0.94);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(34, 199, 255, 0.16), transparent 32%),
        rgba(255, 255, 255, 0.76);
    transition: 0.22s ease;
}

.pro-module-card:hover {
    transform: translateY(-2px);
    border-color: rgba(30, 136, 229, 0.35);
    box-shadow: 0 18px 34px rgba(30, 136, 229, 0.10);
}

.pro-module-card strong {
    display: block;
    color: #15324f;
    font-size: 15px;
}

.pro-module-card p {
    margin: 8px 0 0;
    color: var(--pro-muted);
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 1240px) {
    .pro-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pro-hero,
    .pro-content-grid {
        grid-template-columns: 1fr;
    }

    .pro-search {
        display: none;
    }

    .pro-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .pro-sidebar {
        position: static;
        width: auto;
        margin: 12px;
        inset: auto;
    }

    .pro-main {
        width: 100%;
        margin-left: 0;
        padding: 12px;
    }

    .pro-topbar,
    .pro-topbar-right {
        align-items: stretch;
        flex-direction: column;
    }

    .pro-user {
        justify-content: space-between;
    }

    .pro-kpi-grid,
    .pro-module-grid {
        grid-template-columns: 1fr;
    }

    .hero-status {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   SIGEE PRO - LOGIN PREMIUM + FOOTER COLOMBIA / AFI
   ========================================================= */

.login-screen-pro.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 8% 8%, rgba(56, 189, 248, 0.14), transparent 24%),
        radial-gradient(circle at 92% 12%, rgba(30, 136, 229, 0.12), transparent 30%),
        linear-gradient(180deg, #eef7ff 0%, #f8fbff 100%);
}

.login-wrapper-pro {
    width: min(1220px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 28px 0 22px;
}

.login-layout-pro {
    display: grid;
    grid-template-columns: 1.28fr 0.92fr;
    gap: 22px;
    align-items: stretch;
}

.login-left-pro {
    position: relative;
    min-height: 640px;
    padding: 36px 38px;
    border-radius: 36px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 88% 20%, rgba(255, 255, 255, 0.12), transparent 26%),
        linear-gradient(135deg, #1a57b4 0%, #2a74cb 45%, #4298ed 100%);
    box-shadow: 0 28px 54px rgba(24, 87, 180, 0.18);
}

.login-left-pro::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(0deg, rgba(255,255,255,0.04), rgba(255,255,255,0.00));
    pointer-events: none;
}

.login-brand-chip {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
}

.login-brand-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #2a6fcb;
    font-size: 18px;
    font-weight: 950;
    background: #ffffff;
}

.login-brand-text strong {
    display: block;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.04em;
}

.login-brand-text span {
    display: block;
    margin-top: 4px;
    color: rgba(255,255,255,0.72);
    font-size: 12px;
}

.login-copy-pro {
    position: relative;
    z-index: 1;
    max-width: 560px;
    margin-top: 112px;
}

.login-kicker {
    display: inline-flex;
    padding: 8px 14px;
    margin-bottom: 16px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
}

.login-copy-pro h1 {
    margin: 0;
    font-size: clamp(46px, 5vw, 66px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

.login-copy-pro p {
    max-width: 520px;
    margin: 18px 0 0;
    color: rgba(255,255,255,0.86);
    font-size: 18px;
    line-height: 1.7;
}

.login-highlight-card {
    position: absolute;
    left: 38px;
    right: 38px;
    bottom: 36px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px 22px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(18px);
}

.login-highlight-card strong {
    display: block;
    font-size: 20px;
    font-weight: 900;
}

.login-highlight-card span {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,0.78);
    font-size: 14px;
}

.login-highlight-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(255,255,255,0.18);
    white-space: nowrap;
}

.login-right-pro {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card-pro {
    width: 100%;
    max-width: 442px;
    padding: 34px 30px 24px;
    border: 1px solid rgba(214, 229, 245, 0.95);
    border-radius: 30px;
    background: rgba(255,255,255,0.88);
    box-shadow: 0 22px 48px rgba(17, 54, 94, 0.08);
    backdrop-filter: blur(18px);
}

.login-auth-brand {
    margin-bottom: 26px;
}

.login-form-pro .form-group {
    margin-bottom: 18px;
}

.login-form-pro .form-group label {
    font-size: 14px;
    font-weight: 800;
    color: #294461;
}

.login-form-pro .form-group input {
    height: 56px;
    border-radius: 16px;
    background: #edf4fd;
    border: 1px solid #d9e7f6;
}

.login-form-pro .form-group input:focus {
    background: #ffffff;
    border-color: #2a84e6;
    box-shadow: 0 0 0 4px rgba(42, 132, 230, 0.12);
}

.login-btn-pro {
    min-height: 54px;
    margin-top: 4px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 900;
    background: linear-gradient(135deg, #2588e4 0%, #2daeff 100%);
    box-shadow: 0 20px 34px rgba(37, 136, 228, 0.22);
}

.login-btn-pro:hover {
    box-shadow: 0 24px 38px rgba(37, 136, 228, 0.28);
}

.login-auth-footer {
    margin-top: 22px;
    text-align: center;
    color: #6b7f95;
    font-size: 13px;
}

.auth-page-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
    padding: 14px 8px 0;
    color: #526b85;
    font-size: 13px;
    font-weight: 700;
}

.auth-page-footer-left,
.auth-page-footer-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-flag-icon {
    width: 24px;
    height: 16px;
    display: inline-flex;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.12);
    flex: 0 0 auto;
}

.footer-flag-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

@media (max-width: 980px) {
    .login-layout-pro {
        grid-template-columns: 1fr;
    }

    .login-left-pro {
        min-height: 520px;
    }

    .login-copy-pro {
        margin-top: 72px;
    }

    .login-copy-pro h1 {
        font-size: clamp(38px, 8vw, 56px);
    }

    .login-highlight-card {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        margin-top: 26px;
    }
}

@media (max-width: 720px) {
    .login-wrapper-pro {
        width: min(100%, calc(100% - 20px));
        padding: 16px 0 18px;
    }

    .login-left-pro,
    .login-card-pro {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .login-brand-chip {
        width: 100%;
    }

    .login-copy-pro {
        margin-top: 44px;
    }

    .login-copy-pro p {
        font-size: 15px;
    }

    .login-highlight-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-page-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 14px 4px 0;
    }
}

/* =========================================================
   LOGIN SIGEE PRO - LOGO FIJO SIGEE + LOGO INSTITUCIONAL
   ========================================================= */

.login-left-pro {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
}

.login-brand-sigee {
    width: fit-content !important;
    max-width: 100% !important;
}

.login-brand-logo-fixed {
    overflow: hidden !important;
}

.login-brand-logo-fixed img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

.login-brand-logo-fixed span {
    color: #2a6fcb !important;
    font-weight: 950 !important;
}

.login-copy-pro {
    margin-top: 112px !important;
    margin-bottom: 0 !important;
}

.login-highlight-card {
    display: none !important;
}

.institution-login-logo {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    margin-bottom: 28px !important;
}

.institution-login-logo img {
    width: 58px !important;
    height: 58px !important;
    object-fit: contain !important;
    display: block !important;
    padding: 6px !important;
    border-radius: 18px !important;
    background: #ffffff !important;
    border: 1px solid #dbe7f3 !important;
    box-shadow: 0 12px 24px rgba(17, 54, 94, 0.08) !important;
}

.institution-logo-fallback {
    width: 58px !important;
    height: 58px !important;
    display: grid !important;
    place-items: center !important;
    flex: 0 0 auto !important;
    border-radius: 18px !important;
    color: #ffffff !important;
    font-size: 24px !important;
    font-weight: 950 !important;
    background: linear-gradient(135deg, #2588e4 0%, #2daeff 100%) !important;
    box-shadow: 0 16px 30px rgba(37, 136, 228, 0.22) !important;
}

.institution-login-logo h1 {
    margin: 0 !important;
    color: #102a43 !important;
    font-size: 27px !important;
    line-height: 1.1 !important;
    letter-spacing: -0.04em !important;
}

.institution-login-logo p {
    margin: 5px 0 0 !important;
    color: #64748b !important;
    font-size: 14px !important;
}

@media (max-width: 980px) {
    .login-copy-pro {
        margin-top: 72px !important;
    }
}

@media (max-width: 720px) {
    .login-copy-pro {
        margin-top: 44px !important;
    }

    .institution-login-logo {
        align-items: flex-start !important;
    }

    .institution-login-logo h1 {
        font-size: 23px !important;
    }
}