:root {
    color-scheme: dark;
    --bg: #07111f;
    --panel: rgba(10, 24, 42, .88);
    --panel-soft: rgba(255, 255, 255, .055);
    --line: rgba(148, 190, 226, .18);
    --text: #f5f9ff;
    --muted: #9eb2c8;
    --blue: #58a6ff;
    --cyan: #41e1d0;
    --violet: #9477ff;
    --success: #69e6b8;
    font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 8% 10%, rgba(65, 225, 208, .12), transparent 30rem),
        radial-gradient(circle at 87% 4%, rgba(148, 119, 255, .18), transparent 32rem),
        linear-gradient(145deg, #07111f 0%, #0a1729 48%, #06101d 100%);
}
body::before {
    position: fixed;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: .18;
    background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
}
a { color: #b9d9ff; text-decoration: none; }
a:hover { color: white; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid rgba(65, 225, 208, .5);
    outline-offset: 2px;
}
.site-header {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 40px));
    min-height: 88px;
    margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand > span:last-child { display: grid; gap: 1px; }
.brand strong { font-size: .88rem; letter-spacing: .18em; }
.brand small { color: var(--muted); font-size: .72rem; letter-spacing: .12em; }
.brand-mark { display: flex; align-items: flex-end; gap: 4px; width: 34px; height: 34px; padding: 7px; border: 1px solid rgba(92, 197, 255, .4); border-radius: 11px; background: linear-gradient(145deg, rgba(88,166,255,.22), rgba(65,225,208,.08)); box-shadow: 0 0 24px rgba(65,225,208,.14); }
.brand-mark i { display: block; width: 4px; border-radius: 5px; background: linear-gradient(to top, var(--blue), var(--cyan)); }
.brand-mark i:nth-child(1) { height: 45%; }
.brand-mark i:nth-child(2) { height: 100%; }
.brand-mark i:nth-child(3) { height: 68%; }
nav { display: flex; gap: 10px; align-items: center; }
nav a { padding: 10px 13px; color: var(--muted); border-radius: 10px; font-size: .88rem; }
nav a:hover { color: var(--text); background: var(--panel-soft); }
.portal-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(440px, 1.1fr);
    gap: clamp(34px, 6vw, 82px);
    align-items: start;
    width: min(1120px, calc(100% - 40px));
    margin: clamp(28px, 6vh, 72px) auto 56px;
}
.portal-intro { padding-top: 28px; }
.eyebrow { display: inline-block; margin-bottom: 18px; color: var(--cyan); font-size: .76rem; font-weight: 700; letter-spacing: .16em; }
.portal-intro h1 { margin: 0 0 18px; font-size: clamp(2.2rem, 5vw, 4.4rem); line-height: 1.04; letter-spacing: -.045em; }
.portal-intro > p { max-width: 540px; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.85; }
.steps { display: grid; gap: 14px; padding: 0; margin: 38px 0 0; list-style: none; }
.steps li { display: flex; gap: 15px; align-items: center; padding: 15px 17px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.steps li > span { color: var(--cyan); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .76rem; letter-spacing: .12em; }
.steps li div { display: grid; gap: 4px; }
.steps strong { font-size: .95rem; }
.steps small { color: var(--muted); }
.security-list { display: grid; gap: 13px; padding: 0; margin: 34px 0 0; list-style: none; }
.security-list li { position: relative; padding-left: 28px; color: #c8d7e7; line-height: 1.6; }
.security-list li::before { position: absolute; left: 0; top: .55em; width: 9px; height: 9px; content: ""; border: 2px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 14px rgba(65,225,208,.45); }
.form-card { overflow: hidden; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); border-radius: 26px; background: var(--panel); box-shadow: 0 34px 90px rgba(0,0,0,.28); backdrop-filter: blur(18px); }
.form-card::before { display: block; width: 86px; height: 3px; margin: -42px 0 34px; content: ""; background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet)); border-radius: 4px; }
.form-heading > span { color: var(--blue); font-size: .72rem; font-weight: 700; letter-spacing: .14em; }
.form-heading h2 { margin: 9px 0 7px; font-size: 1.55rem; }
.form-heading p { margin: 0 0 28px; color: var(--muted); line-height: 1.6; }
form { display: grid; gap: 19px; }
.field-grid.two { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
label { display: grid; gap: 8px; color: #dae6f3; font-size: .91rem; font-weight: 650; }
label em { margin-left: 5px; color: var(--muted); font-size: .75rem; font-style: normal; font-weight: 500; }
label small { color: #8298ae; font-size: .76rem; font-weight: 450; line-height: 1.5; }
input, select, textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    color: var(--text);
    font: inherit;
    font-weight: 500;
    border: 1px solid rgba(158,178,200,.25);
    border-radius: 12px;
    background: rgba(4, 14, 26, .72);
    transition: border-color .18s, box-shadow .18s, background .18s;
}
textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
input:hover, select:hover, textarea:hover { border-color: rgba(88,166,255,.5); }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); background: rgba(5,17,31,.95); box-shadow: 0 0 0 4px rgba(65,225,208,.09); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px; background-repeat: no-repeat; }
select option { color: #0a1729; background: white; }
.email-input { display: flex; align-items: stretch; }
.email-input input { border-radius: 12px 0 0 12px; }
.email-input b { display: flex; align-items: center; padding: 0 13px; color: #a9c3dd; font-size: .83rem; border: 1px solid rgba(158,178,200,.25); border-left: 0; border-radius: 0 12px 12px 0; background: rgba(88,166,255,.08); white-space: nowrap; }
.checkbox { grid-template-columns: 20px 1fr; gap: 11px; align-items: start; font-weight: 500; line-height: 1.55; }
.checkbox input { width: 18px; min-height: 18px; margin: 3px 0 0; accent-color: var(--cyan); }
.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 12px 18px; font: inherit; font-weight: 750; border: 0; border-radius: 13px; cursor: pointer; transition: transform .18s, box-shadow .18s, filter .18s; }
.button.primary { color: #04111b; background: linear-gradient(110deg, var(--cyan), #78bdff); box-shadow: 0 14px 32px rgba(65,225,208,.16); }
.button:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 18px 42px rgba(65,225,208,.22); }
.form-links { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between; font-size: .82rem; }
.alert { padding: 15px 17px; margin: 0 0 20px; color: #ffd5d5; border: 1px solid rgba(255,159,159,.32); border-radius: 13px; background: rgba(126,31,45,.18); }
.alert strong { display: block; margin-bottom: 6px; }
.alert ul { padding-left: 20px; margin: 0; line-height: 1.6; }
.success-panel { display: grid; justify-items: start; }
.success-icon { display: grid; width: 56px; height: 56px; place-items: center; margin-bottom: 20px; color: #041a15; font-size: 1.55rem; font-weight: 900; border-radius: 18px; background: linear-gradient(135deg, var(--success), var(--cyan)); box-shadow: 0 15px 38px rgba(105,230,184,.2); }
.success-panel h2 { margin: 0 0 10px; font-size: 1.7rem; }
.success-panel > p { margin: 0 0 22px; color: var(--muted); line-height: 1.75; }
.reference { display: grid; gap: 7px; width: 100%; padding: 15px 17px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.04); }
.reference span { color: var(--muted); font-size: .76rem; }
.reference strong { color: var(--cyan); font: 700 1rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .06em; word-break: break-all; }
.success-panel .muted { font-size: .85rem; }
.success-panel .button { width: 100%; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
footer { position: relative; z-index: 1; display: flex; justify-content: space-between; width: min(1120px, calc(100% - 40px)); padding: 20px 0 34px; margin: 0 auto; color: #71879d; font-size: .76rem; border-top: 1px solid rgba(158,178,200,.1); }
@media (max-width: 860px) {
    .portal-shell { grid-template-columns: 1fr; gap: 34px; margin-top: 22px; }
    .portal-intro { padding-top: 0; }
    .portal-intro h1 { font-size: clamp(2.3rem, 10vw, 3.5rem); }
    .steps { grid-template-columns: repeat(3, 1fr); gap: 9px; }
    .steps li { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
    .site-header { width: min(100% - 28px, 1180px); min-height: 74px; }
    nav a:first-child { display: none; }
    nav a { padding: 9px 0; font-size: .78rem; }
    .portal-shell { width: min(100% - 24px, 1120px); }
    .steps { grid-template-columns: 1fr; }
    .steps li { flex-direction: row; }
    .form-card { padding: 26px 20px; border-radius: 20px; }
    .form-card::before { margin: -26px 0 27px; }
    .field-grid.two { grid-template-columns: 1fr; }
    .email-input b { padding-inline: 9px; font-size: .76rem; }
    footer { width: min(100% - 28px, 1120px); flex-direction: column; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

