
/* =========================================================
   UN ARMY // LOGIN
   CYBER BLUE // PURPLE
   FULL LOGIN SYSTEM
========================================================= */


/* =========================================================
   ROOT
========================================================= */

:root {

    --login-bg: #03040b;

    --login-blue: #38bdf8;

    --login-blue-bright: #67e8f9;

    --login-purple: #8b5cf6;

    --login-purple-bright: #a78bfa;

    --login-white: #f8fafc;

    --login-text: #cbd5e1;

    --login-muted: #64748b;

    --login-border: rgba(139, 92, 246, 0.28);

    --login-border-blue: rgba(56, 189, 248, 0.35);

}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {

    min-height: 100vh;

    overflow-x: hidden;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(99, 102, 241, 0.12),
            transparent 38%
        ),
        radial-gradient(
            circle at 20% 80%,
            rgba(56, 189, 248, 0.08),
            transparent 35%
        ),
        #03040b;

    color: var(--login-white);

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

}


/* =========================================================
   BACKGROUND
========================================================= */

.login-background {

    position: fixed;

    inset: 0;

    z-index: 0;

    overflow: hidden;

    pointer-events: none;

    background:
        linear-gradient(
            135deg,
            rgba(56, 189, 248, 0.025),
            transparent 40%,
            rgba(139, 92, 246, 0.035)
        );

}


/* =========================================================
   GRID
========================================================= */

.login-grid {

    position: absolute;

    inset: -100px;

    opacity: 0.22;

    background-image:
        linear-gradient(
            rgba(56, 189, 248, 0.055) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(139, 92, 246, 0.055) 1px,
            transparent 1px
        );

    background-size: 55px 55px;

    transform:
        perspective(700px)
        rotateX(58deg)
        scale(1.5);

    transform-origin: center bottom;

}


/* =========================================================
   GLOW
========================================================= */

.login-glow {

    position: absolute;

    width: 500px;

    height: 500px;

    border-radius: 50%;

    filter: blur(90px);

    opacity: 0.12;

}

.login-glow-one {

    top: -220px;

    left: -180px;

    background: var(--login-blue);

}

.login-glow-two {

    right: -220px;

    bottom: -240px;

    background: var(--login-purple);

}


/* =========================================================
   PARTICLES
========================================================= */

.login-particles span {

    position: absolute;

    width: 2px;

    height: 2px;

    border-radius: 50%;

    background: var(--login-blue-bright);

    box-shadow:
        0 0 8px rgba(56, 189, 248, 0.8);

    opacity: 0.6;

    animation:
        loginParticle 5s linear infinite;

}

.login-particles span:nth-child(1) {
    top: 12%;
    left: 8%;
    animation-delay: -1s;
}

.login-particles span:nth-child(2) {
    top: 25%;
    left: 18%;
    animation-delay: -3s;
}

.login-particles span:nth-child(3) {
    top: 72%;
    left: 13%;
    animation-delay: -2s;
}

.login-particles span:nth-child(4) {
    top: 85%;
    left: 30%;
    animation-delay: -4s;
}

.login-particles span:nth-child(5) {
    top: 18%;
    right: 15%;
    animation-delay: -2s;
}

.login-particles span:nth-child(6) {
    top: 42%;
    right: 8%;
    animation-delay: -1s;
}

.login-particles span:nth-child(7) {
    top: 76%;
    right: 20%;
    animation-delay: -4s;
}

.login-particles span:nth-child(8) {
    top: 55%;
    left: 4%;
    animation-delay: -3s;
}

.login-particles span:nth-child(9) {
    top: 8%;
    right: 35%;
    animation-delay: -1s;
}

.login-particles span:nth-child(10) {
    bottom: 8%;
    right: 5%;
    animation-delay: -2s;
}


@keyframes loginParticle {

    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    30% {
        opacity: 0.7;
    }

    70% {
        opacity: 0.7;
    }

    100% {
        transform: translateY(-30px);
        opacity: 0;
    }

}


