@font-face {
    font-family: "Shabnam";

    src:
        url("/assets/fonts/Shabnam.woff2")
        format("woff2");

    font-display: swap;
    font-style: normal;
}

:root {
    --bg: #061927;
    --bg-deep: #04111d;

    --panel: #081f33;
    --panel-soft: #0b2841;

    --line:
        rgba(255,255,255,.075);

    --text: #f4f8fd;
    --muted: #8fa7bb;

    --blue: #1473d4;
    --blue-light: #51a2ff;

    --green: #19a974;
    --warning: #f5a623;

    --shadow:
        0 30px 80px
        rgba(0,0,0,.28);
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;

    background:
        radial-gradient(
            circle at 12% 8%,
            rgba(20,115,212,.14),
            transparent 30%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        "Shabnam",
        Tahoma,
        sans-serif;
}

button {
    font: inherit;
}

.hidden {
    display: none !important;
}

.boot-view {
    min-height: 100vh;

    display: grid;
    place-content: center;
    justify-items: center;

    gap: 18px;

    color: var(--muted);
}

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

    display: grid;
    place-items: center;

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #3488ed,
            #07519f
        );

    box-shadow:
        0 15px 38px
        rgba(20,115,212,.34);

    color: #fff;

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

    direction: ltr;
}

.brand-mark.small {
    width: 42px;
    height: 42px;

    border-radius: 13px;

    font-size: 21px;
}

.login-layout {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        minmax(440px,1.1fr)
        minmax(400px,.9fr);
}

.login-hero {
    min-height: 100vh;

    padding: 48px 60px;

    display: flex;
    flex-direction: column;

    position: relative;

    overflow: hidden;

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

    background:
        radial-gradient(
            circle at 26% 24%,
            rgba(20,115,212,.22),
            transparent 30%
        ),
        linear-gradient(
            145deg,
            #051421,
            #071c30 60%,
            #082740
        );
}

.login-hero::after {
    content: "";

    position: absolute;

    left: -250px;
    bottom: -280px;

    width: 570px;
    height: 570px;

    border-radius: 50%;

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

    box-shadow:
        0 0 0 100px
        rgba(81,162,255,.022),
        0 0 0 200px
        rgba(81,162,255,.016);
}

.brand {
    display: flex;
    align-items: center;

    gap: 14px;

    position: relative;
    z-index: 2;
}

.brand-copy strong,
.brand-copy span {
    display: block;
}

.brand-copy strong {
    font-size: 21px;

    direction: ltr;
    text-align: right;
}

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

    color: var(--muted);

    font-size: 11px;

    direction: ltr;
    text-align: right;
}

.hero-content {
    max-width: 660px;

    margin: auto 0;

    position: relative;
    z-index: 2;
}

.eyebrow {
    display: inline-block;

    color: var(--blue-light);

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

    letter-spacing: 1.6px;

    direction: ltr;
}

.hero-content h1 {
    margin: 23px 0 17px;

    font-size:
        clamp(
            40px,
            5.2vw,
            74px
        );

    line-height: 1.25;

    letter-spacing: -2px;
}

.hero-content h1 b {
    display: block;

    font-weight: 800;

    background:
        linear-gradient(
            90deg,
            #fff,
            #65adff
        );

    -webkit-background-clip: text;

    color: transparent;
}

.hero-content p {
    max-width: 550px;

    margin: 0;

    color: #a5b9ca;

    font-size: 16px;

    line-height: 2.05;
}

.private-state,
.sidebar-footer {
    display: flex;
    align-items: center;

    gap: 9px;

    color: var(--muted);

    font-size: 10px;

    direction: ltr;
}

.private-state {
    position: relative;
    z-index: 2;
}

.private-state i,
.sidebar-footer i {
    width: 8px;
    height: 8px;

    display: block;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 14px
        rgba(25,169,116,.85);
}

