:root {
  --sparrow-cyan: #09c7cf;
  --sparrow-cyan-bright: #6ffaff;
  --sparrow-deep: #050b14;
  --sparrow-panel: rgba(8, 18, 31, 0.82);
  --sparrow-line: rgba(95, 236, 241, 0.22);
  --sparrow-muted: rgba(226, 242, 247, 0.66);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--sparrow-deep);
}

body.sparrow-access-body {
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow: hidden;
  color: #f5fbfc;
  background:
    radial-gradient(circle at 28% 42%, rgba(3, 152, 158, 0.16), transparent 35%),
    linear-gradient(120deg, #07111e 0%, #050b14 56%, #08131f 100%);
}

.sparrow-access-body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0%, transparent 48%, rgba(5, 11, 20, 0.42) 66%, rgba(5, 11, 20, 0.88) 100%),
    linear-gradient(180deg, rgba(5, 11, 20, 0.48), transparent 18%, transparent 78%, rgba(5, 11, 20, 0.74));
}

.sparrow-access-shell {
  position: relative;
  z-index: 2;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
}

.sparrow-skip-link {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 100;
  padding: 10px 16px;
  color: #031416;
  background: var(--sparrow-cyan-bright);
  border-radius: 6px;
  transform: translate(-50%, -160%);
  transition: transform 0.2s ease;
}

.sparrow-skip-link:focus {
  transform: translate(-50%, 0);
}

.sparrow-access-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  min-height: 94px;
  padding: 22px clamp(24px, 4.5vw, 74px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(4, 10, 18, 0.66), rgba(4, 10, 18, 0));
}

.sparrow-access-title,
.sparrow-overview-link,
.sparrow-brand {
  color: #f5fbfc;
  text-decoration: none;
}

.sparrow-access-title {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
  font-size: clamp(0.95rem, 1.4vw, 1.18rem);
  letter-spacing: 0.045em;
}

.sparrow-access-title img {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 11px rgba(9, 199, 207, 0.5));
}

.sparrow-brand {
  justify-self: center;
  opacity: 0.36;
  transition: opacity 0.25s ease;
}

.sparrow-brand:hover,
.sparrow-brand:focus-visible {
  opacity: 0.72;
}

.sparrow-brand-crop {
  display: block;
  width: clamp(190px, 21vw, 300px);
  aspect-ratio: 802 / 183;
  overflow: hidden;
}

.sparrow-brand-crop img {
  display: block;
  width: 111.85%;
  max-width: none;
  height: auto;
  transform: translate(-4.01%, -17.99%);
}

.sparrow-overview-link {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  padding: 8px 0;
  color: rgba(241, 249, 251, 0.76);
  font-size: 0.92rem;
  border-bottom: 1px solid rgba(9, 199, 207, 0.45);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.sparrow-overview-link:hover,
.sparrow-overview-link:focus-visible {
  color: #fff;
  border-color: var(--sparrow-cyan-bright);
}

.sparrow-access-main {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 100svh;
  padding: 108px clamp(24px, 5.2vw, 84px) 74px;
}

.sparrow-globe-region {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  pointer-events: none;
}

.sparrow-globe-region::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0%, transparent 48%, rgba(5, 11, 20, 0.42) 66%, rgba(5, 11, 20, 0.88) 100%),
    linear-gradient(180deg, rgba(5, 11, 20, 0.3), transparent 18%, transparent 78%, rgba(5, 11, 20, 0.66));
}

.sparrow-stars {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    radial-gradient(circle at 8% 17%, rgba(255, 255, 255, 0.72) 0 1px, transparent 1.4px),
    radial-gradient(circle at 21% 74%, rgba(111, 250, 255, 0.6) 0 1px, transparent 1.5px),
    radial-gradient(circle at 38% 12%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.3px),
    radial-gradient(circle at 47% 83%, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.4px),
    radial-gradient(circle at 63% 24%, rgba(111, 250, 255, 0.42) 0 1px, transparent 1.3px),
    radial-gradient(circle at 81% 69%, rgba(255, 255, 255, 0.35) 0 1px, transparent 1.5px);
  background-size: 290px 240px, 370px 310px, 430px 350px, 510px 390px, 590px 440px, 670px 480px;
}