/* =========================================================
   PAGE
========================================================= */

.login-page {

    position: relative;

    z-index: 2;

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 60px 20px;

}


/* =========================================================
   AUTH BOX
========================================================= */

.auth-box {

    position: relative;

    width: min(100%, 480px);

    padding: 36px;

    border: 1px solid var(--login-border);

    border-radius: 22px;

    background:
        linear-gradient(
            145deg,
            rgba(10, 14, 30, 0.94),
            rgba(5, 7, 17, 0.97)
        );

    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.65),
        0 0 70px rgba(56, 189, 248, 0.05),
        inset 0 0 35px rgba(139, 92, 246, 0.025);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    overflow: hidden;

    animation: loginAppear 0.7s ease both;

}


@keyframes loginAppear {

    from {

        opacity: 0;

        transform:
            translateY(25px)
            scale(0.97);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


/* =========================================================
   TOP LINE
========================================================= */

.auth-box::before {

    content: "";

    position: absolute;

    top: 0;

    left: 8%;

    width: 84%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--login-blue),
            var(--login-purple),
            transparent
        );

    box-shadow:
        0 0 15px rgba(56, 189, 248, 0.6);

}


/* =========================================================
   SYSTEM BAR
========================================================= */

.login-system {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    padding-bottom: 24px;

    border-bottom: 1px solid rgba(148, 163, 184, 0.08);

    color: var(--login-muted);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;

}


.system-dot {

    width: 7px;

    height: 7px;

    margin-right: auto;

    border-radius: 50%;

    background: var(--login-blue-bright);

    box-shadow:
        0 0 8px var(--login-blue),
        0 0 18px rgba(56, 189, 248, 0.45);

    animation: systemPulse 1.8s ease-in-out infinite;

}


@keyframes systemPulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

}


.system-status {

    color: var(--login-blue-bright);

}


/* =========================================================
   LOGO
========================================================= */

.login-logo {

    display: flex;

    justify-content: center;

    margin-top: 30px;

}


.logo-ring {

    position: relative;

    width: 82px;

    height: 82px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid rgba(56, 189, 248, 0.65);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(56, 189, 248, 0.12),
            rgba(139, 92, 246, 0.06) 45%,
            transparent 70%
        );

    box-shadow:
        0 0 25px rgba(56, 189, 248, 0.15),
        inset 0 0 25px rgba(139, 92, 246, 0.08);

}


.logo-ring::before {

    content: "";

    position: absolute;

    inset: 7px;

    border: 1px solid rgba(139, 92, 246, 0.45);

    border-radius: 50%;

}


.logo-ring::after {

    content: "";

    position: absolute;

    width: 6px;

    height: 6px;

    top: 3px;

    right: 16px;

    border-radius: 50%;

    background: var(--login-purple-bright);

    box-shadow:
        0 0 10px var(--login-purple);

}


.logo-ring span {

    font-size: 21px;

    font-weight: 900;

    letter-spacing: 3px;

    background:
        linear-gradient(
            135deg,
            var(--login-blue-bright),
            var(--login-purple-bright)
        );

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;

    filter:
        drop-shadow(
            0 0 10px rgba(56, 189, 248, 0.4)
        );

}


/* =========================================================
   HEADING
========================================================= */

.login-heading {

    text-align: center;

    margin: 25px 0 30px;

}


.login-code {

    display: block;

    margin-bottom: 8px;

    color: var(--login-blue);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 3px;

}


.login-heading h1 {

    margin: 0;

    font-size: clamp(30px, 7vw, 43px);

    font-weight: 900;

    letter-spacing: 4px;

    background:
        linear-gradient(
            100deg,
            #ffffff,
            var(--login-blue-bright),
            var(--login-purple-bright)
        );

    -webkit-background-clip: text;

    background-clip: text;

    color: transparent;

}


.login-heading p {

    margin: 10px 0 0;

    color: var(--login-muted);

    font-size: 10px;

    letter-spacing: 2px;

}


