
:root{
    --bg:#fbfbfe;
    --ink:#161722;
    --muted:#737784;
    --line:#e5e6ed;
    --purple:#6d4bff;
    --blue:#3f69ff;
    --green:#25ad60;
    --red:#e12f45;
}

*{box-sizing:border-box}

html{color-scheme:light}

body{
    min-height:100vh;
    margin:0;
    overflow-x:hidden;
    color:var(--ink);
    background:var(--bg);
    font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    -webkit-font-smoothing:antialiased;
}

button,input{font:inherit}

.test-bg{
    position:fixed;
    inset:0;
    overflow:hidden;
    pointer-events:none;
}

.orb{
    position:absolute;
    border-radius:50%;
    filter:blur(100px);
    opacity:.13;
}

.orb-one{
    width:420px;
    height:420px;
    left:-200px;
    top:2%;
    background:#734fff;
}

.orb-two{
    width:450px;
    height:450px;
    right:-210px;
    bottom:-80px;
    background:#3e72ff;
}

.grid{
    position:absolute;
    inset:0;
    opacity:.25;
    background-image:
        linear-gradient(rgba(82,70,150,.035) 1px,transparent 1px),
        linear-gradient(90deg,rgba(82,70,150,.035) 1px,transparent 1px);
    background-size:44px 44px;
    mask-image:linear-gradient(to bottom,#000,transparent 82%);
}

.gate-header{
    position:relative;
    z-index:5;
    width:min(1240px,calc(100% - 48px));
    height:78px;
    margin:auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.gate-brand{
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--ink);
    text-decoration:none;
    font-family:Manrope,Inter,sans-serif;
    font-size:22px;
    font-weight:800;
    letter-spacing:-.8px;
}

.gate-brand>span:last-child>span{color:#315dff}

.brand-mark{
    width:31px;
    height:31px;
    border-radius:11px 11px 11px 3px;
    display:grid;
    place-items:center;
    color:#fff;
    background:linear-gradient(145deg,var(--purple),#4770ff);
    transform:rotate(-12deg);
    box-shadow:0 9px 24px rgba(92,72,240,.27);
}

.brand-mark svg{transform:rotate(12deg)}

.domain-chip{
    display:flex;
    align-items:center;
    gap:7px;
    padding:7px 10px;
    border:1px solid #e1e2e9;
    border-radius:999px;
    color:#737681;
    background:rgba(255,255,255,.78);
    box-shadow:0 7px 20px rgba(30,30,60,.04);
    font-size:10px;
    font-weight:800;
}

.domain-dot{
    width:7px;
    height:7px;
    border-radius:50%;
    background:var(--red);
    box-shadow:0 0 0 0 rgba(225,47,69,.38);
    animation:redPulse 2s infinite;
}

.gate-main{
    position:relative;
    z-index:2;
    min-height:calc(100vh - 78px);
    padding:18px 24px 50px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.gate-shell{
    width:min(1160px,100%);
    min-height:650px;
    display:grid;
    grid-template-columns:1fr 1fr;
    overflow:hidden;
    border:1px solid var(--line);
    border-radius:25px;
    background:#fff;
    box-shadow:0 30px 90px rgba(40,34,91,.12);
    animation:gateIn .65s cubic-bezier(.22,.8,.2,1) both;
}

.gate-form-panel{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:54px 58px;
}

.gate-form-content{
    width:min(100%,465px);
}

.test-warning{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:7px 9px;
    border:1px solid #ffd1d8;
    border-radius:999px;
    color:#c91f35;
    background:#fff4f6;
    font-size:9px;
    font-weight:900;
    letter-spacing:1px;
}

.warning-dot{
    width:7px;
    height:7px;
    border-radius:50%;
    background:var(--red);
    animation:redPulse 2s infinite;
}

.gate-form-content h1{
    margin:17px 0 0;
    font-family:Manrope,Inter,sans-serif;
    font-size:39px;
    line-height:1.06;
    letter-spacing:-1.55px;
}

.gate-intro{
    margin:11px 0 0;
    color:var(--muted);
    font-size:13px;
    line-height:1.7;
}

.red-notice{
    display:flex;
    align-items:flex-start;
    gap:11px;
    margin-top:20px;
    padding:13px;
    border:1px solid #ffd0d7;
    border-radius:13px;
    background:linear-gradient(90deg,#fff6f7,#fff);
}

.red-notice-icon{
    width:35px;
    height:35px;
    flex:0 0 auto;
    border-radius:10px;
    display:grid;
    place-items:center;
    color:#fff;
    background:linear-gradient(145deg,#f04155,#d82138);
    box-shadow:0 8px 18px rgba(218,31,55,.17);
    font-size:17px;
    font-weight:900;
}

.red-notice strong{
    display:block;
    color:#bd1f33;
    font-size:10px;
    letter-spacing:.25px;
}

.red-notice span{
    display:block;
    margin-top:3px;
    color:#985f67;
    font-size:9px;
    line-height:1.5;
}

.gate-error{
    display:flex;
    align-items:flex-start;
    gap:9px;
    margin-top:16px;
    padding:11px 12px;
    border:1px solid #ffcfd7;
    border-radius:11px;
    color:#bc263a;
    background:#fff3f5;
    font-size:9px;
    font-weight:700;
    line-height:1.45;
}

.gate-error svg{flex:0 0 auto}

.gate-form{margin-top:22px}

.password-field>span{
    display:block;
    margin-bottom:8px;
    color:#4d505c;
    font-size:11px;
    font-weight:800;
}

.password-control{
    min-height:52px;
    display:flex;
    align-items:center;
    gap:9px;
    padding:0 13px;
    border:1px solid #dfe1e8;
    border-radius:12px;
    background:#fff;
    transition:border-color .22s ease,box-shadow .22s ease,transform .22s ease;
}

.password-control:focus-within{
    border-color:#8c77ee;
    box-shadow:0 0 0 4px rgba(109,75,255,.08);
    transform:translateY(-1px);
}

.lock-icon{color:#9699a5}

.password-control:focus-within .lock-icon{color:#654cdf}

.password-control input{
    min-width:0;
    width:100%;
    height:50px;
    border:0;
    outline:0;
    background:transparent;
    color:#242630;
    font-size:12px;
}

.password-control input::placeholder{color:#a7aab4}

.show-password{
    flex:0 0 auto;
    border:0;
    padding:6px 1px 6px 7px;
    color:#654add;
    background:transparent;
    cursor:pointer;
    font-size:9px;
    font-weight:900;
}

.attempt-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-top:9px;
    color:#858894;
    font-size:8px;
}

.attempt-row>span{
    display:flex;
    align-items:center;
    gap:5px;
}

.attempt-row svg{color:#5e48cb}

.attempt-row strong{
    color:#6e7080;
    font-size:8px;
}

.enter-button{
    width:100%;
    min-height:49px;
    margin-top:16px;
    border:0;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    color:#fff;
    background:linear-gradient(135deg,#7754f8,#5e46df 58%,#4161ef);
    box-shadow:0 13px 28px rgba(92,68,221,.24);
    cursor:pointer;
    font-size:10px;
    font-weight:900;
    transition:transform .23s cubic-bezier(.22,.8,.2,1),box-shadow .23s ease,filter .23s ease;
}

.enter-button:hover:not(:disabled){
    transform:translateY(-2px);
    box-shadow:0 18px 36px rgba(92,68,221,.30);
}

.enter-button:disabled{
    cursor:not-allowed;
    opacity:.55;
}

.gate-footnote{
    margin:12px 0 0;
    color:#9d9fa8;
    text-align:center;
    font-size:8px;
}

.gate-visual-panel{
    position:relative;
    overflow:hidden;
    display:flex;
    align-items:center;
    padding:54px 48px;
    color:#fff;
    background:
        radial-gradient(circle at 92% 5%,rgba(255,255,255,.14),transparent 27%),
        radial-gradient(circle at 3% 96%,rgba(90,148,255,.22),transparent 34%),
        linear-gradient(145deg,#744cf0 0%,#4e3ac5 57%,#27399d 100%);
}

.gate-visual-panel:before{
    content:"";
    position:absolute;
    width:320px;
    height:320px;
    right:-155px;
    top:-145px;
    border:1px solid rgba(255,255,255,.11);
    border-radius:50%;
    box-shadow:0 0 0 48px rgba(255,255,255,.025),0 0 0 95px rgba(255,255,255,.017);
}

.visual-glow{
    position:absolute;
    width:270px;
    height:270px;
    left:-105px;
    bottom:-125px;
    border-radius:50%;
    background:rgba(80,144,255,.28);
    filter:blur(65px);
}

.visual-content{
    position:relative;
    z-index:2;
    width:100%;
}

.visual-eyebrow{
    display:flex;
    align-items:center;
    gap:8px;
    color:#ddd6fa;
    font-size:8px;
    font-weight:900;
    letter-spacing:1px;
}

.visual-eyebrow span{
    width:21px;
    height:2px;
    border-radius:999px;
    background:#bcaeff;
}

.visual-content h2{
    margin:14px 0 9px;
    font-family:Manrope,Inter,sans-serif;
    font-size:31px;
    line-height:1.18;
    letter-spacing:-1.05px;
}

.visual-content>p{
    max-width:450px;
    margin:0;
    color:#ddd8f2;
    font-size:11px;
    line-height:1.7;
}

.security-list{
    display:grid;
    gap:10px;
    margin-top:25px;
}

.security-list article{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    gap:10px;
    min-height:66px;
    padding:11px 12px;
    border:1px solid rgba(255,255,255,.10);
    border-radius:12px;
    background:rgba(255,255,255,.065);
    transition:transform .25s ease,background .25s ease;
}

.security-list article:hover{
    transform:translateX(3px);
    background:rgba(255,255,255,.095);
}

.security-icon{
    width:39px;
    height:39px;
    border-radius:10px;
    display:grid;
    place-items:center;
    color:#cfbeff;
    background:rgba(255,255,255,.10);
}

.security-icon.green{color:#a8efc3}
.security-icon.red{color:#ffadb7}
.security-icon.blue{color:#b6d3ff}

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

.security-list div>span{
    display:block;
    margin-top:2px;
    color:#d2cde5;
    font-size:7px;
    line-height:1.4;
}

.security-check{
    min-width:57px;
    padding:5px 7px;
    border-radius:999px;
    color:#dcd5ff!important;
    background:rgba(255,255,255,.09);
    text-align:center;
    font-size:6px!important;
    font-weight:900;
}

.server-card{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    margin-top:15px;
    padding:13px 14px;
    border:1px solid rgba(255,255,255,.11);
    border-radius:13px;
    background:rgba(14,20,79,.17);
}

.server-card small{
    display:block;
    color:#c9c4df;
    font-size:6px;
    font-weight:900;
    letter-spacing:.8px;
}

.server-card strong{
    display:block;
    margin-top:3px;
    font-size:10px;
}

.server-state{
    display:flex;
    align-items:center;
    gap:5px;
    color:#f0d9dc;
    font-size:7px;
    font-weight:800;
}

.server-state i{
    width:7px;
    height:7px;
    border-radius:50%;
    background:#ff6d7e;
    box-shadow:0 0 0 0 rgba(255,109,126,.36);
    animation:redPulse 2s infinite;
}

@keyframes redPulse{
    0%{box-shadow:0 0 0 0 rgba(225,47,69,.38)}
    70%{box-shadow:0 0 0 8px rgba(225,47,69,0)}
    100%{box-shadow:0 0 0 0 rgba(225,47,69,0)}
}

@keyframes gateIn{
    from{opacity:0;transform:translateY(14px) scale(.993)}
    to{opacity:1;transform:none}
}

@media(max-width:900px){
    .gate-shell{
        width:min(740px,100%);
        grid-template-columns:1fr;
    }

    .gate-visual-panel{
        min-height:450px;
        order:-1;
    }

    .gate-form-panel,
    .gate-visual-panel{
        padding:42px;
    }
}

@media(max-width:600px){
    .gate-header{
        width:calc(100% - 28px);
        height:68px;
    }

    .domain-chip{
        font-size:8px;
    }

    .gate-main{
        min-height:calc(100vh - 68px);
        padding:8px 14px 28px;
        align-items:flex-start;
    }

    .gate-shell{border-radius:19px}

    .gate-form-panel{padding:31px 20px}

    .gate-form-content h1{font-size:31px}

    .gate-intro{font-size:11px}

    .gate-visual-panel{
        min-height:390px;
        padding:34px 24px;
    }

    .visual-content h2{font-size:26px}
}

@media(max-width:430px){
    .gate-visual-panel{display:none}

    .domain-chip{
        max-width:145px;
        overflow:hidden;
        text-overflow:ellipsis;
    }

    .gate-form-content h1{font-size:29px}

    .attempt-row{
        align-items:flex-start;
        flex-direction:column;
        gap:5px;
    }
}

@media(prefers-reduced-motion:reduce){
    *,*:before,*:after{
        animation-duration:.001ms!important;
        transition-duration:.001ms!important;
    }
}