.sparrow-globe,
.sparrow-globe-fallback {
  position: absolute;
  top: 3%;
  left: -8%;
  width: min(79vw, 1180px);
  height: 94%;
}

.sparrow-globe {
  z-index: 2;
  pointer-events: auto;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.sparrow-globe-ready .sparrow-globe {
  opacity: 1;
}

.sparrow-globe-fallback {
  z-index: 1;
  top: 15%;
  left: 2%;
  width: min(54vw, 760px);
  height: auto;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(84, 220, 226, 0.28);
  border-radius: 50%;
  background-image: url("../pics/textures/earth-day.webp");
  background-position: 48% center;
  background-size: auto 100%;
  box-shadow:
    0 0 22px rgba(9, 199, 207, 0.25),
    0 0 95px rgba(9, 199, 207, 0.12),
    inset -90px -12px 120px rgba(0, 2, 8, 0.86);
  filter: brightness(0.65) saturate(0.78);
  transition: opacity 0.5s ease;
}

.sparrow-globe-fallback::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 1;
  border-radius: inherit;
  background: linear-gradient(105deg, rgba(1, 5, 12, 0.82), transparent 43%, transparent 70%, rgba(1, 5, 12, 0.58));
}

.sparrow-fallback-network {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 2px rgba(111, 250, 255, 0.95));
}

.sparrow-fallback-network line {
  stroke: var(--sparrow-cyan-bright);
  stroke-width: 0.55;
  stroke-linecap: round;
}

.sparrow-fallback-network circle {
  fill: var(--sparrow-cyan-bright);
  stroke: #fff;
  stroke-width: 0.32;
}

.sparrow-globe-ready .sparrow-globe-fallback {
  opacity: 0;
}

.sparrow-scenario-panel {
  position: absolute;
  left: clamp(24px, 5.2vw, 84px);
  bottom: 75px;
  z-index: 4;
  width: min(420px, 40vw);
  padding: 16px 18px;
  border: 1px solid rgba(9, 199, 207, 0.2);
  border-radius: 12px;
  background: rgba(5, 13, 24, 0.58);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sparrow-scenario-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: #e5fbfd;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sparrow-live-dot,
.sparrow-beta-status > span {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--sparrow-cyan-bright);
  box-shadow: 0 0 13px rgba(111, 250, 255, 0.86);
  animation: sparrow-pulse 2.4s ease-in-out infinite;
}

@keyframes sparrow-pulse {
  0%, 100% { opacity: 0.45; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1); }
}

.sparrow-hub-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 9px;
  padding: 0;
  list-style: none;
}

.sparrow-hub-list li {
  padding: 5px 9px;
  color: #dffbfc;
  font-size: 0.78rem;
  border: 1px solid rgba(9, 199, 207, 0.35);
  border-radius: 999px;
  background: rgba(3, 152, 158, 0.12);
}

.sparrow-scenario-panel p {
  margin: 0;
  color: var(--sparrow-muted);
  font-size: 0.74rem;
  line-height: 1.45;
}

.sparrow-scenario-panel .sparrow-scenario-summary {
  margin-bottom: 3px;
  color: rgba(229, 251, 252, 0.88);
}

.sparrow-scenario-panel .sparrow-solar-time {
  margin-top: 4px;
  color: rgba(111, 250, 255, 0.68);
}

.sparrow-login-panel {
  position: relative;
  z-index: 8;
  display: block;
  width: min(100%, 430px);
  min-height: 0;
  padding: clamp(28px, 3.6vw, 44px);
  border: 1px solid var(--sparrow-line);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 38%),
    var(--sparrow-panel);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 42px rgba(3, 152, 158, 0.055);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.sparrow-login-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 28px;
  width: 86px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sparrow-cyan-bright), transparent);
  box-shadow: 0 0 12px rgba(111, 250, 255, 0.7);
}

