/* ==========================================================
   QUIET INTELLIGENCE
   Authentication Control Plane
   ========================================================== */

:root {

    --brand: #315efb;
    --brand-rgb: 49, 94, 251;

    --brand-soft: #6685ff;

    --ink: #121722;
    --ink-soft: #586174;
    --ink-faint: #8c95a6;

    --surface: rgba(255, 255, 255, 0.82);
    --surface-solid: #ffffff;

    --line: rgba(23, 31, 48, 0.09);

    --field-background: #f7f9fc;

}


/* ==========================================================
   BRAND SYSTEM
   ========================================================== */

.brand-softizoo {
    --brand: #8a00ff;
    --brand-rgb: 138, 0, 255;
    --brand-soft: #a620ff;
}


/* ==========================================================
   FOUNDATION
   ========================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}


html {
    min-height: 100%;
}


body {
    margin: 0;

    min-height: 100vh;
    min-height: 100svh;

    overflow-x: hidden;

    color: var(--ink);

    background:
        var(--field-background);

    font-family:
        Inter,
        ui-sans-serif,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ==========================================================
   INTELLIGENCE ENVIRONMENT
   ========================================================== */

.ambient-environment {
    position: fixed;
    inset: 0;

    overflow: hidden;

    pointer-events: none;

    z-index: 0;

    background:
        linear-gradient(
            180deg,
            #fafbfe 0%,
            #f6f8fc 50%,
            #f8f9fc 100%
        );
}


/* Extremely subtle luminous atmosphere */

.ambient-wash {
    position: absolute;

    border-radius: 999px;

    filter: blur(1px);

    will-change: transform;
}


.ambient-wash-a {

    width: 760px;
    height: 760px;

    left: -270px;
    top: -320px;

    background:
        radial-gradient(
            circle,
            rgba(var(--brand-rgb), 0.11) 0%,
            rgba(var(--brand-rgb), 0.035) 42%,
            transparent 70%
        );

    animation:
        ambientBreathA
        18s
        ease-in-out
        infinite alternate;
}


.ambient-wash-b {

    width: 880px;
    height: 880px;

    right: -360px;
    bottom: -420px;

    background:
        radial-gradient(
            circle,
            rgba(95, 125, 255, 0.10) 0%,
            rgba(147, 175, 255, 0.025) 44%,
            transparent 70%
        );

    animation:
        ambientBreathB
        22s
        ease-in-out
        infinite alternate;
}


.ambient-wash-c {

    width: 520px;
    height: 520px;

    left: 50%;
    top: 45%;

    transform:
        translate(-50%, -50%);

    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.90),
            rgba(255, 255, 255, 0.18) 45%,
            transparent 72%
        );
}


@keyframes ambientBreathA {

    from {
        transform:
            translate3d(0, 0, 0)
            scale(1);
    }

    to {
        transform:
            translate3d(60px, 45px, 0)
            scale(1.08);
    }

}


@keyframes ambientBreathB {

    from {
        transform:
            translate3d(0, 0, 0)
            scale(1);
    }

    to {
        transform:
            translate3d(-70px, -30px, 0)
            scale(1.06);
    }

}


/* ==========================================================
   MICRO GRID
   Almost invisible — discovered, not seen.
   ========================================================== */

.intelligence-grid {

    position: absolute;
    inset: 0;

    opacity: 0.32;

    background-image:

        linear-gradient(
            rgba(25, 37, 60, 0.026) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            rgba(25, 37, 60, 0.026) 1px,
            transparent 1px
        );

    background-size:
        64px 64px;

    mask-image:
        radial-gradient(
            circle at center,
            black 5%,
            transparent 73%
        );

}


/* ==========================================================
   SIGNAL ORBITS
   ========================================================== */

.signal-orbit {

    position: absolute;

    left: 50%;
    top: 47%;

    border-radius: 50%;

    transform:
        translate(-50%, -50%);

    border:
        1px solid
        rgba(var(--brand-rgb), 0.045);
}


.signal-orbit-a {

    width: min(820px, 76vw);
    aspect-ratio: 1;

}


.signal-orbit-b {

    width: min(1080px, 95vw);
    aspect-ratio: 1;

    border-color:
        rgba(var(--brand-rgb), 0.025);

}


/* ==========================================================
   POINTER FIELD
   ========================================================== */

.cursor-light {

    position: absolute;

    left: -220px;
    top: -220px;

    width: 440px;
    height: 440px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(var(--brand-rgb), 0.052),
            rgba(var(--brand-rgb), 0.018) 38%,
            transparent 70%
        );

    will-change: transform;

}


/* ==========================================================
   MAIN SHELL
   ========================================================== */

