:root {
    --blue: #0b9fe5;
    --blue-dark: #1769df;
    --navy: #092f61;
    --text: #183e67;
    --muted: #7c95ad;
    --soft: #a6b7c7;

    --green: #19c69a;

    --border: #d9e7f1;
    --border-light: #e8f1f7;

    --bg: #f6fbff;
    --white: #ffffff;

    --shadow:
        0 25px 80px rgba(23, 82, 126, .12);

    --shadow-small:
        0 8px 30px rgba(23, 82, 126, .07);
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
}

html {
    overflow: hidden;
}

body {
    font-family:
        "Plus Jakarta Sans",
        Arial,
        sans-serif;

    color: var(--text);

    background: var(--bg);

    -webkit-font-smoothing: antialiased;

    overflow: hidden;
}


/* =========================================================
   APP
========================================================= */

.login-app {
    width: 100%;
    height: 100vh;

    display: flex;
    flex-direction: column;

    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 12% 35%,
            rgba(16, 166, 232, .07),
            transparent 25%
        ),
        radial-gradient(
            circle at 88% 65%,
            rgba(30, 101, 222, .06),
            transparent 28%
        ),
        #f6fbff;
}


/* =========================================================
   BACKGROUND
========================================================= */

.app-background {
    position: fixed;
    inset: 0;

    z-index: 0;

    pointer-events: none;

    overflow: hidden;
}

.grid-lines {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(38, 115, 160, .035) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(38, 115, 160, .035) 1px,
            transparent 1px
        );

    background-size: 50px 50px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 90%
        );
}

.light {
    position: absolute;

    border-radius: 50%;

    filter: blur(2px);
}

.light-left {
    width: 500px;
    height: 500px;

    left: -280px;
    top: 15%;

    background:
        radial-gradient(
            circle,
            rgba(11,159,229,.12),
            transparent 67%
        );
}

.light-right {
    width: 550px;
    height: 550px;

    right: -300px;
    bottom: -230px;

    background:
        radial-gradient(
            circle,
            rgba(23,105,223,.09),
            transparent 67%
        );
}


/* =========================================================
   DATA STREAMS
========================================================= */

.data-stream {
    position: absolute;

    width: 1px;

    background:
        linear-gradient(
            to bottom,
            transparent,
            rgba(11,159,229,.16),
            transparent
        );

    opacity: .55;

    animation: streamMove 7s linear infinite;
}

.stream-one {
    height: 150px;

    left: 17%;

    top: -150px;
}

.stream-two {
    height: 190px;

    right: 23%;

    top: -190px;

    animation-delay: 2.2s;
}

.stream-three {
    height: 120px;

    right: 9%;

    top: -120px;

    animation-delay: 4.5s;
}

@keyframes streamMove {

    0% {
        transform: translateY(0);
        opacity: 0;
    }

    15% {
        opacity: .55;
    }

    80% {
        opacity: .35;
    }

    100% {
        transform: translateY(110vh);
        opacity: 0;
    }
}


/* =========================================================
   HEADER
========================================================= */

.app-header {
    height: 82px;

    flex: 0 0 82px;

    margin: 18px 28px 0;

    padding: 0 24px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    position: relative;

    z-index: 5;

    background: rgba(255,255,255,.88);

    border:
        1px solid
        rgba(205,222,234,.9);

    border-radius: 18px;

    box-shadow:
        var(--shadow-small);

    backdrop-filter: blur(18px);
}


/* BRAND */

.header-brand {
    display: flex;

    align-items: center;
}

.logo-wrap {
    width: 210px;
    height: 54px;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.logo-wrap img {
    display: block;

    width: 205px;
    height: auto;

    max-height: 52px;

    object-fit: contain;

    object-position: left center;
}

.brand-separator {
    width: 1px;
    height: 35px;

    margin: 0 18px;

    background: #dce8f1;
}

.product-identity {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.product-identity span {
    font-size: 8px;

    font-weight: 700;

    letter-spacing: .18em;

    color: #9aafc1;
}

.product-identity strong {
    font-size: 13px;

    font-weight: 800;

    letter-spacing: -.02em;

    color: var(--navy);
}


/* HEADER RIGHT */

.header-right {
    display: flex;

    align-items: center;

    gap: 20px;
}

.environment {
    display: flex;

    align-items: center;

    gap: 9px;
}

.environment small,
.system-version small {
    display: block;

    font-size: 7px;

    font-weight: 700;

    letter-spacing: .13em;

    color: #9cafbf;
}

.environment strong,
.system-version strong {
    display: block;

    margin-top: 3px;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .07em;

    color: #557693;
}

.online-dot {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 5px rgba(25,198,154,.09),
        0 0 13px rgba(25,198,154,.30);
}

.header-divider {
    width: 1px;
    height: 27px;

    background: #dfebf3;
}

.system-version {
    display: flex;

    flex-direction: column;

    align-items: flex-end;
}


/* =========================================================
   WORKSPACE
========================================================= */

.login-workspace {
    flex: 1;

    min-height: 0;

    position: relative;

    z-index: 2;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 20px;
}


/* =========================================================
   WORKSPACE LABEL
========================================================= */

.workspace-label {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 13px;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: .15em;

    color: #91a8ba;
}

.workspace-label .pulse {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 4px rgba(25,198,154,.08);
}

.label-line {
    width: 35px;
    height: 1px;

    background: #d4e4ee;
}


/* =========================================================
   AUTH CONSOLE
========================================================= */

.auth-console {
    width: 470px;

    max-width: 100%;

    padding: 27px 30px 20px;

    position: relative;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.98),
            rgba(250,253,255,.98)
        );

    border:
        1px solid
        #d2e4ef;

    border-radius: 22px;

    box-shadow:
        var(--shadow);

    overflow: hidden;
}

