:root {
    --navy-950: #050d1c;
    --navy-900: #071426;
    --navy-850: #0b1930;
    --navy-800: #10223d;

    --blue-700: #155bd7;
    --blue-600: #1e6ee8;
    --blue-500: #2588f4;
    --cyan-400: #23c8f4;

    --text-main: #0f172a;
    --text-soft: #64748b;
    --text-light: #94a3b8;

    --border: #e2e8f0;
    --surface: #ffffff;
    --background: #f5f8fc;

    --success: #0f9f6e;

    --radius-lg: 22px;
    --radius-md: 15px;
    --radius-sm: 10px;

    --shadow:
        0 18px 48px rgba(15, 23, 42, .08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family:
        "Inter",
        "Segoe UI",
        Arial,
        sans-serif;

    background: var(--background);
    color: var(--text-main);
}


/* LOGIN */

.login-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns:
        minmax(420px, 1.08fr)
        minmax(420px, .92fr);
}

.login-brand {
    position: relative;
    display: flex;
    align-items: center;
    padding: 70px;

    background:
        radial-gradient(
            circle at 72% 20%,
            rgba(35, 200, 244, .18),
            transparent 28%
        ),
        radial-gradient(
            circle at 15% 88%,
            rgba(30, 110, 232, .22),
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #071426 0%,
            #07101f 50%,
            #06152d 100%
        );

    color: #ffffff;
}

.login-brand-content {
    max-width: 650px;
}

.brand-mark-large {
    width: 78px;
    height: 78px;
    border-radius: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-weight: 800;
    font-size: 29px;

    background:
        linear-gradient(
            135deg,
            var(--blue-600),
            var(--cyan-400)
        );

    box-shadow:
        0 22px 50px rgba(30, 110, 232, .30);
}

.login-brand-name {
    margin-top: 30px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: -.3px;
}

.login-brand-name span {
    color: var(--cyan-400);
}

.login-brand h1 {
    font-size: clamp(36px, 3.4vw, 54px);
    line-height: 1.08;
    letter-spacing: -2px;
    margin: 28px 0 22px;
}

.login-brand p {
    color: #b9c8dc;
    font-size: 15px;
    line-height: 1.75;
    max-width: 520px;
}

.brand-pill {
    display: inline-flex;
    margin-top: 30px;

    padding: 12px 17px;
    border-radius: 999px;

    border:
        1px solid rgba(255, 255, 255, .13);

    color: #d7e7f8;
    background:
        rgba(255, 255, 255, .045);

    font-size: 13px;
    font-weight: 600;
    letter-spacing: .4px;
}

.login-copyright {
    position: absolute;
    left: 70px;
    bottom: 40px;

    font-size: 12px;
    color: #6f849e;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 55px;

    background:
        linear-gradient(
            135deg,
            #f7faff,
            #edf5ff
        );
}

.login-card {
    width: min(100%, 460px);
}

.mobile-brand {
    display: none;
}

.login-heading .eyebrow,
.eyebrow {
    color: var(--blue-600);
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 1.25px;
}

.login-heading h2 {
    margin:
        10px 0 10px;

    font-size: 38px;
    letter-spacing: -1.5px;
}

.login-heading p {
    color: var(--text-soft);
    line-height: 1.65;
    margin-bottom: 30px;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;

    margin-bottom: 9px;

    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.field input {
    width: 100%;

    height: 52px;

    padding: 0 15px;

    border:
        1px solid #d8e1ec;

    border-radius: 12px;

    background: #ffffff;

    outline: none;

    font-family: inherit;
    font-size: 14px;

    transition:
        border-color .2s,
        box-shadow .2s;
}

.field input:focus {
    border-color: var(--blue-500);

    box-shadow:
        0 0 0 4px rgba(37, 136, 244, .11);
}

.btn-primary {
    width: 100%;
    height: 53px;

    border: 0;
    border-radius: 12px;

    margin-top: 7px;

    cursor: pointer;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #155bd7,
            #2588f4
        );

    font-family: inherit;
    font-weight: 800;

    box-shadow:
        0 14px 28px rgba(30, 110, 232, .20);
}