.login-shell {

    position: relative;
    z-index: 1;

    width: 100%;

    min-height: 100vh;
    min-height: 100svh;

    display: grid;

    grid-template-rows:
        auto
        1fr
        auto;

    padding:
        38px
        clamp(28px, 4vw, 68px)
        28px;

}


/* ==========================================================
   HEADER
   ========================================================== */

.login-header {

    display: flex;

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

    min-height: 44px;

}


.brand-mark {

    display: inline-flex;

    align-items: center;

    min-height: 40px;

    text-decoration: none;

}


.brand-mark img {

    display: block;

    max-width: 174px;
    max-height: 43px;

    object-fit: contain;

}


.system-state {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: #737d90;

    font-size: 11px;
    font-weight: 580;

    letter-spacing: -0.01em;

}


.system-state-indicator {

    position: relative;

    width: 18px;
    height: 18px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        rgba(21, 177, 117, 0.075);

}


.system-dot {

    width: 5px;
    height: 5px;

    border-radius: 50%;

    background: #18a66f;

    box-shadow:
        0 0 0 3px
        rgba(24, 166, 111, 0.08);

}


/* ==========================================================
   CENTRAL STAGE
   ========================================================== */

.login-stage {

    display: flex;

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

    padding:
        48px
        20px
        54px;

}


.login-stage-inner {

    width: min(430px, 100%);

    display: flex;
    flex-direction: column;

    align-items: center;

}


/* ==========================================================
   CONTEXT LABEL
   ========================================================== */

.login-context {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 18px;

}


.context-symbol {

    position: relative;

    width: 15px;
    height: 15px;

    display: grid;

    place-items: center;

}


.context-symbol::before {

    content: "";

    position: absolute;

    width: 11px;
    height: 11px;

    border-radius: 50%;

    border:
        1px solid
        rgba(var(--brand-rgb), 0.30);

}


.context-symbol span {

    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: var(--brand);

}


.context-label {

    color: #929aaa;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 0.14em;

}


/* ==========================================================
   LOGIN SURFACE
   ========================================================== */

.login-surface {

    position: relative;

    width: 100%;

    padding:
        38px
        38px
        30px;

    overflow: hidden;

    border:
        1px solid
        rgba(20, 30, 48, 0.08);

    border-radius: 24px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.91),
            rgba(255, 255, 255, 0.78)
        );

    -webkit-backdrop-filter:
        blur(28px)
        saturate(130%);

    backdrop-filter:
        blur(28px)
        saturate(130%);

    box-shadow:

        0 1px 0
        rgba(255, 255, 255, 0.92)
        inset,

        0 1px 2px
        rgba(22, 30, 46, 0.025),

        0 12px 30px
        rgba(30, 39, 65, 0.045),

        0 42px 80px
        rgba(35, 47, 78, 0.055);

}


.surface-light {

    position: absolute;

    top: -120px;
    left: 50%;

    width: 320px;
    height: 200px;

    transform:
        translateX(-50%);

    background:
        radial-gradient(
            ellipse,
            rgba(var(--brand-rgb), 0.075),
            transparent 68%
        );

    pointer-events: none;

}


/* ==========================================================
   SURFACE HEADER
   ========================================================== */

.surface-header {

    position: relative;

    margin-bottom: 30px;

}


.surface-icon {

    width: 34px;
    height: 34px;

    display: grid;

    place-items: center;

    margin-bottom: 22px;

    border:
        1px solid
        rgba(21, 29, 45, 0.075);

    border-radius: 11px;

    background:
        rgba(255, 255, 255, 0.7);

    color:
        rgba(var(--brand-rgb), 0.83);

    font-size: 14px;

    box-shadow:
        0 4px 15px
        rgba(30, 39, 60, 0.04);

}


.surface-header h1 {

    margin: 0;

    color: #121722;

    font-size: 29px;

    line-height: 1.18;

    font-weight: 640;

    letter-spacing: -0.037em;

}


.surface-header p {

    margin:
        9px
        0
        0;

    color: #7c8596;

    font-size: 12.5px;

    line-height: 1.65;

}


/* ==========================================================
   FORM
   ========================================================== */

.login-form {

    position: relative;

    display: grid;

    gap: 18px;

}


.field-group {

    display: grid;

    gap: 8px;

}


.field-group label {

    margin: 0;

    color: #4f586a;

    font-size: 11px;

    font-weight: 620;

    letter-spacing: -0.01em;

}


.field-control {

    position: relative;

    width: 100%;
    height: 52px;

    display: flex;

    align-items: center;

    overflow: hidden;

    border:
        1px solid
        rgba(21, 29, 45, 0.105);

    border-radius: 13px;

    background:
        rgba(255, 255, 255, 0.65);

    box-shadow:
        0 1px 1px
        rgba(22, 30, 45, 0.018);

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;

}


