:root {
  --navy: #062a46;
  --navy-2: #0a3c61;
  --blue: #168dd0;
  --cyan: #0ba9d9;
  --green: #67b536;
  --ink: #102a3d;
  --muted: #667b8b;
  --line: #d8e2e8;
  --pale-blue: #eaf6fc;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

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

body {
  color: var(--ink);
  background: var(--white);
  font-family: Montserrat, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: #087abb;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page,
.shell {
  min-height: 100vh;
}

.brand-panel,
.auth-panel {
  min-width: 0;
}

.shell {
  display: grid;
  grid-template-columns: minmax(480px, 1fr) minmax(480px, 1fr);
  width: 100%;
  overflow: hidden;
}

.brand-panel {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: 48px clamp(44px, 5vw, 76px) 28px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 70% 30%, rgba(11, 169, 217, 0.22), transparent 33%),
    linear-gradient(145deg, #041f35 0%, var(--navy) 53%, #084d75 100%);
}

.brand-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.18;
  background:
    repeating-radial-gradient(
      ellipse at 84% 22%,
      transparent 0 23px,
      rgba(44, 169, 226, 0.23) 24px 25px
    );
  mask-image: linear-gradient(to bottom left, #000, transparent 48%);
}

.product-mark,
.brand-copy,
.constellation,
.benefits,
.brand-footer {
  position: relative;
  z-index: 1;
}

.product-mark {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-copy {
  width: 100%;
  max-width: 570px;
  margin-top: clamp(42px, 6vh, 76px);
}

.eyebrow {
  margin: 0 0 16px;
  color: #8bdef2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 590px;
  margin: 0;
  font-size: clamp(38px, 4vw, 50px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.brand-copy > p:last-child {
  max-width: 540px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.73);
  font-size: clamp(14px, 1.25vw, 17px);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.constellation {
  width: min(660px, 100%);
  aspect-ratio: 640 / 390;
  margin: auto auto -2px;
  color: #35bcec;
}

.constellation::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 31%;
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: rgba(10, 169, 217, 0.12);
  box-shadow:
    0 0 70px rgba(19, 169, 221, 0.2),
    0 0 130px rgba(19, 169, 221, 0.08);
  transform: translate(-50%, -50%);
}

.constellation-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.connection {
  stroke: currentColor;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.connection.solid {
  stroke-opacity: 0.5;
}

.connection.dotted {
  stroke-opacity: 0.85;
  stroke-dasharray: 3 7;
  stroke-linecap: round;
}

.data-points {
  filter: drop-shadow(0 0 5px currentColor);
}

.monitor-node {
  --node-size: clamp(51px, 5.2vw, 68px);
  position: absolute;
  display: grid;
  width: var(--node-size);
  aspect-ratio: 1;
  place-items: center;
  color: #fff;
  border: 2px solid #35bcec;
  border-radius: 50%;
  background: rgba(4, 39, 66, 0.94);
  box-shadow:
    0 0 0 6px rgba(53, 188, 236, 0.055),
    0 0 24px rgba(53, 188, 236, 0.19);
  transform: translate(-50%, -50%);
}

.monitor-node.is-green {
  border-color: #9bd72c;
  box-shadow:
    0 0 0 6px rgba(155, 215, 44, 0.055),
    0 0 24px rgba(155, 215, 44, 0.16);
}

.node-icon-slot {
  display: grid;
  width: 54%;
  aspect-ratio: 1;
  place-items: center;
}

.node-icon {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.node-center {
  --node-size: clamp(108px, 10vw, 144px);
  top: 50%;
  left: 50%;
  border-width: 2px;
  background:
    radial-gradient(circle at 50% 40%, rgba(20, 110, 160, 0.68), rgba(4, 32, 55, 0.96) 67%);
  box-shadow:
    0 0 0 8px rgba(53, 188, 236, 0.07),
    0 0 0 18px rgba(53, 188, 236, 0.04),
    0 0 42px rgba(53, 188, 236, 0.3),
    inset 0 0 25px rgba(53, 188, 236, 0.18);
}

.node-center .node-icon-slot {
  width: 57%;
}

.node-temperature { top: 12%; left: 50%; }
.node-water { top: 23%; left: 79.2%; }
.node-air { top: 52%; left: 88.6%; }
.node-facility { top: 82.3%; left: 73.3%; }
.node-truck { top: 89.2%; left: 50%; }
.node-crop { top: 81.8%; left: 25.2%; }
.node-humidity { top: 52.3%; left: 11.3%; }
.node-agriculture { top: 23.3%; left: 21.8%; }

.legacy-network {
  display: none !important;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.benefit {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  min-height: 74px;
  padding: 12px 10px;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  line-height: 1.45;
}

.benefit strong {
  display: block;
  margin-bottom: 4px;
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
}

.benefit-icon {
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  color: #35bcec;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.benefit-icon.is-green {
  color: #9bd72c;
}

.benefit-icon .node-icon {
  width: 62%;
  height: 62%;
}

.brand-footer {
  display: flex;
  gap: 22px;
  margin-top: 19px;
  font-size: 10px;
}

.brand-footer a {
  color: rgba(255, 255, 255, 0.52);
}

.brand-footer a:hover {
  color: rgba(255, 255, 255, 0.86);
}

.auth-panel {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: 42px clamp(42px, 7vw, 112px) 26px;
  background: #fdfefe;
}

.beyond-logo {
  align-self: center;
  color: var(--navy);
  font-size: 38px;
  font-weight: 400;
  letter-spacing: -0.065em;
  line-height: 1;
}

.logo-orbit {
  position: relative;
  display: inline-block;
  width: 31px;
  height: 31px;
  margin: 0 1px 0 2px;
  vertical-align: -5px;
  border: 7px solid var(--cyan);
  border-top-color: var(--green);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.logo-orbit::after {
  position: absolute;
  top: -12px;
  right: -7px;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--white);
}

.auth-card {
  width: 100%;
  max-width: 500px;
  margin: clamp(34px, 6vh, 64px) auto 0;
}

.auth-card h2 {
  margin: 0 0 8px;
  font-size: 31px;
  letter-spacing: -0.035em;
  text-align: center;
}

.subheading {
  margin: 0 0 27px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 23px;
  padding: 12px 14px;
  color: #176d9b;
  border: 1px solid #bfe5f5;
  border-radius: 8px;
  background: var(--pale-blue);
  font-size: 12px;
  line-height: 1.45;
}

.notice svg {
  flex: 0 0 auto;
  margin-top: 1px;
}

.field {
  margin-bottom: 17px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
}

.field-smaller label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
}

.input-wrap {
  position: relative;
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  color: var(--ink);
  border: 1px solid #bdcad2;
  border-radius: 8px;
  outline: none;
  background: var(--white);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 141, 208, 0.14);
}

.field-smaller input {
  width: 96%;
  height: 36px;
  padding: 0 12px;
  color: var(--ink);
  border: 1px solid #bdcad2;
  border-radius: 8px;
  outline: none;
  background: var(--white);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field-smaller input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(22, 141, 208, 0.14);
}

.password-input {
  padding-right: 48px !important;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: var(--muted);
  border: 0;
  border-radius: 7px;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  color: var(--navy);
  background: #f3f6f8;
}

.form-options {
  display: flex;
  justify-content: flex-end;
  margin: -1px 0 20px;
  font-size: 12px;
}

.primary,
.microsoft {
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.primary {
  color: var(--white);
  border: 1px solid #087cbc;
  background: var(--blue);
  box-shadow: 0 8px 18px rgba(22, 141, 208, 0.2);
  font-weight: 600;
}

.primary:hover {
  background: #0d80bd;
  transform: translateY(-1px);
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: #8a9aa5;
  font-size: 11px;
}

.divider::before,
.divider::after {
  height: 1px;
  flex: 1;
  content: "";
  background: var(--line);
}

.microsoft {
  color: var(--ink);
  border: 1px solid #bdcad2;
  background: var(--white);
  font-weight: 500;
}

.microsoft:hover {
  border-color: #8da2ae;
  background: #fafcfd;
}

.ms-mark {
  display: grid;
  grid-template-columns: repeat(2, 8px);
  gap: 2px;
}

.ms-mark span {
  width: 8px;
  height: 8px;
}

.ms-mark span:nth-child(1) { background: #f35325; }
.ms-mark span:nth-child(2) { background: #81bc06; }
.ms-mark span:nth-child(3) { background: #05a6f0; }
.ms-mark span:nth-child(4) { background: #ffba08; }

.app-prompt {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfdfe;
}

.app-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--white);
  border-radius: 9px;
  background: linear-gradient(145deg, var(--cyan), var(--blue));
}

.app-copy {
  min-width: 0;
}

.app-copy strong,
.app-copy span {
  display: block;
}

.app-copy strong {
  font-size: 12px;
}

.app-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.app-copy a {
  display: inline-block;
  margin-top: 5px;
  font-size: 10px;
  font-weight: 600;
}

.qr-wrap {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.qr-code {
  display: block;
  width: 76px;
  height: 76px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  image-rendering: pixelated;
}

.qr-caption {
  color: var(--muted);
  font-size: 8px;
  font-weight: 500;
  white-space: nowrap;
}

.legal {
  margin-top: auto;
  padding-top: 18px;
  color: #8a9aa5;
  font-size: 10px;
  text-align: right;
  padding-right: 25px;
  margin-bottom: 20px;
}

@media (max-height: 820px) and (min-width: 901px) {
  .brand-panel {
    padding-top: 34px;
  }

  .brand-copy {
    margin-top: 30px;
  }

  .constellation {
    max-height: 240px;
  }

  .auth-panel {
    padding-top: 30px;
  }

  .auth-card {
    margin-top: 26px;
  }
}

@media (min-width: 901px) and (min-height: 900px) {
  .constellation {
    position: absolute;
    bottom: 30vh;
    left: 50%;
    width: min(540px, calc(100% - 110px));
    margin: 0;
    transform: translate(-50%, 50%);
  }

  .benefits {
    margin-top: auto;
  }
}

@media (max-width: 900px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-panel {
    order: 1;
  }

  .brand-panel {
    order: 2;
  }

  .brand-panel,
  .auth-panel {
    min-height: auto;
  }

  .brand-panel {
    padding: 30px;
  }

  .brand-copy {
    margin-top: 38px;
  }

  .constellation {
    width: min(640px, 100%);
    margin-top: 30px;
  }

  .benefits {
    margin-top: 22px;
  }

  .auth-panel {
    padding: 36px 28px 28px;
  }

  .auth-card {
    margin-top: 42px;
  }

  .legal {
    margin-top: 38px;
  }
}

@media (max-width: 560px) {
  .brand-panel,
  .auth-panel {
    padding-right: 22px;
    padding-left: 22px;
  }

  .auth-card,
  .notice,
  .field,
  .input-wrap,
  .field input,
  .primary,
  .microsoft,
  .app-prompt,
  .app-copy {
    min-width: 0;
    max-width: 100%;
  }

  .field-smaller input,
  {
    min-width: 0;
    max-width: 96%;
  }

  .notice span,
  .app-copy span {
    overflow-wrap: anywhere;
  }

  h1 {
    font-size: 32px;
    line-height: 1.08;
  }

  .constellation {
    width: 100%;
    margin-left: 0;
  }

  .monitor-node {
    --node-size: 42px;
  }

  .node-center {
    --node-size: 88px;
  }

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

  .benefit {
    min-height: auto;
  }

  .app-prompt {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .qr-wrap {
    grid-column: 1 / -1;
    justify-self: center;
    padding-top: 4px;
  }
}