.auth-console::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 100%;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            #08a9e9,
            #2875e6
        );
}


/* =========================================================
   CONSOLE HEADER
========================================================= */

.console-header {
    display: flex;

    align-items: center;

    justify-content: space-between;
}

.console-title {
    display: flex;

    align-items: center;

    gap: 12px;
}

.console-symbol {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        #d1e8f6;

    border-radius: 11px;

    background: #f0faff;

    color: var(--blue);
}

.console-symbol svg {
    width: 21px;
    height: 21px;
}

.console-title span {
    display: block;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: .16em;

    color: var(--blue);
}

.console-title strong {
    display: block;

    margin-top: 4px;

    font-size: 12px;

    font-weight: 800;

    color: var(--navy);
}

.console-status {
    display: flex;

    align-items: center;

    gap: 6px;

    padding: 6px 9px;

    border:
        1px solid
        rgba(25,198,154,.16);

    border-radius: 8px;

    background: #f4fcf9;

    font-size: 6px;

    font-weight: 800;

    letter-spacing: .12em;

    color: #62a38e;
}

.console-status span {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--green);
}


/* =========================================================
   RULE
========================================================= */

.console-rule {
    height: 1px;

    margin: 20px 0 23px;

    background:
        linear-gradient(
            90deg,
            #d9e8f1,
            transparent
        );
}


/* =========================================================
   ERROR
========================================================= */

.error-message {
    display: flex;

    align-items: center;

    gap: 10px;

    padding: 10px 12px;

    margin-bottom: 18px;

    border:
        1px solid
        #ffd4db;

    border-radius: 10px;

    background: #fff6f7;
}

.error-mark {
    width: 20px;
    height: 20px;

    flex: 0 0 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffe0e5;

    color: #c74e60;

    font-size: 9px;

    font-weight: 800;
}

.error-message strong {
    display: block;

    font-size: 8px;

    color: #bd4c5d;
}

.error-message span {
    display: block;

    margin-top: 2px;

    font-size: 7px;

    color: #ce7c89;
}


/* =========================================================
   FORM
========================================================= */

.login-form {
    width: 100%;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;

    margin-bottom: 8px;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .11em;

    color: #597793;
}

.input-container {
    height: 58px;

    width: 100%;

    display: flex;

    align-items: center;

    position: relative;

    border:
        1px solid
        #d4e5ef;

    border-radius: 11px;

    background: #fbfdff;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.input-container:focus-within {
    border-color: #43afe9;

    background: #fff;

    box-shadow:
        0 0 0 4px rgba(11,159,229,.07);
}

.field-icon {
    width: 18px;
    height: 18px;

    margin-left: 15px;

    flex: 0 0 18px;

    color: #8aa5bb;
}

.input-container input {
    width: 100%;
    height: 100%;

    min-width: 0;

    border: 0;
    outline: 0;

    background: transparent;

    padding:
        0 12px;

    font-family: inherit;

    font-size: 12px;

    font-weight: 600;

    color: var(--navy);
}

.input-container input::placeholder {
    color: #a5b8c8;

    font-weight: 500;
}

.password-button {
    width: 45px;
    height: 100%;

    flex: 0 0 45px;

    border: 0;

    background: transparent;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #8ba3b8;

    cursor: pointer;
}

.password-button:hover {
    color: var(--blue);
}

.password-button svg {
    width: 18px;
    height: 18px;
}


/* =========================================================
   OPTIONS
========================================================= */

.form-options {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin:
        1px 0 18px;
}

.remember {
    display: flex;

    align-items: center;

    gap: 7px;

    cursor: pointer;

    font-size: 8px;

    color: #8ba0b3;
}

.remember input {
    display: none;
}

.checkbox {
    width: 15px;
    height: 15px;

    border:
        1px solid
        #cddfe9;

    border-radius: 4px;

    background: #fff;

    position: relative;
}

.remember input:checked + .checkbox {
    background: var(--blue);

    border-color: var(--blue);
}

.remember input:checked + .checkbox::after {
    content: "";

    position: absolute;

    left: 4px;
    top: 1px;

    width: 4px;
    height: 8px;

    border:
        solid white;

    border-width:
        0 2px 2px 0;

    transform: rotate(45deg);
}