.alert-error {
    margin-bottom: 20px;
    padding: 13px 15px;

    border-radius: 10px;

    background: #fff1f2;
    color: #be123c;

    font-size: 13px;
    font-weight: 600;
}

.login-security {
    margin-top: 24px;

    color: var(--text-light);
    text-align: center;
    font-size: 11px;
}


/* APP */

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;

    width: 255px;

    display: flex;
    flex-direction: column;

    padding: 22px 16px;

    background:
        linear-gradient(
            180deg,
            var(--navy-950),
            #081326
        );

    color: #ffffff;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    padding:
        5px 7px 24px;
}

.brand-mark {
    width: 43px;
    height: 43px;

    border-radius: 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    font-size: 16px;
    font-weight: 800;

    background:
        linear-gradient(
            135deg,
            var(--blue-600),
            var(--cyan-400)
        );

    box-shadow:
        0 10px 22px rgba(30, 110, 232, .22);
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-copy strong {
    font-size: 14px;
}

.brand-copy span {
    margin-top: 3px;

    color: #7890ac;
    font-size: 10px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;

    padding-right: 2px;
}

.nav-section {
    margin-bottom: 22px;
}

.nav-label {
    display: block;

    padding:
        0 11px 8px;

    color: #526a86;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: 1.1px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;

    min-height: 40px;

    margin: 3px 0;

    padding: 0 11px;

    border-radius: 9px;

    color: #aebcd0;

    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
}

.nav-item.active {
    color: #ffffff;

    background:
        linear-gradient(
            90deg,
            rgba(30, 110, 232, .28),
            rgba(37, 136, 244, .12)
        );

    box-shadow:
        inset 3px 0 0 var(--blue-500);
}

.nav-item.disabled {
    cursor: default;
}

.nav-icon {
    width: 20px;

    color: #6e91b9;
    text-align: center;
    font-weight: 700;
}

.sidebar-footer {
    padding-top: 14px;

    border-top:
        1px solid rgba(255, 255, 255, .07);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 10px;
}

.user-avatar {
    width: 35px;
    height: 35px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(37, 136, 244, .16);

    color: #67b7ff;

    font-weight: 800;
}

.sidebar-user div:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-user strong {
    max-width: 155px;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 11px;
}

.sidebar-user span {
    margin-top: 2px;

    color: #7186a0;
    font-size: 9px;
}

.logout-button {
    width: 100%;

    border: 0;

    padding: 9px;

    border-radius: 8px;

    cursor: pointer;

    color: #7890ac;
    background: transparent;

    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
}

.logout-button:hover {
    color: #ffffff;

    background:
        rgba(255, 255, 255, .05);
}

.main-content {
    width: calc(100% - 255px);

    min-height: 100vh;

    margin-left: 255px;

    background: var(--background);
}

.topbar {
    height: 67px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 32px;

    border-bottom:
        1px solid var(--border);

    background:
        rgba(255, 255, 255, .92);

    backdrop-filter: blur(12px);
}

.environment-badge {
    display: inline-flex;

    padding:
        6px 9px;

    border-radius: 7px;

    color: #7c3aed;
    background: #f3e8ff;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .7px;
}

.topbar-company {
    color: #475569;

    font-size: 11px;
    font-weight: 700;
}

.content-wrapper {
    max-width: 1560px;

    padding:
        34px 34px 60px;

    margin: 0 auto;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    margin-bottom: 24px;
}

.page-header h1 {
    margin:
        7px 0 5px;

    font-size: 30px;
    letter-spacing: -1px;
}

.page-header p {
    margin: 0;

    color: var(--text-soft);
    font-size: 12px;
}

.page-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--text-soft);

    font-size: 11px;
    font-weight: 600;
}

.status-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: #10b981;

    box-shadow:
        0 0 0 5px rgba(16, 185, 129, .09);
}