.sparrow-beta-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  padding: 7px 11px;
  color: rgba(223, 251, 252, 0.86);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid rgba(9, 199, 207, 0.28);
  border-radius: 999px;
  background: rgba(3, 152, 158, 0.1);
}

.sparrow-beta-status > span {
  background: #ffd166;
  box-shadow: 0 0 13px rgba(255, 209, 102, 0.82);
}

.sparrow-login-eyebrow {
  margin: 0 0 8px;
  color: var(--sparrow-cyan-bright);
  font-size: 0.76rem;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sparrow-login-panel h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.sparrow-login-intro {
  margin: 0 0 26px;
  color: rgba(231, 243, 247, 0.74);
  font-size: 0.98rem;
  line-height: 1.55;
}

.sparrow-login-form {
  display: grid;
  gap: 18px;
}

.sparrow-form-field {
  display: grid;
  gap: 8px;
}

.sparrow-form-field label,
.sparrow-password-row {
  color: rgba(244, 251, 252, 0.84);
  font-size: 0.82rem;
}

.sparrow-password-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.sparrow-form-field input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  color: rgba(244, 251, 252, 0.48);
  font: inherit;
  border: 1px solid rgba(181, 224, 229, 0.15);
  border-radius: 9px;
  outline: none;
  background: rgba(2, 8, 16, 0.52);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.18);
  opacity: 1;
  -webkit-text-fill-color: rgba(244, 251, 252, 0.42);
}

.sparrow-form-field input::placeholder {
  color: rgba(209, 230, 234, 0.36);
}

.sparrow-forgot-link {
  padding: 0;
  color: rgba(111, 250, 255, 0.44);
  font: inherit;
  border: 0;
  background: none;
}

.sparrow-sign-in,
.sparrow-request-access {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 9px;
  font: 700 0.92rem Alata, sans-serif;
  letter-spacing: 0.025em;
}

.sparrow-sign-in {
  margin-top: 2px;
  color: rgba(229, 247, 249, 0.42);
  border: 1px solid rgba(181, 224, 229, 0.11);
  background: rgba(135, 169, 174, 0.11);
  cursor: not-allowed;
}

.sparrow-access-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 18px;
  color: rgba(218, 235, 239, 0.42);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sparrow-access-divider::before,
.sparrow-access-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(208, 237, 240, 0.11);
}