.field-control:hover {

    border-color:
        rgba(21, 29, 45, 0.16);

}


.field-control:focus-within {

    border-color:
        rgba(var(--brand-rgb), 0.52);

    background:
        rgba(255, 255, 255, 0.91);

    box-shadow:

        0 0 0 3px
        rgba(var(--brand-rgb), 0.075),

        0 5px 15px
        rgba(28, 39, 63, 0.035);

}


.field-icon {

    position: absolute;

    left: 16px;

    display: grid;

    place-items: center;

    color: #9aa3b3;

    font-size: 15px;

    pointer-events: none;

    transition:
        color 180ms ease;

}


.field-control:focus-within
.field-icon {

    color:
        rgba(var(--brand-rgb), 0.9);

}


.field-control input {

    width: 100%;
    height: 100%;

    padding:
        0
        50px
        0
        45px;

    border: 0;
    outline: none;

    background: transparent;

    color: #1d2430;

    font: inherit;

    font-size: 13px;

    font-weight: 500;

    letter-spacing: -0.005em;

    caret-color: var(--brand);

}


.field-control input::placeholder {

    color: #abb2bf;

    font-weight: 400;

}


.field-control input:-webkit-autofill,
.field-control input:-webkit-autofill:hover,
.field-control input:-webkit-autofill:focus {

    -webkit-text-fill-color:
        #1d2430;

    -webkit-box-shadow:
        0 0 0 1000px
        rgba(255, 255, 255, 0.96)
        inset;

}


/* ==========================================================
   PASSWORD
   ========================================================== */

.password-toggle {

    position: absolute;

    right: 9px;

    width: 35px;
    height: 35px;

    display: grid;

    place-items: center;

    padding: 0;

    border: 0;

    border-radius: 10px;

    background: transparent;

    color: #969eac;

    font-size: 15px;

    cursor: pointer;

    transition:
        color 150ms ease,
        background 150ms ease,
        transform 150ms ease;

}


.password-toggle:hover {

    color: #555e6e;

    background:
        rgba(27, 37, 57, 0.045);

}


.password-toggle:active {

    transform: scale(0.94);

}


.password-toggle:focus-visible {

    outline:
        2px solid
        rgba(var(--brand-rgb), 0.20);

    outline-offset: 1px;

}


/* ==========================================================
   CONTINUE BUTTON
   ========================================================== */

.continue-button {

    position: relative;

    width: 100%;
    height: 52px;

    display: flex;

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

    margin-top: 4px;

    overflow: hidden;

    border: 0;

    border-radius: 13px;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            var(--brand),
            color-mix(
                in srgb,
                var(--brand),
                #506dff 30%
            )
        );

    box-shadow:

        0 1px 1px
        rgba(255, 255, 255, 0.18)
        inset,

        0 7px 17px
        rgba(var(--brand-rgb), 0.16);

    font-family: inherit;

    font-size: 12.5px;

    font-weight: 620;

    letter-spacing: -0.005em;

    cursor: pointer;

    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        filter 160ms ease;

}


.continue-button::before {

    content: "";

    position: absolute;

    inset: 0;

    opacity: 0;

    background:
        radial-gradient(
            circle at 50% 0%,
            rgba(255, 255, 255, 0.22),
            transparent 58%
        );

    transition:
        opacity 180ms ease;

}


.continue-button:hover {

    transform:
        translateY(-1px);

    box-shadow:

        0 1px 1px
        rgba(255, 255, 255, 0.18)
        inset,

        0 11px 23px
        rgba(var(--brand-rgb), 0.20);

}


.continue-button:hover::before {

    opacity: 1;

}


.continue-button:active {

    transform: translateY(0);

}


.button-label {

    position: relative;
    z-index: 2;

}


.button-arrow {

    position: absolute;

    right: 17px;

    z-index: 2;

    display: flex;

    align-items: center;

    font-size: 15px;

    opacity: 0.76;

    transition:
        transform 170ms ease;

}


.continue-button:hover
.button-arrow {

    transform:
        translateX(2px);

}


/* ==========================================================
   LOADER
   ========================================================== */

.button-loader {

    display: none;

    width: 18px;
    height: 18px;

    border:
        2px solid
        rgba(255, 255, 255, 0.28);

    border-top-color:
        #ffffff;

    border-radius: 50%;

    animation:
        loginSpinner
        650ms
        linear
        infinite;

}


@keyframes loginSpinner {

    to {
        transform: rotate(360deg);
    }

}


.continue-button.is-loading {

    cursor: wait;

}


.continue-button.is-loading
.button-label,

.continue-button.is-loading
.button-arrow {

    display: none;

}


.continue-button.is-loading
.button-loader {

    display: block;

}


