:root {
  --void: #040b12;
  --navy: #07131d;
  --panel: #0a1c27;
  --line: #1d3947;
  --text: #e4eff0;
  --muted: #708894;
  --mint: #2fe0b1;
  --cyan: #52c7e8;
  --red: #f36c76;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--void);
  font-family: var(--sans);
}
button, input { color: inherit; font: inherit; }
.access-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(68, 126, 148, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(68, 126, 148, .045) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.access-header {
  height: 72px;
  padding: 0 clamp(20px, 4vw, 62px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  background: rgba(5, 15, 23, .9);
  border-bottom: 1px solid var(--line);
}
.access-brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.cross { width: 37px; height: 37px; position: relative; background: var(--mint); border-radius: 3px; }
.cross::before, .cross::after { content: ""; position: absolute; left: 50%; top: 50%; background: #07151d; transform: translate(-50%,-50%); }
.cross::before { width: 19px; height: 6px; }
.cross::after { width: 6px; height: 19px; }
.access-brand strong { display: block; font: 800 14px var(--mono); }
.access-brand strong span { color: var(--mint); }
.access-brand small { margin-top: 4px; display: block; color: #56707b; font: 8px var(--mono); letter-spacing: .11em; }
.access-context { display: flex; gap: 10px; color: #55707c; font: 8px var(--mono); letter-spacing: .1em; }
.access-context i { color: #2e4955; font-style: normal; }
.access-context strong { color: #8198a1; }
.public-return { color: #8299a2; font: 8px var(--mono); letter-spacing: .08em; text-decoration: none; }
.public-return:hover { color: var(--mint); }

.access-shell {
  min-height: calc(100vh - 128px);
  padding: clamp(35px, 6vw, 90px) clamp(20px, 6vw, 100px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(420px, .7fr);
  align-items: center;
  gap: clamp(50px, 9vw, 150px);
  position: relative;
  z-index: 1;
}
.console-id > p:first-child { color: var(--mint); font: 700 8px var(--mono); letter-spacing: .13em; }
.console-id > p:first-child i { width: 19px; height: 1px; margin: 0 9px 3px 0; display: inline-block; background: var(--mint); }
.console-id h1 { margin: 19px 0; color: #edf6f6; font-size: clamp(49px, 6vw, 90px); font-weight: 680; line-height: .92; letter-spacing: -.06em; }
.console-id h1 span { color: #66818d; }
.console-intro { max-width: 670px; margin: 0; color: #748d98; font-size: 13px; line-height: 1.7; }

.node-map {
  max-width: 760px;
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
}
.node-line { height: 1px; position: absolute; left: 11%; right: 11%; top: 4px; background: #254451; }
.node-map article { padding-right: 16px; position: relative; }
.node-map article > i { width: 9px; height: 9px; margin-bottom: 20px; display: block; position: relative; z-index: 1; background: var(--mint); border: 2px solid #0a1d27; border-radius: 50%; box-shadow: 0 0 13px var(--mint); }
.node-map article:nth-of-type(2) > i { background: var(--cyan); box-shadow: 0 0 13px var(--cyan); }
.node-map article span { color: #48636f; font: 7px var(--mono); }
.node-map article strong { margin-top: 7px; display: block; color: #b1c3c8; font: 700 11px var(--mono); }
.node-map article small { margin-top: 7px; display: block; color: #4f6873; font: 7px/1.5 var(--mono); }
.system-readout { max-width: 760px; margin-top: 40px; padding: 15px 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.system-readout div { padding-right: 14px; border-right: 1px solid var(--line); }
.system-readout div:last-child { border: 0; }
.system-readout span { display: block; color: #48636e; font: 7px var(--mono); }
.system-readout strong { margin-top: 6px; display: block; color: #8098a1; font: 700 8px var(--mono); }

.credential-panel { width: 100%; max-width: 500px; justify-self: end; }
.credential-card { padding: clamp(24px, 4vw, 40px); background: rgba(9, 27, 38, .94); border: 1px solid #254451; border-radius: 4px; box-shadow: 0 35px 100px rgba(0,0,0,.4); }
.credential-card > header { display: grid; grid-template-columns: 45px 1fr auto; gap: 13px; align-items: center; }
.secure-icon { width: 44px; height: 44px; position: relative; border: 1px solid #2d5360; border-radius: 50%; }
.secure-icon::before { content: ""; width: 13px; height: 10px; position: absolute; left: 14px; top: 19px; border: 2px solid var(--mint); border-radius: 2px; }
.secure-icon::after { content: ""; width: 8px; height: 8px; position: absolute; left: 16.5px; top: 12px; border: 2px solid var(--mint); border-bottom: 0; border-radius: 7px 7px 0 0; }
.credential-card header p { margin: 0; color: var(--mint); font: 700 7px var(--mono); letter-spacing: .11em; }
.credential-card header h2 { margin: 6px 0 0; color: #edf5f5; font-size: 25px; font-weight: 620; letter-spacing: -.03em; }
.credential-card header > b { color: #2c4b58; font: 700 25px var(--mono); }
.credential-intro { margin: 27px 0; color: #6c8590; font-size: 11px; line-height: 1.6; }
.credential-card label { margin-top: 17px; display: block; }
.credential-card label > span { margin-bottom: 7px; display: block; color: #57717d; font: 7px var(--mono); letter-spacing: .11em; }
.input-shell { height: 52px; display: grid; grid-template-columns: 48px 1fr; align-items: center; background: #071720; border: 1px solid #213e4b; border-radius: 2px; }
.input-shell:focus-within { border-color: var(--mint); box-shadow: 0 0 0 2px rgba(47,224,177,.07); }
.input-shell > b { display: grid; place-items: center; color: #52707b; border-right: 1px solid #203d4a; font: 8px var(--mono); }
.input-shell input { min-width: 0; height: 100%; padding: 0 14px; color: #d4e2e5; background: transparent; border: 0; outline: 0; font: 10px var(--mono); }
.input-shell input::placeholder { color: #38515d; }
.password-shell { grid-template-columns: 48px 1fr auto; }
.password-shell button { height: 34px; margin-right: 8px; padding: 0 10px; color: #69838e; background: #0c222c; border: 1px solid #254653; font: 7px var(--mono); }
.submit-login { width: 100%; height: 54px; margin-top: 25px; padding: 0 17px; display: flex; align-items: center; justify-content: space-between; color: #06151b; background: var(--mint); border: 0; border-radius: 2px; font: 800 9px var(--mono); letter-spacing: .08em; }
.submit-login:hover { background: #6ce9c8; }
.submit-login b { font-size: 20px; }
.credential-card > footer { margin-top: 24px; padding-top: 14px; display: flex; gap: 13px; color: #48636f; border-top: 1px solid var(--line); font: 7px var(--mono); }
.credential-card > footer span:first-child { color: #6f8e98; }
.credential-card > footer i { width: 5px; height: 5px; margin-right: 4px; display: inline-block; background: var(--mint); border-radius: 50%; box-shadow: 0 0 8px var(--mint); }
.login-error { margin: 0 0 18px; padding: 12px; color: #f2a2a8; background: rgba(243,108,118,.08); border: 1px solid rgba(243,108,118,.28); font: 8px/1.5 var(--mono); }
.login-error strong { margin-right: 8px; color: var(--red); }
.access-notice { margin: 16px 8px 0; color: #4d6671; font: 7px/1.65 var(--mono); }
.access-footer { height: 56px; padding: 0 clamp(20px, 4vw, 62px); display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; color: #3e5864; border-top: 1px solid var(--line); font: 7px var(--mono); letter-spacing: .07em; }

@media (max-width: 1000px) {
  .access-shell { grid-template-columns: 1fr; gap: 60px; }
  .credential-panel { justify-self: start; }
  .access-context { display: none; }
}
@media (max-width: 620px) {
  .access-header { height: 62px; padding: 0 15px; }
  .public-return { font-size: 7px; }
  .access-shell { padding: 48px 16px; }
  .console-id h1 { font-size: 50px; }
  .node-map, .system-readout { grid-template-columns: 1fr; gap: 18px; }
  .node-line { display: none; }
  .node-map article { padding: 0 0 14px; border-bottom: 1px solid var(--line); }
  .node-map article > i { margin-bottom: 10px; }
  .system-readout div { padding: 0 0 13px; border-right: 0; border-bottom: 1px solid var(--line); }
  .credential-card { padding: 24px 18px; }
  .access-footer { padding: 0 15px; }
  .access-footer span:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