.welcome-card {
    min-height: 180px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 35px;

    overflow: hidden;

    border-radius: var(--radius-lg);

    color: #ffffff;

    background:
        radial-gradient(
            circle at 88% 15%,
            rgba(35, 200, 244, .22),
            transparent 25%
        ),
        linear-gradient(
            120deg,
            #0b1c37,
            #12366e 70%,
            #155bd7
        );

    box-shadow:
        0 20px 45px rgba(9, 30, 66, .15);
}

.card-kicker {
    color: #64d9ff;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 1.4px;
}

.welcome-card h2 {
    margin:
        10px 0 8px;

    font-size: 27px;
    letter-spacing: -1px;
}

.welcome-card p {
    max-width: 650px;

    margin: 0;

    color: #b9cbe3;

    font-size: 12px;
    line-height: 1.6;
}

.welcome-symbol {
    margin-right: 30px;

    color:
        rgba(255, 255, 255, .10);

    font-size: 95px;
    font-weight: 800;
    letter-spacing: -8px;
}

.metrics-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 16px;

    margin-top: 18px;
}

.metric-card {
    min-height: 150px;

    position: relative;

    padding: 20px;

    border:
        1px solid var(--border);

    border-radius: var(--radius-md);

    background: var(--surface);

    box-shadow:
        0 8px 25px rgba(15, 23, 42, .035);
}

.metric-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 17px;

    border-radius: 9px;

    color: var(--blue-600);
    background: #edf5ff;

    font-weight: 800;
}

.metric-card > span {
    display: block;

    color: #64748b;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .75px;
}

.metric-card strong {
    display: block;

    margin:
        7px 0 5px;

    color: #0b1730;

    font-size: 24px;
    letter-spacing: -.8px;
}

.metric-card small {
    color: #94a3b8;

    font-size: 9px;
}

.dashboard-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.6fr)
        minmax(300px, .75fr);

    gap: 18px;

    margin-top: 18px;
}

.panel {
    min-height: 300px;

    padding: 22px;

    border:
        1px solid var(--border);

    border-radius: var(--radius-md);

    background: var(--surface);

    box-shadow:
        0 8px 25px rgba(15, 23, 42, .03);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-header h3 {
    margin:
        6px 0 0;

    font-size: 15px;
}

.panel-badge {
    padding:
        6px 9px;

    border-radius: 7px;

    color: #047857;
    background: #ecfdf5;

    font-size: 8px;
    font-weight: 800;
}

.empty-state {
    min-height: 220px;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

    text-align: center;
}

.empty-state-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 13px;

    border-radius: 12px;

    color: var(--blue-600);
    background: #edf5ff;
}

.empty-state strong {
    font-size: 12px;
}

.empty-state p {
    max-width: 390px;

    margin:
        7px 0 0;

    color: var(--text-light);

    font-size: 10px;
    line-height: 1.6;
}

.status-list {
    margin-top: 18px;
}

.status-list > div {
    display: flex;
    justify-content: space-between;

    padding:
        15px 0;

    border-bottom:
        1px solid #edf1f6;

    font-size: 10px;
}

.status-list span {
    color: var(--text-soft);
}

.status-list strong {
    color: #334155;
}

.status-list .success {
    color: var(--success);
}


@media (max-width: 1100px) {

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

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 820px) {

    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-brand {
        display: none;
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 12px;

        margin-bottom: 40px;
    }

    .mobile-brand > div:last-child {
        display: flex;
        flex-direction: column;
    }

    .mobile-brand span {
        color: var(--blue-600);
        font-size: 11px;
        font-weight: 800;
    }

    .sidebar {
        display: none;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
    }

    .content-wrapper {
        padding:
            25px 18px 45px;
    }

    .topbar {
        padding:
            0 18px;
    }

}


@media (max-width: 560px) {

    .login-panel {
        padding: 30px 22px;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .welcome-card {
        padding: 25px;
    }

    .welcome-symbol {
        display: none;
    }

}
