*{margin:0;padding:0;box-sizing:border-box}

:root{
    --green:#20ff9a;
    --cyan:#62fff4;
    --orange:#ffb84d;
    --text:#d9fff9;
    --border:rgba(98,255,244,.48);
}

html,body{height:100%}

body{
    min-height:100vh;
    overflow:hidden;
    font-family:Consolas,"Courier New",monospace;
    color:var(--text);
    background:
        radial-gradient(circle at 68% 30%,rgba(15,255,190,.16),transparent 32%),
        radial-gradient(circle at 35% 70%,rgba(0,160,255,.12),transparent 30%),
        linear-gradient(135deg,#020606,#06191c 52%,#010404);
}

#networkCanvas{
    position:fixed;
    inset:0;
    width:100vw;
    height:100vh;
    z-index:0;
    pointer-events:none;
    opacity:.9;
}

.server-room{
    position:fixed;
    inset:0;
    z-index:1;
    opacity:.08;
    pointer-events:none;
    background:
        linear-gradient(90deg,rgba(255,255,255,.025) 1px,transparent 1px),
        linear-gradient(rgba(255,255,255,.025) 1px,transparent 1px);
    background-size:80px 80px;
}

.noise,.scanlines{display:none}

.login-shell{
    position:relative;
    z-index:2;
    height:100vh;
    display:grid;
    grid-template-columns:1fr 1fr;
    align-items:center;
    padding:22px 48px 110px;
}

/* ===== ЛЕВОЕ ОКНО ===== */

.terminal-panel{
    position:relative;
    z-index:1;
    width:790px;
    height:calc(100vh - 135px);
    min-height:560px;
    padding:34px 42px 28px 42px;
    border:1px solid var(--border);
    border-radius:22px;
    overflow:hidden;

    background:rgba(2,12,16,.90);

    box-shadow:
        0 0 28px rgba(32,255,154,.12),
        inset 0 0 24px rgba(98,255,244,.035);

    transform:
        perspective(1400px)
        rotateY(14deg)
        rotateX(1deg)
        skewY(-1deg)
        translateX(12px);

    transform-origin:left center;
}

.terminal-panel::after{
    display:none;
}

.terminal-header{
    display:flex;
    gap:14px;
    color:var(--text);
    font-weight:700;
    font-size:15px;
    margin-bottom:10px;
}

.terminal-panel h1{
    font-size:42px;
    line-height:1.05;
    color:var(--cyan);
    margin-bottom:18px;
    text-shadow:
        0 0 7px rgba(98,255,244,.62),
        0 0 14px rgba(98,255,244,.18);
}

.terminal-subtitle{
    font-size:18px;
    margin-bottom:24px;
}

.logs{
    font-size:14px;
    line-height:1.55;
    margin-bottom:22px;
}

.logs p{
    display:grid;
    grid-template-columns:1fr auto;
    gap:20px;
    margin-bottom:6px;
    white-space:nowrap;
}

.logs b{
    color:var(--green);
    text-align:right;
}

.waiting{
    color:var(--green);
    font-size:16px;
    margin-bottom:24px;
}

.terminal-panel h2{
    color:var(--cyan);
    font-size:24px;
    margin-bottom:14px;
}

.service-list{
    width:100%;
    border:1px solid rgba(98,255,244,.18);
    border-radius:10px;
    overflow:hidden;
    margin-bottom:16px;
    background:rgba(0,0,0,.12);
}

.service-list div{
    display:grid;
    grid-template-columns:1fr auto;
    gap:20px;
    padding:10px 14px;
    border-bottom:1px solid rgba(255,255,255,.07);
    font-size:15px;
}

.service-list div:last-child{border-bottom:none}

.service-list b{
    color:var(--green);
    text-align:right;
}

/* ===== ГРАФИК ===== */

.activity-card{
    position:relative;
    height:145px;
    border:1px solid rgba(32,255,154,.26);
    border-radius:10px;
    padding:10px 12px;
    overflow:hidden;
    background:rgba(0,0,0,.20);
}

.activity-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:var(--cyan);
    font-size:15px;
    margin-bottom:8px;
    position:relative;
    z-index:2;
    text-transform:uppercase;
}

.activity-top b{
    color:var(--green);
    font-size:22px;
    text-shadow:0 0 10px rgba(32,255,154,.55);
}

.activity-top small{
    font-size:11px;
    opacity:.75;
}

#activityCanvas{
    position:absolute;
    left:0;
    bottom:0;
    width:100%;
    height:112px;
    display:block;
    background:
        linear-gradient(rgba(32,255,154,.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32,255,154,.07) 1px, transparent 1px),
        rgba(0,0,0,.14);
    background-size:44px 28px;
}

/* ===== ПРАВОЕ ОКНО ===== */