.login-access {
    min-height: 100vh;

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

    padding: 44px;

    background:
        linear-gradient(
            180deg,
            #071725,
            #061421
        );
}

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

    margin: auto;

    padding: 42px;

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

    border-radius: 26px;

    background:
        linear-gradient(
            180deg,
            rgba(14,39,63,.97),
            rgba(8,26,43,.98)
        );

    box-shadow: var(--shadow);
}

.mobile-brand {
    display: none;
}

.login-card h2 {
    margin: 14px 0 8px;

    font-size: 29px;

    letter-spacing: -.7px;
}

.lead {
    margin: 0;

    color: var(--muted);

    line-height: 1.9;
}

.google-button {
    min-height: 48px;

    margin-top: 32px;

    direction: ltr;
}

.auth-message {
    min-height: 25px;

    margin-top: 16px;

    color: #f4b15d;

    font-size: 12px;

    line-height: 1.9;
}

.security-box {
    display: flex;

    gap: 12px;

    margin-top: 24px;
    padding-top: 23px;

    border-top:
        1px solid var(--line);
}

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

    flex: 0 0 34px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    color: var(--green);

    background:
        rgba(25,169,116,.09);
}

.security-box strong,
.security-box span {
    display: block;
}

.security-box strong {
    font-size: 12px;
}

.security-box span {
    margin-top: 5px;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.8;
}

.login-footer {
    text-align: center;

    color: #5f778d;

    font-size: 10px;

    direction: ltr;
}

.login-footer span {
    margin: 0 7px;
}

.dashboard {
    min-height: 100vh;

    display: grid;

    grid-template-columns:
        1fr 280px;
}

.sidebar {
    grid-column: 2;

    min-height: 100vh;

    padding: 22px 17px;

    display: flex;
    flex-direction: column;

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

    background: #071522;
}

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

    gap: 11px;

    padding: 5px 7px 28px;
}

.sidebar-brand strong,
.sidebar-brand span {
    display: block;
}

.sidebar-brand strong {
    direction: ltr;
    text-align: right;
}

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

    color: var(--muted);

    font-size: 9px;

    direction: ltr;
    text-align: right;
}

.sidebar-nav {
    display: grid;
    gap: 5px;
}

.nav-item {
    width: 100%;

    padding: 12px 13px;

    display: flex;
    align-items: center;

    gap: 11px;

    border: 0;
    border-radius: 11px;

    background: transparent;

    color: #90a7bc;

    text-align: right;

    cursor: pointer;
}

.nav-item:hover,
.nav-item.active {
    color: #fff;

    background:
        rgba(20,115,212,.11);
}

.nav-item.active {
    box-shadow:
        inset -2px 0 0
        var(--blue);
}

.sidebar-footer {
    margin-top: auto;

    padding: 12px;

    border:
        1px solid
        rgba(25,169,116,.14);

    border-radius: 11px;
}

.main-area {
    grid-column: 1;

    min-width: 0;
}

.topbar {
    min-height: 90px;

    padding: 18px 31px;

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

    gap: 20px;

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

    background:
        rgba(6,20,33,.78);

    backdrop-filter:
        blur(18px);
}

.page-title h1 {
    margin: 0;

    font-size: 22px;
}

.page-title p {
    margin: 5px 0 0;

    color: var(--muted);

    font-size: 11px;
}

.account {
    display: flex;
    align-items: center;

    gap: 11px;
}

.account-meta strong,
.account-meta span {
    display: block;
}

.account-meta strong {
    font-size: 12px;
}

.account-meta span {
    margin-top: 3px;

    color: var(--muted);

    font-size: 9px;

    direction: ltr;
}

.avatar {
    width: 41px;
    height: 41px;

    object-fit: cover;

    border-radius: 12px;

    background: var(--panel-soft);
}

.account button {
    margin-right: 8px;

    padding: 8px 11px;

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

    border-radius: 9px;

    background: transparent;

    color: var(--muted);

    cursor: pointer;
}

