:root {
  --bg: #020617;
  --panel: rgba(5, 12, 24, 0.62);
  --panel-strong: rgba(10, 19, 34, 0.84);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f8fafc;
  --muted: rgba(226, 232, 240, 0.62);
  --cyan: #47d5ff;
  --yellow: #ffcb05;
  --green: #71f2a5;
  --red: #fb7185;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

button,
input {
  font: inherit;
}

.login-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 12%, rgba(71, 213, 255, 0.16), transparent 34%),
    radial-gradient(circle at 18% 78%, rgba(255, 203, 5, 0.12), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family:
    Helvetica, "Helvetica Neue", Arial, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 300;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

#signalCanvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.78;
}

.login-stage {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 420px);
  align-items: center;
  gap: 56px;
  min-height: 100vh;
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 48px 0;
}

.login-hero {
  min-width: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 203, 5, 0.45);
  border-radius: 18px;
  background: rgba(255, 203, 5, 0.12);
  color: var(--yellow);
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 22px 60px rgba(255, 203, 5, 0.14);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--yellow);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.94;
  font-weight: 650;
}

h2 {
  font-size: 32px;
  line-height: 1.05;
  font-weight: 650;
}

.hero-line {
  max-width: 700px;
  margin-top: 28px;
  color: rgba(248, 250, 252, 0.72);
  font-size: clamp(18px, 2.4vw, 28px);
  line-height: 1.32;
}

.telemetry-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(70px, 1fr));
  gap: 10px;
  max-width: 560px;
  margin-top: 34px;
}

.telemetry-strip span {
  min-height: 44px;
  padding: 14px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  backdrop-filter: blur(14px);
}

.login-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(24px);
  padding: 24px;
}

.panel-head {
  margin-bottom: 28px;
}

label {
  display: block;
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.field {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease;
}

.field:focus-within {
  border-color: rgba(255, 203, 5, 0.62);
  background: rgba(2, 6, 23, 0.66);
  box-shadow:
    0 0 0 4px rgba(255, 203, 5, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

input {
  width: 100%;
  min-height: 48px;
  border: 0;
  outline: 0;
  padding: 0 14px;
  background: transparent;
  color: var(--text);
}

.login-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 50px;
  margin-top: 22px;
  border: 1px solid rgba(255, 203, 5, 0.42);
  border-radius: 8px;
  background: var(--yellow);
  color: #080b12;
  cursor: pointer;
  font-weight: 800;
  box-shadow: 0 20px 56px rgba(255, 203, 5, 0.18);
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    background-color 140ms ease;
}

.login-button:hover {
  background: #ffd83d;
  box-shadow: 0 24px 70px rgba(255, 203, 5, 0.24);
}

.login-button:active {
  transform: scale(0.985);
}

.login-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.login-button span {
  padding-left: 16px;
}

.login-button svg {
  width: 22px;
  height: 22px;
  margin-right: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.login-status {
  min-height: 22px;
  margin-top: 14px;
  color: var(--red);
  font-size: 13px;
  line-height: 1.5;
}

.login-status.ok {
  color: var(--green);
}

@media (max-width: 820px) {
  .login-stage {
    grid-template-columns: 1fr;
    gap: 34px;
    align-content: center;
    width: min(440px, calc(100vw - 32px));
  }

  .hero-line {
    font-size: 17px;
  }

  .telemetry-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}