.auth-card{
    position:relative;
    z-index:5;
    width:640px;
    justify-self:start;
    margin-left:-140px;
    padding:48px 52px 42px;
    border:1px solid rgba(160,255,250,.72);
    border-radius:24px;

    background:rgba(3,15,18,.96);

    box-shadow:
        0 0 36px rgba(98,255,244,.18),
        0 0 70px rgba(32,255,154,.07),
        inset 0 0 18px rgba(98,255,244,.03);

    transform:
        perspective(1100px)
        rotateY(-1deg)
        translateY(4px);
}

.card-glow{display:none}

.auth-title{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:16px;
    margin-bottom:20px;
    color:var(--text);
}

.auth-title span{
    height:1px;
    width:90px;
    background:linear-gradient(90deg,transparent,var(--green),transparent);
}

.brand{
    text-align:center;
    font-size:64px;
    letter-spacing:13px;
    color:var(--cyan);
    text-shadow:
        0 0 5px rgba(98,255,244,.65),
        0 0 10px rgba(98,255,244,.20);
    margin-bottom:12px;
}

.version{
    text-align:center;
    font-size:18px;
    margin-bottom:36px;
}

.login-form{
    display:grid;
    gap:14px;
}

.login-form label{
    color:var(--cyan);
    font-size:15px;
    font-weight:700;
}

.input-wrap{
    height:58px;
    display:flex;
    align-items:center;
    gap:14px;
    padding:0 18px;
    border:1px solid rgba(98,255,244,.48);
    border-radius:10px;
    background:rgba(0,0,0,.26);
    box-shadow:inset 0 0 14px rgba(98,255,244,.035);
}

.input-wrap:focus-within{
    border-color:var(--green);
    box-shadow:
        0 0 14px rgba(32,255,154,.16),
        inset 0 0 12px rgba(98,255,244,.04);
}

.input-wrap input{
    width:100%;
    border:none;
    outline:none;
    background:transparent;
    color:white;
    font-size:18px;
    font-family:inherit;
}

.show-password{
    border:none;
    background:none;
    color:var(--cyan);
    cursor:pointer;
    font-size:18px;
}

.form-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:8px 0 10px;
    font-size:15px;
}

.form-row a{
    color:var(--cyan);
    text-decoration:none;
}

.remember{
    display:flex;
    gap:10px;
    align-items:center;
    color:var(--text)!important;
    text-transform:none!important;
}

.connect-btn{
    height:68px;
    border:1px solid var(--green);
    border-radius:12px;
    background:linear-gradient(90deg,rgba(32,255,154,.20),rgba(32,255,154,.045));
    color:white;
    font-size:26px;
    letter-spacing:5px;
    font-family:inherit;
    cursor:pointer;
    box-shadow:0 0 24px rgba(32,255,154,.24);
    transition:.25s;
}

.connect-btn:hover{
    transform:translateY(-2px);
    box-shadow:0 0 34px rgba(32,255,154,.35);
}

.security-note{
    margin-top:16px;
    font-size:15px;
    opacity:.82;
}

/* ===== НИЖНИЙ БАР ===== */

.status-bar{
    position:fixed;
    z-index:10;
    left:54px;
    right:54px;
    bottom:42px;
    height:54px;
    border:1px solid var(--border);
    border-radius:16px;
    background:rgba(3,15,18,.92);
    display:flex;
    align-items:center;
    justify-content:center;
    gap:34px;
    color:var(--green);
    font-size:16px;
    font-weight:700;
    box-shadow:0 0 20px rgba(32,255,154,.10);
}

.status-bar .warning{
    color:var(--orange);
}

/* ===== 1366x768 ===== */

@media (max-width:1450px), (max-height:820px){
    .login-shell{
        padding:18px 28px 94px;
    }

    .terminal-panel{
        width:760px;
        height:calc(100vh - 135px);
        min-height:520px;
        padding:28px 34px 24px 34px;
        transform:
            perspective(1350px)
            rotateY(13deg)
            rotateX(1deg)
            skewY(-1deg)
            translateX(8px);
    }

    .terminal-panel h1{
        font-size:36px;
    }

    .logs{
        font-size:13px;
    }

    .terminal-panel h2{
        font-size:22px;
    }

    .activity-card{
        height:130px;
    }

    #activityCanvas{
        height:100px;
    }

    .auth-card{
        width:580px;
        margin-left:-130px;
        padding:40px 44px 34px;
    }

    .brand{
        font-size:54px;
    }

    .input-wrap{
        height:52px;
    }

    .connect-btn{
        height:60px;
        font-size:22px;
    }

    .status-bar{
        left:32px;
        right:32px;
        bottom:28px;
        height:48px;
        font-size:14px;
        gap:22px;
    }
}