:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #070a0c;
  color: #eef3f1;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #070a0c;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
}

button,
input {
  letter-spacing: 0;
}

.shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 48px;
  isolation: isolate;
  overflow: hidden;
  background: #070a0c;
}

.backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: url("/future-console-bg.png") center / cover no-repeat;
}

.shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(4, 7, 9, 0.12), rgba(4, 7, 9, 0.24) 58%, rgba(4, 7, 9, 0.04));
}

.panel {
  position: relative;
  width: min(900px, 72vw);
  min-height: 650px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 34px;
  padding: 30px 34px 24px;
  border: 1px solid rgba(114, 232, 217, 0.28);
  border-radius: 6px;
  background: rgba(8, 14, 17, 0.91);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.panel::before {
  inset: -1px auto auto -1px;
  width: 132px;
  height: 3px;
  background: #60e8d5;
  box-shadow: 0 0 20px rgba(96, 232, 213, 0.55);
}

.panel::after {
  right: -1px;
  bottom: -1px;
  width: 72px;
  height: 3px;
  background: #ff755f;
  box-shadow: 0 0 18px rgba(255, 117, 95, 0.42);
}

.topbar,
.panel-footer,
.field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(238, 243, 241, 0.11);
  color: #c7d1ce;
  font-size: 12px;
  font-weight: 800;
}

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

.brand-mark {
  width: 34px;
  height: 18px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.brand-mark i {
  width: 3px;
  display: block;
  border-radius: 1px;
  background: #60e8d5;
  box-shadow: 0 0 9px rgba(96, 232, 213, 0.65);
}

.brand-mark i:nth-child(1),
.brand-mark i:nth-child(5) {
  height: 6px;
}

.brand-mark i:nth-child(2),
.brand-mark i:nth-child(4) {
  height: 12px;
}

.brand-mark i:nth-child(3) {
  height: 18px;
  background: #d8ff63;
}

.system-state {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aebbb7;
}

.system-state > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d8ff63;
  box-shadow: 0 0 12px rgba(216, 255, 99, 0.78);
}

.intro {
  align-self: center;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #60e8d5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: #f4f8f6;
  font-size: 68px;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.subtle {
  max-width: 64ch;
  margin: 20px 0 0;
  color: #99a8a4;
  font-size: 17px;
  line-height: 1.55;
}

.form {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(238, 243, 241, 0.1);
  border-radius: 5px;
  background: rgba(2, 7, 9, 0.46);
}

.password-group {
  width: min(280px, 100%);
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}

.password-group[hidden] {
  display: none;
}

label {
  color: #edf3f0;
  font-size: 14px;
  font-weight: 750;
}

.field-heading > span {
  color: #d8ff63;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input,
button {
  min-height: 62px;
  border-radius: 4px;
  font: inherit;
}

input {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(149, 171, 165, 0.28);
  outline: none;
  padding: 0 18px;
  background: rgba(238, 243, 241, 0.055);
  color: #f4f8f6;
  caret-color: #d8ff63;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

input::placeholder {
  color: #687875;
}

input:hover {
  border-color: rgba(96, 232, 213, 0.44);
}

input:focus {
  border-color: #60e8d5;
  background: rgba(96, 232, 213, 0.06);
  box-shadow: 0 0 0 3px rgba(96, 232, 213, 0.11), inset 3px 0 #d8ff63;
}

button {
  position: relative;
  min-width: 190px;
  border: 1px solid #d8ff63;
  padding: 0 48px 0 24px;
  overflow: hidden;
  background: #d8ff63;
  color: #101608;
  font-weight: 850;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

button::after {
  content: "→";
  position: absolute;
  right: 21px;
  top: 50%;
  transform: translateY(-53%);
  font-size: 22px;
}

button:hover:not(:disabled) {
  background: #60e8d5;
  border-color: #60e8d5;
  box-shadow: 0 0 28px rgba(96, 232, 213, 0.24);
  transform: translateY(-1px);
}

button:focus-visible {
  outline: 3px solid rgba(96, 232, 213, 0.34);
  outline-offset: 3px;
}

button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.status {
  min-height: 0;
  display: none;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  line-height: 1.45;
}

.status.loading,
.status.success,
.status.error {
  display: flex;
}

.status.loading {
  border-color: rgba(216, 255, 99, 0.36);
  background: rgba(216, 255, 99, 0.09);
  color: #e8ff9f;
}

.status.success {
  border-color: rgba(96, 232, 213, 0.34);
  background: rgba(96, 232, 213, 0.08);
  color: #a7f5e9;
}

.status.error {
  border-color: rgba(255, 117, 95, 0.45);
  background: rgba(255, 117, 95, 0.1);
  color: #ffb6aa;
}

.status a {
  color: inherit;
  font-weight: 800;
  text-decoration-color: rgba(255, 255, 255, 0.38);
  text-underline-offset: 4px;
}

.status strong span,
.status a span {
  font-weight: 600;
  opacity: 0.72;
}

.status .result-label {
  flex-basis: 100%;
  margin-top: 4px;
}

.status small {
  flex-basis: 100%;
  color: inherit;
  opacity: 0.76;
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
}

.panel-footer {
  padding-top: 18px;
  border-top: 1px solid rgba(238, 243, 241, 0.08);
  color: #60706c;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .shell {
    padding: 28px;
  }

  .panel {
    width: min(840px, 100%);
  }

  h1 {
    font-size: 56px;
  }
}

@media (max-width: 680px) {
  .shell {
    align-items: start;
    padding: 14px;
  }

  .backdrop {
    background-position: 65% center;
  }

  .panel {
    min-height: calc(100vh - 28px);
    gap: 26px;
    padding: 22px 18px 18px;
  }

  .topbar {
    padding-bottom: 16px;
  }

  .system-state {
    font-size: 10px;
  }

  h1 {
    font-size: 42px;
    line-height: 1;
  }

  .subtle {
    font-size: 15px;
  }

  .form {
    padding: 16px;
  }

  .row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }

  .status {
    flex-direction: column;
  }

  .downloads {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .brand > span:last-child {
    display: none;
  }

  .field-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  h1 {
    font-size: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
