:root {
  --bg: #05080a;
  --text: #dcedd8;
  --muted: #9daf97;
  --green: #8ce47d;
  --green2: #437f3c;
  --amber: #f0c45b;
  --red: #ec765d;
  --panel: rgba(4, 8, 10, .82);
  --panel2: rgba(7, 11, 15, .92);
  --line: rgba(140, 228, 125, .22);
  --line2: rgba(240, 196, 91, .22);
  --shadow: 0 22px 90px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
img { max-width: 100%; display: block; }
code { color: #f5d075; }

.screen {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 48px 22px;
}
.bg, .shade, .scanlines {
  position: absolute;
  inset: 0;
}
.bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.56) saturate(.95);
}
.shade {
  background:
    radial-gradient(circle at 53% 41%, rgba(0,0,0,.08), rgba(0,0,0,.42) 44%, rgba(0,0,0,.76) 100%),
    linear-gradient(90deg, rgba(0,0,0,.52), rgba(0,0,0,.20) 45%, rgba(0,0,0,.54)),
    linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,.64));
}
.scanlines {
  opacity: .26;
  pointer-events: none;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,.08) 0 1px, transparent 1px 4px),
    radial-gradient(circle, transparent 54%, rgba(0,0,0,.32));
  mix-blend-mode: overlay;
}

.frame {
  position: relative;
  z-index: 2;
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, .78fr);
  gap: 26px;
  align-items: center;
}

.checkpoint, .login-panel {
  border: 1px solid rgba(255,255,255,.08);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(11px);
}
.checkpoint {
  border-radius: 30px;
  padding: 30px;
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-panel {
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(5, 10, 13, .88), rgba(4, 8, 10, .93));
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.brand img {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.45));
}
.brand strong {
  display: block;
  font-size: 1.18rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.brand span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.badge, .small-label {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line2);
  background: rgba(240,196,91,.08);
  color: var(--amber);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1 {
  margin: 18px 0;
  font-size: clamp(2.55rem, 5.7vw, 5.2rem);
  line-height: .9;
  letter-spacing: -.055em;
  max-width: 10.5ch;
}
h2 {
  margin: 12px 0 10px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -.04em;
}
.summary, .muted {
  margin: 0;
  color: #c7d5c2;
  line-height: 1.7;
  max-width: 62ch;
}
.muted { color: var(--muted); }

.telemetry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin: 28px 0 0;
}
.telemetry div {
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.035);
  border-radius: 17px;
  padding: 15px;
}
.telemetry span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.telemetry b {
  display: block;
  margin-top: 7px;
  color: #e9e2bf;
  font-size: .98rem;
  overflow-wrap: anywhere;
}

#cipher {
  min-height: 102px;
  margin: 28px 0 0;
  padding: 16px;
  border-radius: 17px;
  border: 1px solid rgba(140, 228, 125, .18);
  background: rgba(1, 10, 3, .72);
  color: rgba(161, 239, 150, .72);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.5;
  overflow: hidden;
}

.panel-top {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(140, 228, 125, .18);
  background: rgba(0,0,0,.24);
}
.panel-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #314636;
}
.panel-top span:nth-child(1) { background: #bc5f4b; }
.panel-top span:nth-child(2) { background: #d0a743; }
.panel-top span:nth-child(3) { background: #73ca60; }
.panel-top b {
  margin-left: auto;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .75rem;
  letter-spacing: .12em;
}
.panel-body { padding: 28px; }

.login-form {
  display: grid;
  gap: 15px;
  margin-top: 24px;
}
label {
  display: grid;
  gap: 8px;
  color: #d9d696;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}
input, select {
  min-height: 50px;
  width: 100%;
  border-radius: 13px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(4, 8, 11, .82);
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  outline: none;
}
input:focus, select:focus {
  border-color: rgba(140, 228, 125, .42);
  box-shadow: 0 0 0 4px rgba(140,228,125,.08);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 5px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #9bea8b, #5fae56);
  color: #071108;
  cursor: pointer;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.auth-result {
  display: grid;
  gap: 8px;
  min-height: 96px;
  margin-top: 22px;
  padding: 16px;
  border-radius: 17px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.26);
}
.auth-result strong {
  color: var(--amber);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-size: .84rem;
}
.auth-result span {
  color: #c8d2c4;
  line-height: 1.58;
}
.auth-result.denied {
  border-color: rgba(236, 118, 93, .34);
}
.auth-result.denied strong {
  color: var(--red);
}
.auth-result.pending strong {
  color: var(--green);
}

@media (max-width: 960px) {
  .screen { display: block; padding: 104px 18px 46px; }
  .frame { grid-template-columns: 1fr; }
  .checkpoint { min-height: 0; }
  h1 { max-width: 14ch; }
}

@media (max-width: 620px) {
  .checkpoint, .panel-body { padding: 22px; }
  .checkpoint, .login-panel { border-radius: 22px; }
  .telemetry { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.45rem, 17vw, 4.3rem); }
}
