:root {
    --bg: #020403;
    --panel: #07100c;
    --green: #20e878;
    --orange: #ff5a18;
    --red: #ff1717;
    --white: #e7eee9;
    --muted: #718078;
}

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    color: var(--white);
    background:
        radial-gradient(circle at 20% 35%, rgba(180,0,0,.13), transparent 30%),
        radial-gradient(circle at 80% 60%, rgba(0,130,55,.10), transparent 32%),
        #020403;
    font-family: "Courier New", monospace;
    overflow-x: hidden;
}

.grid-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background-image:
        linear-gradient(rgba(32,232,120,.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32,232,120,.12) 1px, transparent 1px);
    background-size: 42px 42px;
}

.scanlines {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: .08;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 3px,
        #000 4px
    );
}

.topbar {
    height: 62px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 5;
    border-bottom: 1px solid rgba(32,232,120,.18);
    background: rgba(0,4,2,.9);
}

.brand-mini {
    display: flex;
    align-items: center;
    gap: 7px;
    letter-spacing: 2px;
}

.brand-mini strong {
    color: var(--red);
}

.brand-mini i,
.system-mini i {
    width: 1px;
    height: 20px;
    margin: 0 10px;
    background: #26332d;
}

.brand-mini small {
    color: var(--muted);
    font-size: 10px;
}

.system-mini {
    display: flex;
    align-items: center;
    color: var(--green);
    font-size: 10px;
    letter-spacing: 2px;
}

.online-dot,
.status-dot {
    width: 7px;
    height: 7px;
    margin-right: 8px;
    display: inline-block;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
    animation: pulse 1.4s infinite;
}

@keyframes pulse {
    50% {
        opacity: .3;
    }
}