.account button:hover {
    color: #fff;

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

.content {
    padding: 30px;
}

.welcome-panel {
    padding: 30px;

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

    gap: 24px;

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

    border-radius: 20px;

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(20,115,212,.15),
            transparent 34%
        ),
        var(--panel);
}

.welcome-panel h2 {
    margin: 12px 0 7px;

    font-size: 24px;
}

.welcome-panel p {
    margin: 0;

    color: var(--muted);
}

.isolation-badge {
    padding: 12px 15px;

    border:
        1px solid
        rgba(25,169,116,.18);

    border-radius: 12px;

    background:
        rgba(25,169,116,.07);

    color: #8da8b9;

    font-size: 9px;

    direction: ltr;
}

.isolation-badge strong {
    display: block;

    margin-top: 4px;

    color: var(--green);

    font-size: 12px;
}

.metrics {
    margin-top: 18px;

    display: grid;

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

    gap: 14px;
}

.metric {
    min-height: 145px;

    padding: 21px;

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

    border-radius: 17px;

    background:
        linear-gradient(
            160deg,
            var(--panel),
            #081a2b
        );
}

.metric span,
.metric strong,
.metric small {
    display: block;
}

.metric span {
    color: var(--muted);

    font-size: 11px;
}

.metric strong {
    margin-top: 20px;

    font-size: 19px;

    direction: ltr;
    text-align: right;
}

.metric small {
    margin-top: 6px;

    color: #627c92;

    font-size: 9px;
}

@media (max-width:1050px) {

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

    .login-hero {
        padding: 40px;
    }

    .login-access {
        padding: 30px;
    }

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

@media (max-width:760px) {

    .login-layout {
        display: block;
    }

    .login-hero {
        display: none;
    }

    .login-access {
        min-height: 100vh;

        padding: 20px;
    }

    .login-card {
        padding: 28px 23px;
    }

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

        gap: 11px;

        margin-bottom: 34px;
    }

    .mobile-brand strong,
    .mobile-brand span {
        display: block;
    }

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

        color: var(--muted);

        font-size: 9px;

        direction: ltr;
    }

    .dashboard {
        display: block;
    }

    .sidebar {
        display: none;
    }

    .topbar {
        padding: 16px;
    }

    .account-meta {
        display: none;
    }

    .content {
        padding: 18px 15px;
    }

    .welcome-panel {
        display: block;

        padding: 23px;
    }

    .isolation-badge {
        width: fit-content;

        margin-top: 20px;
    }

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

/* ZALWEB_LOCAL_LOGIN_V1 */

.local-login-form {
    margin-top: 28px;

    display: grid;

    gap: 16px;
}

.local-login-form label {
    display: grid;

    gap: 8px;
}

.local-login-form label > span {
    color: #9db0c1;

    font-size: 11px;
}

.local-login-form input {
    width: 100%;
    height: 50px;

    padding: 0 15px;

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

    border-radius: 12px;

    outline: 0;

    background:
        rgba(3,15,26,.55);

    color: #f4f8fd;

    font-family:
        "Shabnam",
        Tahoma,
        sans-serif;

    font-size: 13px;

    transition:
        border-color .15s ease,
        box-shadow .15s ease,
        background .15s ease;
}

#loginCode {
    direction: ltr;

    text-align: left;

    font-family:
        ui-monospace,
        SFMono-Regular,
        Consolas,
        monospace;

    letter-spacing: .6px;
}

#loginPassword {
    direction: ltr;

    text-align: left;
}

.local-login-form input:focus {
    border-color:
        rgba(20,115,212,.8);

    background:
        rgba(5,24,40,.85);

    box-shadow:
        0 0 0 3px
        rgba(20,115,212,.12);
}

.local-login-form button {
    height: 50px;

    margin-top: 3px;

    border: 0;
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #1473d4,
            #0c53a5
        );

    color: #fff;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 12px 28px
        rgba(20,115,212,.22);
}

.local-login-form button:hover {
    filter: brightness(1.08);
}

.local-login-form button:disabled {
    opacity: .55;

    cursor: wait;
}