/* =========================================================
   ERROR
========================================================= */

.login-error {

    display: flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 20px;

    padding: 13px 15px;

    border: 1px solid rgba(139, 92, 246, 0.28);

    border-left: 2px solid var(--login-purple);

    border-radius: 10px;

    background:
        rgba(139, 92, 246, 0.055);

    animation: errorAppear 0.3s ease both;

}


@keyframes errorAppear {

    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


.error-icon {

    width: 28px;

    height: 28px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid rgba(167, 139, 250, 0.5);

    border-radius: 50%;

    color: var(--login-purple-bright);

    font-weight: 900;

}


.login-error strong {

    display: block;

    color: var(--login-purple-bright);

    font-size: 10px;

    letter-spacing: 1.5px;

}


.login-error small {

    display: block;

    margin-top: 3px;

    color: var(--login-muted);

    font-size: 10px;

}


/* =========================================================
   FORM
========================================================= */

.login-form {

    display: flex;

    flex-direction: column;

    gap: 21px;

}


/* =========================================================
   INPUT GROUP
========================================================= */

.input-group {

    position: relative;

}


.input-group label {

    display: flex;

    justify-content: space-between;

    margin-bottom: 9px;

    color: #94a3b8;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 2px;

}


.input-group label span {

    color: rgba(100, 116, 139, 0.75);

    font-size: 8px;

    letter-spacing: 1px;

}


.input-wrapper {

    position: relative;

}


.input-icon {

    position: absolute;

    top: 50%;

    left: 16px;

    transform: translateY(-50%);

    z-index: 2;

    color: var(--login-blue);

    font-size: 14px;

    text-shadow:
        0 0 8px rgba(56, 189, 248, 0.5);

}


.input-wrapper input {

    width: 100%;

    height: 54px;

    padding:
        0 48px;

    border: 1px solid rgba(100, 116, 139, 0.17);

    border-radius: 11px;

    outline: none;

    background:
        rgba(2, 6, 23, 0.72);

    color: #f8fafc;

    font-size: 13px;

    letter-spacing: 0.5px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;

}


.input-wrapper input::placeholder {

    color: #475569;

    letter-spacing: 1px;

}


.input-wrapper input:focus {

    border-color:
        rgba(56, 189, 248, 0.55);

    background:
        rgba(8, 12, 28, 0.95);

    box-shadow:
        0 0 0 3px rgba(56, 189, 248, 0.055),
        0 0 25px rgba(56, 189, 248, 0.07);

}


.input-group.is-focused label {

    color: var(--login-blue-bright);

}


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {

    position: absolute;

    top: 50%;

    right: 13px;

    width: 34px;

    height: 34px;

    transform: translateY(-50%);

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid transparent;

    border-radius: 8px;

    background: transparent;

    color: var(--login-purple-bright);

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;

}


.password-toggle:hover {

    border-color:
        rgba(139, 92, 246, 0.3);

    background:
        rgba(139, 92, 246, 0.08);

    color: var(--login-blue-bright);

}


.eye {

    font-size: 14px;

}


.eye-closed {

    display: none;

}


.password-toggle[aria-pressed="true"]
.eye-open {

    display: none;

}


.password-toggle[aria-pressed="true"]
.eye-closed {

    display: inline;

}


/* =========================================================
   OPTIONS
========================================================= */

.login-options {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

}


.remember-box {

    display: flex;

    align-items: center;

    gap: 8px;

    color: #64748b;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1px;

    cursor: pointer;

}


.remember-box input {

    position: absolute;

    opacity: 0;

    pointer-events: none;

}


.custom-check {

    width: 16px;

    height: 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: 1px solid rgba(100, 116, 139, 0.35);

    border-radius: 4px;

    color: transparent;

    font-size: 10px;

    transition: 0.2s ease;

}


.remember-box input:checked + .custom-check {

    border-color: var(--login-blue);

    background:
        rgba(56, 189, 248, 0.12);

    color: var(--login-blue-bright);

    box-shadow:
        0 0 12px rgba(56, 189, 248, 0.15);

}


.secure-text {

    color: rgba(139, 92, 246, 0.7);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: 1px;

}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-button {

    position: relative;

    width: 100%;

    height: 58px;

    margin-top: 2px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    overflow: hidden;

    border: 1px solid rgba(56, 189, 248, 0.45);

    border-radius: 11px;

    background:
        linear-gradient(
            100deg,
            rgba(56, 189, 248, 0.11),
            rgba(139, 92, 246, 0.16)
        );

    color: white;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;

}


.login-button:hover {

    transform: translateY(-2px);

    border-color:
        rgba(167, 139, 250, 0.7);

    box-shadow:
        0 10px 35px rgba(56, 189, 248, 0.09),
        0 0 25px rgba(139, 92, 246, 0.08);

}


.login-button:active {

    transform: translateY(0);

}


.button-scan {

    position: absolute;

    top: 0;

    left: -100%;

    width: 45%;

    height: 100%;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,0.13),
            transparent
        );

    transform: skewX(-20deg);

    transition: left 0.7s ease;

}