.login-layout {
    min-height: calc(100vh - 112px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    z-index: 2;
}

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

.identity-panel {
    flex-direction: column;
    padding: 40px;
}

.login-panel {
    padding: 45px;
}

/* MATA */

.eye-stage {
    width: 440px;
    max-width: 100%;
    height: 285px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-ring {
    position: absolute;
    border: 1px solid rgba(255,90,24,.35);
    border-radius: 50%;
    animation: radar 3s infinite;
}

.ring-1 {
    width: 390px;
    height: 225px;
}

.ring-2 {
    width: 325px;
    height: 185px;
    animation-delay: .5s;
}

.ring-3 {
    width: 265px;
    height: 150px;
    animation-delay: 1s;
}

@keyframes radar {
    50% {
        transform: scale(1.04);
        opacity: .3;
    }
}

.cyber-eye {
    width: 330px;
    height: 150px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-white {
    width: 310px;
    height: 135px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--orange);
    border-radius: 70% 15% 70% 15% / 70% 15% 70% 15%;
    transform: rotate(-4deg);
    background: radial-gradient(
        ellipse,
        #aeb5b0,
        #555e59 50%,
        #090c0a 80%
    );
    box-shadow:
        inset 0 0 35px #000,
        0 0 25px rgba(255,40,0,.3);
}

.iris {
    width: 115px;
    height: 115px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: rotate(4deg);
    border: 3px solid #ff3917;
    background: repeating-conic-gradient(
        #ff2500 0deg 4deg,
        #600000 4deg 8deg,
        #ff571d 8deg 10deg
    );
    box-shadow:
        0 0 15px red,
        0 0 45px rgba(255,0,0,.7);
    animation: eyeGlow 1.6s infinite;
}

@keyframes eyeGlow {
    50% {
        box-shadow:
            0 0 25px #ff3c18,
            0 0 70px rgba(255,0,0,.9);
    }
}

.iris-lines {
    position: absolute;
    inset: 10px;
    border: 1px dashed rgba(255,255,255,.35);
    border-radius: 50%;
    animation: spin 10s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.pupil {
    width: 46px;
    height: 46px;
    position: relative;
    border-radius: 50%;
    background: #000;
    box-shadow: 0 0 15px #000;
}

.eye-shine {
    width: 11px;
    height: 11px;
    position: absolute;
    top: 7px;
    left: 8px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 8px white;
}

.target-line {
    position: absolute;
    opacity: .55;
}

.target-line.horizontal {
    width: 430px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
}

.target-line.vertical {
    width: 1px;
    height: 250px;
    background: linear-gradient(transparent, var(--orange), transparent);
}

/* BRAND */

.main-brand {
    text-align: center;
}

.main-brand h1 {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: clamp(45px, 5vw, 70px);
    letter-spacing: -4px;
}

.main-brand h1 strong {
    color: var(--red);
    margin-left: 8px;
}

.brand-line {
    width: 80%;
    height: 1px;
    margin: 16px auto;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
}

.main-brand p {
    margin: 0;
    color: #bac6bf;
    font-size: 12px;
    letter-spacing: 6px;
}

.brand-tags {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 12px;
    color: var(--orange);
    font-size: 10px;
    letter-spacing: 2px;
}

.brand-tags b {
    color: var(--green);
}

.status-box {
    width: min(440px, 100%);
    margin-top: 30px;
    padding: 13px 16px;
    border: 1px solid rgba(32,232,120,.15);
    background: rgba(3,12,8,.6);
    font-size: 9px;
}

.status-box div {
    padding: 5px 0;
    display: flex;
    align-items: center;
    color: #74837a;
}

.status-box strong {
    margin-left: auto;
    color: var(--green);
}

.status-dot.orange {
    background: var(--orange);
    box-shadow: 0 0 10px var(--orange);
}

/* LOGIN */

.login-card {
    width: min(510px, 100%);
    padding: 42px;
    position: relative;
    border: 1px solid var(--orange);
    background: linear-gradient(145deg, rgba(7,15,11,.97), rgba(2,7,5,.97));
    box-shadow: 0 25px 80px rgba(0,0,0,.6);
}

.corner {
    width: 20px;
    height: 20px;
    position: absolute;
}

.corner-tl {
    top: -2px;
    left: -2px;
    border-top: 3px solid var(--orange);
    border-left: 3px solid var(--orange);
}

.corner-tr {
    top: -2px;
    right: -2px;
    border-top: 3px solid var(--orange);
    border-right: 3px solid var(--orange);
}

.corner-bl {
    bottom: -2px;
    left: -2px;
    border-bottom: 3px solid var(--orange);
    border-left: 3px solid var(--orange);
}

.corner-br {
    bottom: -2px;
    right: -2px;
    border-bottom: 3px solid var(--orange);
    border-right: 3px solid var(--orange);
}

.login-heading > span {
    color: var(--green);
    font-size: 9px;
    letter-spacing: 3px;
}

.login-heading h2 {
    margin: 12px 0 10px;
    font-family: Arial, sans-serif;
    font-size: 28px;
}

.login-heading h2 strong {
    display: block;
    color: var(--red);
    font-size: 38px;
}

.login-heading p {
    margin: 0 0 25px;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 13px;
}

#loginForm label {
    display: block;
    margin: 17px 0 8px;
    color: #7c8a82;
    font-size: 9px;
    letter-spacing: 2px;
}

.input-box {
    height: 55px;
    display: flex;
    align-items: center;
    border: 1px solid #34423a;
    background: rgba(0,5,3,.75);
}

.input-box:focus-within {
    border-color: var(--green);
    box-shadow: 0 0 15px rgba(32,232,120,.08);
}

.input-icon {
    width: 50px;
    text-align: center;
    color: var(--green);
    font-size: 18px;
}

.input-box input {
    width: 100%;
    height: 100%;
    padding: 0 10px 0 0;
    border: 0;
    outline: 0;
    color: white;
    background: transparent;
    font-size: 14px;
}

.password-toggle {
    width: 50px;
    height: 100%;
    border: 0;
    color: #9aa49e;
    background: transparent;
    cursor: pointer;
}

.login-button {
    width: 100%;
    height: 57px;
    margin-top: 27px;
    border: 1px solid #ff6b2e;
    color: white;
    cursor: pointer;
    background: linear-gradient(90deg, #b92307, #ff4a13, #a31b07);
    box-shadow: 0 0 22px rgba(255,70,10,.25);
    font-weight: bold;
    letter-spacing: 3px;
    font-size: 14px;
}

.login-button:hover {
    box-shadow: 0 0 35px rgba(255,70,10,.5);
}

.login-message {
    display: none;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #8f261d;
    color: #ff786b;
    background: rgba(100,0,0,.15);
    font-size: 11px;
}

.login-message.show {
    display: block;
}

.security-info {
    margin-top: 25px;
    padding-top: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #18221d;
}

.security-info > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.security-icon,
.encrypted {
    color: var(--green);
}

.security-info strong {
    display: block;
    font-size: 9px;
}

.security-info small {
    color: #536159;
    font-size: 9px;
}

.encrypted {
    font-size: 8px;
}

.login-footer {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4b5851;
    font-size: 8px;
    letter-spacing: 2px;
}

.login-footer span {
    height: 1px;
    flex: 1;
    background: #18221d;
}

.footer {
    min-height: 50px;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 5;
    border-top: 1px solid rgba(32,232,120,.15);
    color: #58665e;
    background: rgba(0,3,2,.9);
    font-size: 8px;
    letter-spacing: 1px;
}

.footer strong {
    color: var(--red);
}

.footer > div:first-child span {
    margin-left: 15px;
}

@media (max-width: 900px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .identity-panel {
        padding: 35px 15px 15px;
    }

    .login-panel {
        padding: 25px 15px 50px;
    }

    .brand-mini small,
    .brand-mini i,
    #clock,
    .system-mini i,
    .footer-security {
        display: none;
    }
}

@media (max-width: 520px) {
    .topbar {
        height: 55px;
        padding: 0 14px;
    }

    .eye-stage {
        height: 210px;
        transform: scale(.78);
        margin: -15px 0;
    }

    .main-brand h1 {
        font-size: 42px;
    }

    .main-brand p {
        font-size: 8px;
        letter-spacing: 3px;
    }

    .brand-tags {
        font-size: 8px;
        gap: 6px;
    }

    .login-card {
        padding: 30px 21px;
    }

    .login-heading h2 strong {
        font-size: 31px;
    }

    .footer {
        padding: 0 14px;
    }

    .footer > div:first-child span {
        display: none;
    }
}