.sparrow-request-access {
  color: #031416;
  text-decoration: none;
  border: 1px solid var(--sparrow-cyan-bright);
  background: linear-gradient(135deg, var(--sparrow-cyan-bright), #23cbd1 65%, #07959b);
  box-shadow: 0 10px 30px rgba(3, 152, 158, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sparrow-request-access:hover,
.sparrow-request-access:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(3, 152, 158, 0.3);
}

.sparrow-access-notice {
  margin: 14px 0 0;
  color: rgba(214, 231, 235, 0.52);
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
}

.sparrow-access-footer {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 54px;
  padding: 12px clamp(24px, 4.5vw, 74px);
  color: rgba(225, 239, 242, 0.42);
  font-size: 0.68rem;
  letter-spacing: 0.045em;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.sparrow-access-footer span:nth-child(2) {
  justify-self: center;
}

.sparrow-access-footer a {
  justify-self: end;
  color: inherit;
  text-decoration: none;
}

.sparrow-access-footer a:hover,
.sparrow-access-footer a:focus-visible {
  color: rgba(229, 251, 252, 0.85);
}

.sparrow-noscript {
  position: fixed;
  left: 50%;
  bottom: 64px;
  z-index: 50;
  width: min(90vw, 600px);
  margin: 0;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.82rem;
  text-align: center;
  border: 1px solid rgba(9, 199, 207, 0.35);
  border-radius: 8px;
  background: #0a1826;
  transform: translateX(-50%);
}

.sparrow-access-title:focus-visible,
.sparrow-brand:focus-visible,
.sparrow-overview-link:focus-visible,
.sparrow-request-access:focus-visible,
.sparrow-access-footer a:focus-visible {
  outline: 2px solid var(--sparrow-cyan-bright);
  outline-offset: 4px;
}

@media (max-width: 900px) {
  body.sparrow-access-body {
    overflow-y: auto;
  }

  .sparrow-access-shell {
    min-height: 100svh;
    overflow: hidden;
  }

  .sparrow-access-header {
    min-height: 78px;
    padding: 16px 18px;
  }

  .sparrow-access-title {
    gap: 7px;
    font-size: 0.82rem;
  }

  .sparrow-access-title img {
    width: 22px;
    height: 22px;
  }

  .sparrow-brand-crop {
    width: clamp(125px, 33vw, 175px);
  }

  .sparrow-overview-link {
    font-size: 0;
    border: 0;
  }

  .sparrow-overview-link::before {
    content: "Overview";
    font-size: 0.76rem;
  }

  .sparrow-overview-link span {
    font-size: 0.8rem;
  }

  .sparrow-access-main {
    align-items: flex-start;
    min-height: 100svh;
    padding: 245px 16px 88px;
  }

  .sparrow-globe,
  .sparrow-globe-fallback {
    top: 54px;
    left: -37vw;
    width: 120vw;
    height: 390px;
  }

  .sparrow-globe {
    top: 12px;
  }

  .sparrow-globe-fallback {
    top: 74px;
    left: -28vw;
    width: 82vw;
    height: auto;
  }

  .sparrow-scenario-panel {
    top: 135px;
    right: 14px;
    bottom: auto;
    left: auto;
    width: 178px;
    padding: 11px;
    background: rgba(5, 13, 24, 0.74);
  }

  .sparrow-scenario-heading {
    margin-bottom: 8px;
    font-size: 0.64rem;
  }

  .sparrow-hub-list {
    gap: 5px;
    margin-bottom: 6px;
  }

  .sparrow-hub-list li {
    padding: 4px 7px;
    font-size: 0.66rem;
  }

  .sparrow-scenario-panel p {
    font-size: 0.62rem;
  }

  .sparrow-scenario-panel .sparrow-solar-time {
    display: none;
  }

  .sparrow-login-panel {
    width: 100%;
    margin: 0 auto;
    padding: 26px 22px;
    border-radius: 16px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 38%),
      rgba(7, 16, 28, 0.91);
  }

  .sparrow-beta-status {
    margin-bottom: 20px;
  }

  .sparrow-login-panel h1 {
    font-size: 2.15rem;
  }

  .sparrow-login-intro {
    margin-bottom: 20px;
    font-size: 0.9rem;
  }

  .sparrow-login-form {
    gap: 14px;
  }

  .sparrow-form-field input,
  .sparrow-sign-in,
  .sparrow-request-access {
    min-height: 47px;
    height: 47px;
  }

  .sparrow-access-divider {
    margin: 19px 0 15px;
  }

  .sparrow-access-footer {
    position: absolute;
    grid-template-columns: 1fr auto;
    gap: 6px 12px;
    min-height: 52px;
    padding: 10px 18px;
    font-size: 0.6rem;
  }

  .sparrow-access-footer > span:first-child {
    display: none;
  }

  .sparrow-access-footer span:nth-child(2) {
    justify-self: start;
  }
}

@media (max-width: 430px) and (max-height: 760px) {
  .sparrow-access-main {
    padding-top: 205px;
  }

  .sparrow-globe,
  .sparrow-globe-fallback {
    top: 34px;
  }

  .sparrow-globe {
    top: 0;
  }

  .sparrow-scenario-panel {
    top: 112px;
  }

  .sparrow-beta-status {
    margin-bottom: 14px;
  }

  .sparrow-login-panel {
    padding-top: 21px;
    padding-bottom: 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sparrow-live-dot,
  .sparrow-beta-status > span {
    animation: none;
  }

  .sparrow-globe,
  .sparrow-globe-fallback,
  .sparrow-request-access,
  .sparrow-brand,
  .sparrow-skip-link {
    transition: none;
  }
}