.login-button:hover .button-scan {

    left: 140%;

}


.button-text {

    position: relative;

    z-index: 2;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 2.5px;

}


.button-arrow {

    position: relative;

    z-index: 2;

    color: var(--login-blue-bright);

    font-size: 19px;

    transition: transform 0.2s ease;

}


.login-button:hover .button-arrow {

    transform: translateX(5px);

}


/* =========================================================
   LOADING
========================================================= */

.login-button.is-loading {

    pointer-events: none;

    opacity: 0.75;

}


.login-button.is-loading .button-arrow {

    animation:
        loginArrowSpin 0.8s linear infinite;

}


@keyframes loginArrowSpin {

    to {
        transform: rotate(360deg);
    }

}


/* =========================================================
   REGISTER
========================================================= */

.login-register {

    margin-top: 26px;

    padding-top: 22px;

    border-top:
        1px solid rgba(148, 163, 184, 0.07);

    text-align: center;

}


.login-register > span {

    display: block;

    margin-bottom: 9px;

    color: #475569;

    font-size: 8px;

    letter-spacing: 1.5px;

}


.login-register a {

    color: var(--login-blue-bright);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1.5px;

    text-decoration: none;

    transition: color 0.2s ease;

}


.login-register a:hover {

    color: var(--login-purple-bright);

}


.login-register b {

    margin-left: 5px;

    font-size: 14px;

}


/* =========================================================
   FOOTER
========================================================= */

.login-footer {

    display: flex;

    justify-content: space-between;

    margin-top: 27px;

    color: #334155;

    font-size: 7px;

    font-weight: 700;

    letter-spacing: 1.5px;

}


/* =========================================================
   SIDE CODE
========================================================= */

.login-side-code {

    position: fixed;

    right: 25px;

    bottom: 22px;

    z-index: 1;

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    gap: 5px;

    color: rgba(100, 116, 139, 0.32);

    font-size: 7px;

    letter-spacing: 1.5px;

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .login-page {

        padding:
            25px 14px;

    }


    .auth-box {

        padding:
            28px 20px;

        border-radius: 17px;

    }


    .login-system {

        font-size: 8px;

        letter-spacing: 1.4px;

    }


    .logo-ring {

        width: 72px;

        height: 72px;

    }


    .login-heading h1 {

        font-size: 31px;

    }


    .login-heading p {

        font-size: 8px;

    }


    .login-options {

        align-items: flex-start;

        flex-direction: column;

    }


    .secure-text {

        display: none;

    }


    .login-side-code {

        display: none;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .auth-box {

        padding:
            24px 16px;

    }


    .login-heading h1 {

        font-size: 27px;

        letter-spacing: 3px;

    }


    .input-wrapper input {

        height: 51px;

    }


    .login-button {

        height: 54px;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        scroll-behavior: auto !important;

        transition-duration: 0.01ms !important;

    }

}

