:root {
    --bg: #05090d;
    --panel: rgba(7, 13, 18, .92);
    --panel-2: rgba(11, 18, 23, .92);
    --line: rgba(147, 175, 195, .31);
    --line-soft: rgba(147, 175, 195, .15);
    --text: #f4f7f9;
    --muted: #8b9aa5;
    --muted-2: #5e6b74;
    --blue: #14a9f4;
    --blue-2: #008edc;
    --blue-3: #006ba9;
    --green: #2be0a0;
    --red: #f06d78;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", Arial, sans-serif;
    letter-spacing: .01em;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.scene {
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        linear-gradient(90deg, rgba(2,6,10,.05), rgba(3,8,12,.28) 35%, rgba(3,8,12,.42) 50%, rgba(3,8,12,.28) 65%, rgba(2,6,10,.05)),
        url("portal-bg.jpg") center top / cover no-repeat;
}
.scene::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 22%, rgba(11, 153, 230, .09), transparent 34%),
        linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.05) 62%, rgba(0,0,0,.7));
}
.scene-grid {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: .24;
    background-image:
        linear-gradient(rgba(108, 161, 194, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(108, 161, 194, .02) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

.topbar {
    position: relative;
    z-index: 20;
    height: 58px;
    border-bottom: 1px solid rgba(135, 162, 180, .28);
    background: rgba(4, 9, 13, .86);
    backdrop-filter: blur(8px);
}
.topbar-inner {
    width: min(1320px, calc(100% - 40px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav { height: 100%; display: flex; align-items: stretch; gap: 34px; }
.nav a {
    position: relative;
    display: flex;
    align-items: center;
    color: #aab4bb;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
    transition: color .18s ease;
}
.nav a:hover, .nav a.active { color: var(--blue); }
.nav a.active::after {
    content: "";
    position: absolute;
    height: 3px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--blue);
    box-shadow: 0 0 12px rgba(20,169,244,.48);
}
.community-stamp {
    align-self: stretch;
    min-width: 190px;
    padding: 8px 24px 6px 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #06121a;
    background: linear-gradient(135deg, transparent 0 18%, #159ee5 18% 100%);
    text-align: left;
}
.community-stamp span { font-weight: 950; font-size: 16px; letter-spacing: .18em; }
.community-stamp small { font-size: 7px; line-height: 1.45; font-weight: 900; letter-spacing: .16em; }

.portal-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 26px auto 30px;
}
.brand-hero { text-align: center; margin-bottom: 18px; }
.brand-logo {
    width: min(475px, 72vw);
    height: auto;
    filter: drop-shadow(0 10px 18px rgba(0,0,0,.5));
}
.brand-motto {
    width: min(510px, 82vw);
    margin: 7px auto 0;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 15px;
    color: #7f929f;
    font-size: 10px;
    letter-spacing: .32em;
}
.brand-motto span { height: 1px; background: linear-gradient(90deg, transparent, #6b7b85); }
.brand-motto span:last-child { background: linear-gradient(90deg, #6b7b85, transparent); }
.brand-motto strong { font-weight: 600; }

.portal-layout {
    display: grid;
    grid-template-columns: minmax(0, 720px) 330px;
    gap: 28px;
    justify-content: center;
    align-items: start;
}

.register-card, .status-card {
    position: relative;
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(255,255,255,.035), transparent 18%),
        linear-gradient(180deg, rgba(12,21,27,.96), rgba(5,11,15,.96));
    box-shadow: 0 22px 60px rgba(0,0,0,.38), inset 0 0 44px rgba(43, 139, 194, .025);
}
.register-card {
    padding: 38px 42px 30px;
    overflow: hidden;
}
.register-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .2;
    background-image:
        linear-gradient(135deg, transparent 0 48%, rgba(255,255,255,.04) 49% 50%, transparent 51%),
        linear-gradient(45deg, transparent 0 48%, rgba(255,255,255,.02) 49% 50%, transparent 51%);
    background-size: 80px 80px;
}
.panel-corner { position: absolute; width: 88px; height: 88px; opacity: .33; pointer-events: none; }
.corner-a { left: 0; top: 0; border-top: 22px solid #60717d; border-left: 22px solid #60717d; clip-path: polygon(0 0,100% 0,100% 10px,22px 10px,22px 100%,0 100%); }
.corner-b { right: 0; bottom: 0; border-right: 22px solid #60717d; border-bottom: 22px solid #60717d; clip-path: polygon(100% 100%,0 100%,0 calc(100% - 10px),calc(100% - 22px) calc(100% - 10px),calc(100% - 22px) 0,100% 0); }
.section-kicker { position: relative; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .23em; }
h1 { position: relative; margin: 5px 0 7px; font-size: clamp(30px, 4.3vw, 43px); line-height: .98; letter-spacing: .015em; font-weight: 950; }
.intro { position: relative; width: min(560px, 100%); margin: 0 0 22px; color: #b1bcc3; font-size: 14px; line-height: 1.5; }

.notice {
    position: relative;
    display: grid;
    grid-template-columns: 34px 1fr;
    gap: 12px;
    padding: 13px 15px;
    margin: 0 0 18px;
    border: 1px solid var(--line);
    background: rgba(0,0,0,.22);
}
.notice-symbol { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid currentColor; font-weight: 900; }
.notice strong { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.notice p { margin: 4px 0 0; color: #a8b3ba; font-size: 12px; line-height: 1.45; }
.notice-success { color: var(--green); border-color: rgba(43,224,160,.38); }
.notice-error { color: var(--red); border-color: rgba(240,109,120,.38); }

.register-form { position: relative; display: grid; gap: 14px; }
.field-pair { display: grid; grid-template-columns: 1.4fr .6fr; gap: 14px; }
.field-row label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.input-shell {
    height: 48px;
    display: grid;
    grid-template-columns: 48px 1fr;
    align-items: stretch;
    border: 1px solid rgba(122,149,166,.48);
    background: rgba(5,11,15,.76);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.input-shell:focus-within { border-color: var(--blue); box-shadow: 0 0 0 1px rgba(20,169,244,.16), 0 0 18px rgba(20,169,244,.08); background: rgba(5,13,19,.92); }
.input-icon {
    display: grid;
    place-items: center;
    border-right: 1px solid rgba(122,149,166,.34);
    color: #c9d3d9;
    background: rgba(35,49,59,.36);
    font-size: 14px;
    font-family: Consolas, monospace;
}
.lock-icon { font-size: 12px; transform: none; }
.mail-icon { font-size: 16px; }
.input-shell input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #f4f8fb;
    padding: 0 14px;
    font-size: 14px;
    caret-color: var(--blue);
}
.input-shell input::placeholder { color: #788690; opacity: 1; }
.field-row small { display: block; margin: 5px 0 0 58px; color: #75838c; font-size: 10px; line-height: 1.35; }
.password-shell { grid-template-columns: 48px 1fr 58px; }
.reveal {
    border: 0;
    border-left: 1px solid rgba(122,149,166,.2);
    background: transparent;
    color: #72828c;
    cursor: pointer;
    font: 700 9px Consolas, monospace;
    letter-spacing: .09em;
}
.reveal:hover { color: var(--blue); }

.password-meter {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    color: #6f7f89;
    font: 700 8px Consolas, monospace;
    letter-spacing: .12em;
}
.meter-track { height: 2px; background: #1f2a31; overflow: hidden; }
.meter-track i { display: block; width: 0; height: 100%; background: var(--blue); box-shadow: 0 0 8px rgba(20,169,244,.4); transition: width .18s ease; }
.password-meter strong { color: #788993; font-size: 8px; }

.register-button {
    position: relative;
    width: 100%;
    min-height: 55px;
    margin-top: 2px;
    border: 0;
    color: white;
    background: linear-gradient(90deg, #0798e8, #19b8ff 52%, #0798e8);
    clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    font-size: 18px;
    font-weight: 950;
    letter-spacing: .1em;
    text-shadow: 0 1px 0 rgba(0,0,0,.28);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.3);
    transition: filter .17s ease, transform .08s ease;
}
.register-button:hover { filter: brightness(1.12); }
.register-button:active { transform: translateY(1px); }
.register-button b { font-size: 31px; line-height: 0; font-weight: 400; }

.terms { position: relative; margin-top: 10px; text-align: center; color: #61727d; font-size: 9px; line-height: 1.45; }
.or-line { position: relative; display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #84939c; font-size: 10px; font-weight: 800; }
.or-line::before, .or-line::after { content: ""; height: 1px; flex: 1; background: rgba(133,156,171,.24); }
.download-button {
    position: relative;
    width: min(320px, 100%);
    min-height: 44px;
    margin: 0 auto;
    border: 1px solid var(--blue);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: var(--blue);
    background: rgba(0,113,174,.05);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .08em;
    clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
    transition: color .18s ease, background .18s ease;
}
.download-button:hover { color: #fff; background: rgba(20,169,244,.13); }
.download-note { position: relative; margin: 7px 0 0; text-align: center; color: #65757f; font-size: 9px; }

.status-column { padding-top: 36px; }
.status-card { padding: 22px 24px 24px; overflow: hidden; }
.status-card::after {
    content: "";
    position: absolute;
    width: 95px;
    height: 95px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, transparent 50%, rgba(119,145,161,.22) 51%);
    pointer-events: none;
}
.status-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.status-heading h2 { margin: 0; padding-left: 10px; border-left: 3px solid var(--blue); font-size: 11px; letter-spacing: .12em; color: #a9b7c0; }
.network-state { display: inline-flex; align-items: center; gap: 9px; font: 900 10px Consolas, monospace; letter-spacing: .09em; }
.network-state i { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.network-state.is-online { color: var(--green); }
.network-state.is-online i { box-shadow: 0 0 14px rgba(43,224,160,.65); }
.network-state.is-offline { color: var(--red); }
.status-rule { height: 1px; margin: 15px 0; background: rgba(137,163,179,.33); }
.status-list { margin: 0; display: grid; gap: 17px; }
.status-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.status-list dt { color: #bbc5cb; font-size: 12px; }
.status-list dd { margin: 0; color: var(--blue); font: 800 20px Consolas, monospace; }
.status-cta { margin: 0; color: #86959e; font-size: 11px; line-height: 1.6; letter-spacing: .05em; }
.status-cta strong { color: var(--blue); font-size: 18px; letter-spacing: .14em; }
blockquote { margin: 35px 0 25px 43px; color: #72828d; font-size: 10px; line-height: 1.7; font-weight: 700; letter-spacing: .18em; font-style: italic; }
.obelisk-banner {
    position: relative;
    width: 145px;
    height: 260px;
    margin: 0 auto;
    border-left: 1px solid rgba(20,169,244,.18);
    border-right: 1px solid rgba(20,169,244,.18);
    background: linear-gradient(180deg, rgba(12,75,110,.08), rgba(5,85,132,.3) 42%, rgba(5,32,48,.6));
    overflow: hidden;
    clip-path: polygon(50% 0, 100% 16%, 100% 100%, 0 100%, 0 16%);
}
.chev { position: absolute; left: 18px; right: 18px; height: 95px; border-left: 28px solid rgba(37,127,182,.23); border-right: 28px solid rgba(37,127,182,.23); transform: rotate(45deg); }
.c1 { top: 42px; }
.c2 { top: 92px; opacity: .55; }
.banner-mark { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 74px; height: 74px; display: grid; place-items: center; filter: grayscale(1) brightness(1.45); opacity: .55; }
.banner-mark img { width: 100%; height: auto; }

.footer {
    min-height: 72px;
    border-top: 1px solid rgba(135,162,180,.21);
    background: rgba(3,7,10,.84);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    padding: 12px max(24px, calc((100vw - 1320px) / 2));
    color: #63737d;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-size: 9px; font-weight: 800; letter-spacing: .12em; color: #9ba7ae; }
.footer-brand img { width: 34px; height: 34px; }
.footer-brand small { color: var(--blue); font-size: 8px; }
.footer-center { font-size: 8px; letter-spacing: .18em; text-align: center; }
.footer-copy { text-align: right; font-size: 8px; letter-spacing: .08em; }
.trap { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 980px) {
    .portal-layout { grid-template-columns: minmax(0, 720px); }
    .status-column { padding-top: 0; display: grid; grid-template-columns: minmax(0,1fr) 160px; gap: 18px; align-items: start; }
    blockquote { display: none; }
    .obelisk-banner { height: 200px; }
}

@media (max-width: 720px) {
    .topbar { height: auto; }
    .topbar-inner { width: 100%; padding-left: 14px; }
    .nav { gap: 18px; overflow-x: auto; }
    .nav a { font-size: 10px; min-height: 52px; }
    .community-stamp { min-width: 118px; padding: 7px 11px 6px 23px; }
    .community-stamp span { font-size: 12px; }
    .community-stamp small { display: none; }
    .portal-shell { width: min(100% - 20px, 650px); margin-top: 18px; }
    .brand-logo { width: min(390px, 88vw); }
    .brand-motto { font-size: 7px; letter-spacing: .18em; }
    .register-card { padding: 28px 20px 24px; }
    .field-pair { grid-template-columns: 1fr; }
    .status-column { grid-template-columns: 1fr; }
    .obelisk-banner { display: none; }
    .footer { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { justify-content: center; }
    .footer-copy { text-align: center; }
    .footer-center { order: 3; }
}

@media (max-width: 440px) {
    .nav a:nth-child(1) { display: none; }
    .community-stamp { min-width: 88px; }
    .brand-motto { display: none; }
    .register-card { padding-left: 15px; padding-right: 15px; }
    .input-shell { grid-template-columns: 42px 1fr; }
    .password-shell { grid-template-columns: 42px 1fr 50px; }
    .field-row small { margin-left: 48px; }
    .password-meter { grid-template-columns: 1fr auto; }
    .password-meter > span { display: none; }
}