/* ==========================================================
   TRUST LINE
   ========================================================== */

.trust-line {

    display: flex;

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

    gap: 8px;

    margin-top: 23px;

    color: #9aa2af;

    font-size: 9.5px;

    white-space: nowrap;

}


.trust-mark {

    display: flex;

    color: #8994a7;

    font-size: 10px;

}


.trust-separator {

    width: 2px;
    height: 2px;

    border-radius: 50%;

    background: #c2c7d0;

}


/* ==========================================================
   STAGE FOOTER
   ========================================================== */

.stage-footer {

    width: 100%;

    display: flex;

    align-items: center;

    gap: 13px;

    margin-top: 19px;

    color: #a0a7b4;

    font-size: 8.5px;

    letter-spacing: 0.035em;

    text-transform: uppercase;

    white-space: nowrap;

}


.stage-footer-line {

    flex: 1;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(25, 34, 52, 0.09),
            transparent
        );

}


/* ==========================================================
   MESSAGE SYSTEM
   ========================================================== */

.login-messages {

    display: grid;

    gap: 8px;

    margin-bottom: 19px;

}


.login-message {

    position: relative;

    display: flex;

    align-items: flex-start;

    gap: 9px;

    padding:
        11px
        35px
        11px
        12px;

    border-radius: 10px;

    border:
        1px solid
        rgba(30, 40, 60, 0.07);

    background:
        rgba(245, 247, 250, 0.68);

    color: #596273;

    font-size: 10.5px;

    line-height: 1.5;

    transition:
        opacity 250ms ease,
        transform 250ms ease;

}


.login-message-success {

    color: #28745a;

    background:
        rgba(232, 248, 240, 0.75);

}


.login-message-error,
.login-message-danger {

    color: #9f443d;

    background:
        rgba(253, 240, 239, 0.78);

}


.login-message-warning {

    color: #916c2a;

    background:
        rgba(253, 248, 233, 0.78);

}


.login-message-close {

    position: absolute;

    top: 5px;
    right: 5px;

    width: 27px;
    height: 27px;

    display: grid;

    place-items: center;

    padding: 0;

    border: 0;

    border-radius: 7px;

    background: transparent;

    color: currentColor;

    opacity: 0.55;

    cursor: pointer;

}


.login-message-close:hover {

    background:
        rgba(20, 30, 45, 0.04);

    opacity: 0.9;

}


.login-message.is-leaving {

    opacity: 0;

    transform:
        translateY(-4px);

}


/* ==========================================================
   GLOBAL FOOTER
   ========================================================== */

.login-footer {

    min-height: 30px;

    display: flex;

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

    color: #a0a7b4;

    font-size: 9.5px;

}


.footer-security {

    display: flex;

    align-items: center;

    gap: 6px;

}


.footer-security i {

    font-size: 9px;

}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 820px) {

    .login-shell {

        padding:
            28px
            28px
            22px;

    }


    .login-stage {

        padding:
            45px
            15px;

    }


    .signal-orbit-a {

        width: 760px;

    }


    .signal-orbit-b {

        width: 1000px;

    }

}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 560px) {

    .login-shell {

        min-height: 100svh;

        padding:

            max(
                22px,
                env(safe-area-inset-top)
            )

            20px

            max(
                18px,
                env(safe-area-inset-bottom)
            );

    }


    .system-state-text {

        display: none;

    }


    .system-state {

        gap: 0;

    }


    .brand-mark img {

        max-width: 150px;
        max-height: 38px;

    }


    .login-stage {

        padding:
            35px
            0
            42px;

    }


    .login-stage-inner {

        width: 100%;

    }


    .login-surface {

        padding:
            32px
            25px
            27px;

        border-radius: 21px;

    }


    .surface-header {

        margin-bottom: 27px;

    }


    .surface-header h1 {

        font-size: 27px;

    }


    .field-control,
    .continue-button {

        height: 53px;

    }


    .login-footer {

        font-size: 8.5px;

    }


    .footer-security {

        display: none;

    }


    .stage-footer {

        max-width: 330px;

    }

}


/* ==========================================================
   SHORT HEIGHT LAPTOP
   ========================================================== */

@media (max-height: 760px) and (min-width: 561px) {

    .login-shell {

        padding-top: 24px;
        padding-bottom: 20px;

    }


    .login-stage {

        padding-top: 24px;
        padding-bottom: 28px;

    }


    .login-surface {

        padding:
            30px
            35px
            26px;

    }


    .surface-icon {

        margin-bottom: 17px;

    }


    .surface-header {

        margin-bottom: 24px;

    }

}


/* ==========================================================
   ACCESSIBILITY
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;

        scroll-behavior:
            auto !important;

    }


    .cursor-light {

        display: none;

    }

}