.access-note {
    font-size: 6px;

    font-weight: 800;

    letter-spacing: .10em;

    color: #9cafbd;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-button {
    width: 100%;
    height: 58px;

    border: 0;

    border-radius: 11px;

    background:
        linear-gradient(
            100deg,
            #08a9e8,
            #196ee1
        );

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    font-family: inherit;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .04em;

    cursor: pointer;

    position: relative;

    overflow: hidden;

    box-shadow:
        0 13px 27px rgba(23,111,221,.20);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.login-button::before {
    content: "";

    position: absolute;

    left: -100%;

    top: 0;

    width: 70%;
    height: 100%;

    transform: skewX(-20deg);

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.23),
            transparent
        );

    transition: left .6s ease;
}

.login-button:hover::before {
    left: 135%;
}

.login-button:hover {
    transform: translateY(-1px);

    box-shadow:
        0 17px 32px rgba(23,111,221,.27);
}

.login-button:active {
    transform: translateY(0);
}

.login-button svg {
    width: 17px;
    height: 17px;

    transition:
        transform .2s ease;
}

.login-button:hover svg {
    transform: translateX(3px);
}


/* =========================================================
   SECURITY STRIP
========================================================= */

.security-strip {
    min-height: 54px;

    margin-top: 15px;

    padding: 9px 11px;

    display: flex;

    align-items: center;

    border:
        1px solid
        #dceaf3;

    border-radius: 10px;

    background: #f8fcff;
}

.security-icon {
    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    color: var(--blue);

    background: #edf9ff;
}

.security-icon svg {
    width: 17px;
    height: 17px;
}

.security-copy {
    display: flex;

    flex-direction: column;

    gap: 3px;

    margin-left: 9px;
}

.security-copy strong {
    font-size: 7px;

    color: var(--navy);

    letter-spacing: .05em;
}

.security-copy span {
    font-size: 6px;

    color: #99adbd;
}

.security-state {
    margin-left: auto;

    font-size: 6px;

    font-weight: 800;

    letter-spacing: .10em;

    color: #56a58d;
}


/* =========================================================
   CONSOLE FOOTER
========================================================= */

.console-footer {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-top: 14px;

    font-size: 6px;

    font-weight: 800;

    letter-spacing: .12em;

    color: #9db0bf;
}

.console-footer i {
    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: #c5d4df;
}


/* =========================================================
   SYSTEM INDICATORS
========================================================= */

.system-indicators {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 19px;

    margin-top: 16px;
}

.indicator {
    display: flex;

    align-items: center;

    gap: 7px;
}

.indicator-light {
    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: var(--green);

    box-shadow:
        0 0 0 4px rgba(25,198,154,.07);
}

.indicator small {
    display: block;

    font-size: 6px;

    color: #a0b2c1;

    letter-spacing: .10em;
}

.indicator strong {
    display: block;

    margin-top: 2px;

    font-size: 7px;

    color: #6f8ba4;

    letter-spacing: .05em;
}

.indicator-separator {
    width: 1px;
    height: 20px;

    background: #dbe8f1;
}


/* =========================================================
   FOOTER
========================================================= */

.app-footer {
    height: 27px;

    flex: 0 0 27px;

    margin:
        0 34px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    position: relative;

    z-index: 4;

    color: #a1b2c0;

    font-size: 6px;

    font-weight: 600;

    letter-spacing: .04em;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    html,
    body {
        overflow: auto;
    }

    .login-app {
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }

    .app-header {
        margin:
            10px 10px 0;

        height: 70px;

        padding:
            0 13px;
    }

    .logo-wrap {
        width: 145px;
        height: 45px;
    }

    .logo-wrap img {
        width: 145px;
        max-height: 44px;
    }

    .brand-separator,
    .product-identity {
        display: none;
    }

    .header-right {
        gap: 0;
    }

    .environment {
        display: none;
    }

    .header-divider {
        display: none;
    }

    .system-version {
        align-items: flex-end;
    }

    .login-workspace {
        padding:
            30px 15px;
    }

    .workspace-label {
        font-size: 6px;
        text-align: center;
    }

    .auth-console {
        width: 100%;

        padding:
            23px 19px 18px;

        border-radius: 18px;
    }

    .console-title strong {
        font-size: 11px;
    }

    .console-status {
        font-size: 5px;
    }

    .system-indicators {
        gap: 12px;
    }

    .indicator-separator {
        height: 17px;
    }

    .app-footer {
        height: auto;

        min-height: 35px;

        margin: 0 15px 10px;

        justify-content: center;

        text-align: center;
    }

    .app-footer span:nth-child(2),
    .app-footer span:nth-child(3) {
        display: none;
    }
}


@media (max-width: 420px) {

    .workspace-label {
        flex-wrap: wrap;

        justify-content: center;
    }

    .console-header {
        align-items: flex-start;
    }

    .console-status {
        margin-top: 3px;
    }

    .system-indicators {
        flex-wrap: wrap;
    }

    .indicator-separator {
        display: none;
    }

    .security-copy span {
        font-size: 6px;
    }

    .security-state {
        display: none;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}