/* Refined shared surfaces and the animated space scene on the sign-in page. */
:root {
  --experience-glass: rgba(255, 255, 255, .84);
  --experience-line: rgba(121, 151, 170, .16);
  --experience-ease: cubic-bezier(.2, .75, .25, 1);
}

#app-shell .main-area {
  background-color: var(--canvas, #f4f7fa);
  background-image:
    radial-gradient(ellipse at 11% 8%, rgba(31, 174, 160, .055), transparent 34%),
    radial-gradient(ellipse at 88% 30%, rgba(55, 130, 192, .045), transparent 32%);
}
#app-shell .topbar {
  background: var(--experience-glass);
  border-bottom-color: var(--experience-line);
  box-shadow: 0 5px 22px rgba(20, 43, 67, .035);
}
#app-shell .page-wrap { padding-top: clamp(20px, 2.1vw, 31px); }
#app-shell .page-view.active { animation: experience-page-enter .3s var(--experience-ease) both; }
#app-shell .page-view.active > .page-heading { animation: experience-heading-enter .36s var(--experience-ease) both; }
#app-shell .page-view .panel,
#app-shell .page-view .settings-panel {
  border-radius: 17px;
  box-shadow: 0 9px 27px rgba(26, 51, 74, .052), 0 1px 2px rgba(26, 51, 74, .025);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
#app-shell .page-view .panel:hover,
#app-shell .page-view .settings-panel:hover {
  border-color: rgba(48, 151, 140, .25);
  box-shadow: 0 13px 32px rgba(26, 51, 74, .075), 0 2px 5px rgba(26, 51, 74, .025);
}
#app-shell .page-view .panel-heading { margin-bottom: 18px; }
#app-shell .page-view .panel-heading h2 { font-size: clamp(15px, 1.1vw, 17px); }
#app-shell .page-view .panel-heading p { font-size: 12px; }
#app-shell .page-view .stat-card,
#app-shell .page-view .overview-metric,
#app-shell .page-view .contact-metric,
#app-shell .page-view .device-summary-card,
#app-shell .page-view .device-registry-card,
#app-shell .page-view .api-overview-card,
#app-shell .page-view .key-row {
  border-radius: 14px;
  transition: transform .2s var(--experience-ease), border-color .2s ease, box-shadow .2s ease;
}
#app-shell .page-view .stat-card:hover,
#app-shell .page-view .overview-metric:hover,
#app-shell .page-view .contact-metric:hover,
#app-shell .page-view .device-summary-card:hover,
#app-shell .page-view .device-registry-card:hover,
#app-shell .page-view .api-overview-card:hover,
#app-shell .page-view .key-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(29, 59, 80, .085);
}
#app-shell .side-nav .nav-item { transition: color .18s ease, background .18s ease, transform .18s ease; }
#app-shell .side-nav .nav-item:not(.nav-group-toggle):hover { transform: translateX(-2px); }
#app-shell .connection-chip { border: 1px solid rgba(46, 163, 144, .1); }
#app-shell .connection-chip .status-dot { animation: experience-live-pulse 2.5s ease-out infinite; }
#app-shell .page-view table tbody tr { transition: background-color .16s ease; }
#app-shell .notification-panel:not(.hidden) { animation: experience-panel-enter .2s var(--experience-ease) both; }
#app-shell .page-view .button:not(:disabled) { transition: transform .16s ease, box-shadow .16s ease, filter .16s ease; }
#app-shell .page-view .button:not(:disabled):active { transform: translateY(1px) scale(.99); }
#app-shell .page-view :is(input, select, textarea):focus-visible { outline-offset: 1px; }

html.theme-dark #app-shell .main-area {
  background-image:
    radial-gradient(ellipse at 11% 8%, rgba(28, 166, 151, .085), transparent 34%),
    radial-gradient(ellipse at 88% 30%, rgba(51, 117, 176, .075), transparent 32%);
}
html.theme-dark #app-shell .topbar {
  background: rgba(16, 30, 48, .9);
  border-bottom-color: rgba(155, 183, 205, .11);
  box-shadow: 0 5px 22px rgba(0, 0, 0, .11);
}
html.theme-dark #app-shell .page-view .panel:hover,
html.theme-dark #app-shell .page-view .settings-panel:hover { border-color: rgba(84, 190, 173, .28); }

/* Login atmosphere: a hand-built Earth, star layers, and orbiting satellites. */
.login-screen {
  background:
    radial-gradient(ellipse at 7% 82%, rgba(8, 167, 195, .15), transparent 38%),
    radial-gradient(ellipse at 91% 9%, rgba(33, 87, 165, .3), transparent 39%),
    linear-gradient(135deg, #061324 0%, #0d2038 50%, #08182b 100%);
}
.login-screen::before { opacity: .09; background-size: 70px 70px; }
.login-showcase {
  background:
    radial-gradient(ellipse at 48% 92%, rgba(10, 121, 193, .2), transparent 47%),
    radial-gradient(ellipse at 0% 15%, rgba(26, 137, 166, .16), transparent 47%),
    linear-gradient(155deg, #0b1d34 0%, #0c2038 58%, #08172a 100%);
}
.login-showcase::after { opacity: .045; background-size: 27px 27px; }
.login-network-visual.space-scene {
  display: block;
  isolation: isolate;
  min-height: 270px;
  margin: 5px -18px 2px;
  overflow: hidden;
  border-radius: 24px;
  background: radial-gradient(ellipse at 50% 87%, rgba(11, 102, 167, .12), transparent 56%);
}
.space-stars,
.space-nebula,
.earth-halo,
.login-earth,
.space-orbit,
.space-scene-label { position: absolute; pointer-events: none; }
.space-stars { inset: 0; }
.space-stars-far {
  opacity: .78;
  background-image:
    radial-gradient(1px 1px at 7% 23%, #e7fbff 98%, transparent),
    radial-gradient(1px 1px at 19% 71%, #9ceaff 98%, transparent),
    radial-gradient(1px 1px at 34% 14%, #fff 98%, transparent),
    radial-gradient(1px 1px at 46% 58%, #9edfff 98%, transparent),
    radial-gradient(1px 1px at 59% 29%, #fff 98%, transparent),
    radial-gradient(1px 1px at 73% 67%, #a9eaff 98%, transparent),
    radial-gradient(1px 1px at 87% 19%, #fff 98%, transparent),
    radial-gradient(1px 1px at 94% 52%, #9ceaff 98%, transparent);
  background-size: 100% 100%;
  animation: space-twinkle 5.5s ease-in-out infinite alternate;
}
.space-stars-near {
  opacity: .48;
  background-image:
    radial-gradient(2px 2px at 14% 43%, #55eaff 98%, transparent),
    radial-gradient(1.5px 1.5px at 27% 31%, #fff 98%, transparent),
    radial-gradient(1.5px 1.5px at 67% 17%, #d7faff 98%, transparent),
    radial-gradient(2px 2px at 81% 42%, #52dfff 98%, transparent),
    radial-gradient(1px 1px at 91% 78%, #fff 98%, transparent);
  animation: space-twinkle 4s ease-in-out -1.7s infinite alternate-reverse;
}
.space-nebula {
  width: 68%;
  height: 45%;
  top: 16%;
  left: 16%;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent, rgba(36, 166, 220, .075), rgba(61, 102, 198, .055), transparent);
  filter: blur(22px);
  transform: rotate(-18deg);
}
.login-earth {
  z-index: 1;
  width: min(112%, 490px);
  height: 100%;
  left: 50%;
  bottom: -30px;
  transform: translateX(-50%);
  overflow: visible;
  filter: drop-shadow(0 -8px 26px rgba(40, 185, 255, .12));
}
.earth-halo {
  z-index: 0;
  width: 82%;
  height: 40%;
  left: 9%;
  bottom: 4%;
  border-radius: 50%;
  background: rgba(31, 174, 241, .13);
  filter: blur(28px);
  animation: earth-breathe 5s ease-in-out infinite alternate;
}
.space-orbit {
  z-index: 2;
  display: block;
  left: 50%;
  top: 18%;
  width: min(77%, 360px);
  height: 64%;
  border: 1px solid rgba(143, 229, 255, .29);
  border-radius: 50%;
  transform: translateX(-50%) rotate(-18deg);
  box-shadow: 0 0 18px rgba(48, 166, 224, .055), inset 0 0 18px rgba(48, 166, 224, .035);
  animation: satellite-orbit 28s linear infinite;
}
.space-orbit-two {
  top: 29%;
  width: min(62%, 290px);
  height: 50%;
  border-color: rgba(105, 205, 230, .17);
  transform: translateX(-50%) rotate(27deg);
  animation-duration: 37s;
  animation-direction: reverse;
}
.space-satellite {
  position: absolute;
  top: -14px;
  left: calc(50% - 14px);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(172, 244, 255, .42);
  border-radius: 9px;
  color: #d9fbff;
  background: linear-gradient(145deg, rgba(33, 147, 199, .95), rgba(19, 63, 121, .94));
  box-shadow: 0 0 18px rgba(28, 192, 244, .38), inset 0 1px 0 rgba(255, 255, 255, .4);
  animation: satellite-counter-rotate 28s linear infinite;
}
.space-satellite svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.space-orbit-two .space-satellite { animation-duration: 37s; }
.space-satellite.satellite-small { width: 22px; height: 22px; top: -11px; left: calc(50% - 11px); color: #bfffcf; border-color: rgba(147, 247, 191, .38); background: linear-gradient(145deg, rgba(33, 150, 137, .9), rgba(17, 76, 94, .94)); box-shadow: 0 0 18px rgba(48, 217, 186, .29); }
.space-satellite.satellite-small svg { width: 17px; height: 17px; }
.space-scene-label {
  z-index: 3;
  right: 7%;
  bottom: 7%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(173, 225, 239, .15);
  border-radius: 999px;
  color: #bbd4e3;
  background: rgba(6, 20, 37, .58);
  backdrop-filter: blur(10px);
  font-size: 9px;
}
.space-scene-label i { width: 6px; height: 6px; border-radius: 50%; background: #4de0bf; box-shadow: 0 0 11px #4de0bf; }
.login-showcase-copy h2 span { color: #74ddf0; }
.login-showcase-foot i { background: #56dff2; box-shadow: 0 0 0 4px rgba(86, 223, 242, .13); }
.login-main { background: linear-gradient(155deg, #fff 0%, #fbfdff 64%, #f1f8fb 100%); }
.login-card { border-color: rgba(230, 244, 248, .8); box-shadow: 0 42px 110px rgba(0, 9, 23, .42), 0 0 0 1px rgba(143, 225, 243, .08); }

@keyframes experience-page-enter { from { opacity: .72; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes experience-heading-enter { from { opacity: .65; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes experience-panel-enter { from { opacity: 0; transform: translateY(-5px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes experience-live-pulse { 0% { box-shadow: 0 0 0 0 rgba(54, 184, 137, .38); } 75%, 100% { box-shadow: 0 0 0 7px rgba(54, 184, 137, 0); } }
@keyframes space-twinkle { from { opacity: .35; } to { opacity: .9; } }
@keyframes satellite-orbit { to { transform: translateX(-50%) rotate(342deg); } }
@keyframes satellite-counter-rotate { to { transform: rotate(-360deg); } }
@keyframes earth-breathe { from { opacity: .55; transform: scale(.94); } to { opacity: .95; transform: scale(1.04); } }

@media (max-width: 900px) and (min-width: 701px) {
  .login-network-visual.space-scene { min-height: 225px; margin-inline: -10px; }
}
@media (max-width: 700px) {
  .login-showcase {
    grid-template-columns: minmax(0, 1fr) 112px;
    min-height: 235px;
    align-items: center;
  }
  .login-showcase-brand { grid-column: 1 / -1; }
  .login-showcase-copy { grid-column: 1; grid-row: 2; align-self: center; }
  .login-showcase-copy p { display: block; max-width: 215px; margin-top: 5px; font-size: 10px; }
  .login-network-visual.space-scene {
    display: block;
    grid-column: 2;
    grid-row: 2;
    align-self: stretch;
    width: 145px;
    min-height: 150px;
    margin: 0 -27px 0 -7px;
  }
  .space-scene-label { right: 4%; bottom: 4%; padding: 4px 7px; font-size: 7px; }
  .space-orbit { width: 88%; }
  .space-orbit-two { width: 69%; }
}
@media (max-width: 430px) {
  .login-showcase { grid-template-columns: minmax(0, 1fr) 93px; padding-inline: 16px; }
  .login-network-visual.space-scene { width: 125px; margin-right: -25px; }
  .login-showcase-copy h2 { font-size: 15px; }
  .login-showcase-copy p { font-size: 9px; }
  .space-scene-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #app-shell .page-view.active,
  #app-shell .page-view.active > .page-heading,
  #app-shell .notification-panel:not(.hidden),
  #app-shell .connection-chip .status-dot,
  .space-stars,
  .earth-halo,
  .space-orbit,
  .space-satellite { animation: none !important; }
  #app-shell .page-view .panel,
  #app-shell .page-view .settings-panel,
  #app-shell .page-view .button,
  #app-shell .side-nav .nav-item { transition: none !important; }
  #app-shell .page-view :is(.panel, .settings-panel, .stat-card, .overview-metric, .contact-metric, .device-summary-card, .device-registry-card, .api-overview-card, .key-row):hover,
  #app-shell .page-view .button:not(:disabled):active,
  #app-shell .side-nav .nav-item:hover { transform: none; }
}

/* Cinematic, full-viewport login backdrop. All space motion stays behind the form. */
.login-screen {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: auto;
  isolation: isolate;
  padding: clamp(18px, 4vh, 48px) clamp(14px, 4vw, 52px);
  background: #020712;
}
.login-screen::before,
.login-screen::after { display: none; }
.login-cosmos-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #020712;
  pointer-events: none;
}
.login-cosmos-image {
  position: absolute;
  inset: -2%;
  background-image: url("/assets/login-earth-cinematic-v1.png");
  background-position: center 54%;
  background-size: cover;
  transform: scale(1.015);
  will-change: transform;
  animation: login-cosmos-camera 720s linear infinite alternate;
}
.login-cosmos-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(1, 6, 16, .15) 0%, rgba(2, 9, 22, .04) 40%, rgba(2, 8, 19, .26) 100%),
    radial-gradient(ellipse at 50% 42%, transparent 28%, rgba(1, 5, 14, .26) 100%);
}
.login-cosmos-stars {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  mix-blend-mode: screen;
}
.login-cosmos-stars-far {
  opacity: .44;
  background-image:
    radial-gradient(1px 1px at 7% 17%, rgba(226, 244, 255, .95) 98%, transparent),
    radial-gradient(1px 1px at 14% 42%, rgba(168, 214, 241, .8) 98%, transparent),
    radial-gradient(1px 1px at 22% 9%, rgba(232, 244, 255, .9) 98%, transparent),
    radial-gradient(1px 1px at 31% 29%, rgba(174, 217, 244, .88) 98%, transparent),
    radial-gradient(1px 1px at 39% 13%, rgba(230, 244, 255, .9) 98%, transparent),
    radial-gradient(1px 1px at 48% 35%, rgba(174, 217, 244, .85) 98%, transparent),
    radial-gradient(1px 1px at 58% 16%, rgba(238, 248, 255, .95) 98%, transparent),
    radial-gradient(1px 1px at 67% 31%, rgba(168, 214, 241, .86) 98%, transparent),
    radial-gradient(1px 1px at 77% 12%, rgba(230, 244, 255, .92) 98%, transparent),
    radial-gradient(1px 1px at 87% 26%, rgba(172, 214, 242, .85) 98%, transparent),
    radial-gradient(1px 1px at 94% 8%, rgba(232, 245, 255, .9) 98%, transparent);
  animation: login-star-shimmer 6.8s ease-in-out -2.4s infinite alternate;
}
.login-cosmos-stars-near {
  opacity: .32;
  background-image:
    radial-gradient(1.5px 1.5px at 11% 30%, rgba(187, 231, 255, .95) 98%, transparent),
    radial-gradient(1px 1px at 26% 18%, rgba(248, 252, 255, .98) 98%, transparent),
    radial-gradient(1.5px 1.5px at 43% 26%, rgba(168, 222, 247, .95) 98%, transparent),
    radial-gradient(1px 1px at 62% 9%, rgba(248, 252, 255, .95) 98%, transparent),
    radial-gradient(1.5px 1.5px at 74% 36%, rgba(178, 227, 251, .95) 98%, transparent),
    radial-gradient(1px 1px at 91% 18%, rgba(246, 250, 255, .98) 98%, transparent);
  animation: login-star-shimmer 4.3s ease-in-out -1.1s infinite alternate-reverse;
}
.login-cosmos-clouds {
  position: absolute;
  inset: 41% -7% -9%;
  background-image: url("/assets/login-earth-clouds-v1.png");
  background-repeat: no-repeat;
  background-position: center 48%;
  background-size: 108% 145%;
  opacity: .22;
  filter: brightness(.76) saturate(.72) blur(.35px);
  mix-blend-mode: screen;
  mask-image: linear-gradient(180deg, transparent 0%, #000 15%, #000 76%, transparent 100%);
  transform: translate3d(-1.25%, 0, 0) scale(1.015);
  transform-origin: center;
  will-change: transform, opacity;
  animation: login-cloud-evolution 180s ease-in-out infinite alternate;
}
.login-cosmos-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 7, 18, .12), transparent 18% 82%, rgba(2, 7, 18, .12));
}
.login-cosmos-orbit {
  position: absolute;
  left: 50%;
  top: 79vh;
  width: min(130vw, 1800px);
  height: min(70vh, 760px);
  border: 1px solid rgba(178, 220, 239, .13);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--orbit-tilt, -8deg));
  transform-origin: center;
  animation: login-cosmos-revolution var(--orbit-time, 45s) linear infinite;
}
.login-cosmos-orbit-mid {
  top: 88vh;
  width: min(165vw, 2300px);
  height: min(85vh, 930px);
  --orbit-tilt: 7deg;
  border-color: rgba(169, 214, 236, .09);
  border-style: dashed;
  animation-direction: reverse;
}
.login-cosmos-orbit-high {
  top: 99vh;
  width: min(200vw, 2900px);
  height: min(108vh, 1180px);
  --orbit-tilt: -13deg;
  border-color: rgba(170, 217, 239, .065);
}
.login-cosmos-satellite {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 94px;
  height: 62px;
  filter: drop-shadow(0 0 10px rgba(117, 209, 242, .34));
  transform: translate(-50%, -50%);
  animation: login-satellite-heading var(--orbit-time, 45s) linear infinite reverse;
}
.login-cosmos-orbit-low .login-cosmos-satellite { top: 47%; left: 0; }
.login-cosmos-orbit-mid .login-cosmos-satellite { top: 34%; left: 100%; animation-direction: normal; }
.login-cosmos-orbit-high .login-cosmos-satellite { top: 100%; left: 52%; width: 66px; height: 44px; }
.login-cosmos-satellite img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; }
.login-cosmos-satellite.satellite-cyan { filter: hue-rotate(9deg) drop-shadow(0 0 9px rgba(68, 220, 239, .4)); }
.login-cosmos-satellite.satellite-amber { width: 73px; height: 48px; filter: sepia(.12) drop-shadow(0 0 8px rgba(255, 199, 123, .28)); }
.login-card {
  position: relative;
  z-index: 2;
  width: min(940px, 100%);
  min-height: min(620px, calc(100dvh - 58px));
  max-height: calc(100dvh - 44px);
  border-color: rgba(226, 241, 249, .57);
  background: rgba(5, 14, 28, .10);
  box-shadow: 0 36px 100px rgba(0, 5, 17, .48), 0 0 0 1px rgba(186, 232, 248, .16), 0 0 58px rgba(60, 166, 220, .08);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
}
.login-showcase {
  background: linear-gradient(155deg, rgba(4, 18, 38, .13), rgba(5, 20, 39, .20));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.login-showcase::before { opacity: .08; }
.login-showcase::after { opacity: .018; }
.login-showcase-copy { margin: auto 0; }
.login-showcase-foot { margin-top: auto; }
.login-main {
  background: linear-gradient(160deg, rgba(6, 16, 31, .20), rgba(5, 16, 31, .30));
  backdrop-filter: blur(7px) saturate(1.18);
  -webkit-backdrop-filter: blur(7px) saturate(1.18);
}
.login-main .login-access-badge {
  border-color: rgba(221, 240, 250, .20);
  background: rgba(215, 235, 245, .10);
  color: rgba(239, 247, 252, .90);
}
.login-main .login-heading .eyebrow { color: #75e2d6; }
.login-main .login-heading h1#auth-title { color: #f4f8fc; text-shadow: 0 2px 16px rgba(0, 6, 17, .38); }
.login-main .login-heading .muted { color: rgba(233, 242, 250, .77); }
.login-main .login-card form label { color: rgba(238, 245, 250, .91); }
.login-main .login-card form input {
  border-color: rgba(215, 235, 246, .29);
  color: #f5f9fc;
  background: rgba(205, 228, 239, .12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.login-main .login-card form input::placeholder { color: rgba(224, 237, 246, .58); }
.login-main .login-card form input:hover { border-color: rgba(220, 243, 250, .42); background: rgba(205, 228, 239, .16); }
.login-main .login-card form input:focus { border-color: #62dccd; background: rgba(201, 230, 238, .18); box-shadow: 0 0 0 4px rgba(35, 177, 161, .18); }
.login-main .auth-setup-note { border-color: rgba(200, 237, 231, .23); background: rgba(202, 235, 229, .10); color: rgba(237, 247, 248, .86); }
.login-main .login-message { color: #ffb7bd; }
.login-main .login-foot { border-top-color: rgba(221, 239, 247, .19); color: rgba(227, 238, 247, .70); }
.login-showcase-foot > span:last-child { direction: rtl; color: rgba(205, 222, 235, .73); font-size: 9px; }
.login-showcase-foot bdi { color: rgba(235, 245, 251, .94); direction: ltr; unicode-bidi: isolate; font: 600 10px/1.4 "Segoe UI", Tahoma, sans-serif; }
.login-access-badge i { box-shadow: 0 0 0 4px rgba(69, 211, 176, .11); }
@supports not (backdrop-filter: blur(2px)) {
  .login-card { background: rgba(5, 14, 28, .48); }
  .login-showcase { background: rgba(4, 18, 38, .52); }
  .login-main { background: rgba(5, 16, 31, .56); }
}
@keyframes login-star-shimmer { from { opacity: .16; } 45% { opacity: .68; } to { opacity: .28; } }
@keyframes login-cosmos-revolution { to { transform: translate(-50%, -50%) rotate(calc(var(--orbit-tilt, -8deg) + 360deg)); } }
@keyframes login-satellite-heading { to { transform: translate(-50%, -50%) rotate(-360deg); } }
@keyframes login-cosmos-camera { from { transform: scale(1.025) translate3d(-.22%, 0, 0); } to { transform: scale(1.025) translate3d(.22%, 0, 0); } }
@keyframes login-cloud-evolution { from { transform: translate3d(-1.25%, 0, 0) scale(1.015); opacity: .16; } 50% { opacity: .24; } to { transform: translate3d(1.25%, .35%, 0) scale(1.035); opacity: .2; } }
@media (max-width: 700px) {
  .login-screen { padding: 18px 12px; }
  .login-card { min-height: 0; max-height: calc(100dvh - 36px); }
  .login-cosmos-orbit { top: 79vh; width: 130vw; height: 70vh; }
  .login-cosmos-orbit-mid { top: 88vh; width: 165vw; height: 85vh; }
  .login-cosmos-orbit-high { top: 99vh; width: 200vw; height: 108vh; }
  .login-cosmos-satellite { width: 72px; height: 48px; }
  .login-cosmos-orbit-high .login-cosmos-satellite { width: 52px; height: 36px; }
  .login-cosmos-image { background-position: center 53%; }
}
@media (prefers-reduced-motion: reduce) {
  .login-cosmos-image { animation-duration: 480s !important; }
  .login-cosmos-clouds { animation-duration: 240s !important; }
  .login-cosmos-stars { animation: none !important; }
  .login-cosmos-satellite,
  .login-cosmos-satellite img { animation-duration: 360s !important; }
}

/* Glass navigation and depth-separated satellite cutouts. */
#app-shell .sidebar {
  background: linear-gradient(155deg, rgba(7, 24, 46, .70), rgba(13, 38, 65, .76));
  border-left: 1px solid rgba(199, 231, 246, .22);
  box-shadow: 0 22px 58px rgba(7, 20, 37, .25), inset 1px 0 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(24px) saturate(145%);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
}
#app-shell .sidebar .nav-item.active {
  background: rgba(42, 100, 122, .43);
  box-shadow: inset -2px 0 0 #35d4c5, inset 0 1px 0 rgba(210, 245, 251, .08);
}
#app-shell .sidebar .device-mini {
  background: rgba(220, 241, 249, .075);
  border-color: rgba(214, 239, 248, .16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.login-card {
  background: rgba(5, 14, 28, .075);
  backdrop-filter: blur(6px) saturate(1.24);
  -webkit-backdrop-filter: blur(6px) saturate(1.24);
}
.login-showcase {
  background: linear-gradient(155deg, rgba(4, 18, 38, .085), rgba(5, 20, 39, .14));
}
.login-main {
  background: linear-gradient(160deg, rgba(6, 16, 31, .13), rgba(5, 16, 31, .20));
}
.login-main .login-card form input:-webkit-autofill,
.login-main .login-card form input:-webkit-autofill:hover,
.login-main .login-card form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #f5f9fc !important;
  -webkit-box-shadow: inset 0 0 0 1000px rgba(205, 228, 239, .14) !important;
  box-shadow: inset 0 0 0 1000px rgba(205, 228, 239, .14) !important;
  caret-color: #f5f9fc;
  transition: background-color 99999s ease-out 0s;
}
.login-cosmos-satellite img {
  mix-blend-mode: normal;
  filter: drop-shadow(0 0 3px rgba(180, 225, 246, .16));
}
.login-cosmos-orbit-low .login-cosmos-satellite.satellite-near {
  width: 126px;
  height: 84px;
  opacity: .98;
  filter: drop-shadow(0 0 13px rgba(83, 191, 235, .34));
}
.login-cosmos-orbit-mid .login-cosmos-satellite.satellite-mid {
  width: 64px;
  height: 44px;
  opacity: .68;
  filter: blur(.3px) drop-shadow(0 0 8px rgba(82, 183, 231, .24));
}
.login-cosmos-orbit-high .login-cosmos-satellite.satellite-far {
  width: 43px;
  height: 31px;
  opacity: .48;
  filter: blur(.65px) drop-shadow(0 0 6px rgba(117, 188, 221, .20));
}
@media (max-width: 700px) {
  .login-cosmos-orbit-low .login-cosmos-satellite.satellite-near { width: 90px; height: 62px; }
  .login-cosmos-orbit-mid .login-cosmos-satellite.satellite-mid { width: 54px; height: 37px; }
  .login-cosmos-orbit-high .login-cosmos-satellite.satellite-far { width: 36px; height: 26px; }
}

/* The login backdrop is a cinematic orbital view: cloud drift, slow surface pan,
   and three static orbital planes centered on the visible Earth's curvature. */
#login-screen .login-cosmos-image {
  background-size: auto 118%;
  background-position: 15% 53%;
  animation: login-earth-turn 128s linear -44s infinite alternate;
}
#login-screen .login-cosmos-image::before {
  content: "";
  position: absolute;
  inset: 38% -8% -5%;
  pointer-events: none;
  background: linear-gradient(104deg, transparent 20%, rgba(84,196,238,.025) 42%, rgba(173,232,250,.18) 51%, rgba(59,175,230,.05) 60%, transparent 78%);
  background-size: 190% 100%;
  mix-blend-mode: screen;
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 68%, transparent 100%);
  animation: login-atmosphere-sweep 26s ease-in-out infinite alternate;
}
#login-screen .login-cosmos-clouds {
  inset: 39% -18% -12%;
  background-size: 126% 164%;
  opacity: .37;
  filter: brightness(1.18) saturate(.95) blur(.18px);
  animation: login-cloud-drift 56s ease-in-out -21s infinite alternate;
}
#login-screen .login-cosmos-orbit {
  top: 134vh;
  width: min(118vw, 2200px);
  height: min(180vh, 1900px);
  border-color: rgba(164,221,244,.22);
  border-style: solid;
  transform: translate(-50%, -50%) rotate(var(--orbit-tilt, -8deg));
  animation: none;
  box-shadow: 0 0 12px rgba(77,185,227,.055);
}
#login-screen .login-cosmos-orbit-mid {
  top: 134vh;
  width: min(156vw, 2850px);
  height: min(218vh, 2300px);
  border-color: rgba(166,217,238,.15);
  border-style: solid;
}
#login-screen .login-cosmos-orbit-high {
  top: 134vh;
  width: min(194vw, 3500px);
  height: min(256vh, 2700px);
  border-color: rgba(168,218,238,.11);
  border-style: solid;
}
#login-screen .login-cosmos-satellite {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 0;
  height: 0;
  offset-path: ellipse(59vw 90vh at 50% 50%);
  offset-anchor: center;
  offset-rotate: 0deg;
  offset-distance: 0%;
  will-change: offset-distance;
  animation: login-satellite-path var(--orbit-time, 150s) linear var(--orbit-phase, -20s) infinite;
}
#login-screen .login-cosmos-orbit-mid .login-cosmos-satellite {
  offset-path: ellipse(78vw 109vh at 50% 50%);
}
#login-screen .login-cosmos-orbit-high .login-cosmos-satellite {
  offset-path: ellipse(97vw 128vh at 50% 50%);
}
#login-screen .login-cosmos-satellite img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 86px;
  height: 58px;
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 9px rgba(117,209,242,.32));
  animation: satellite-glint 8s ease-in-out infinite alternate;
}
#login-screen .login-cosmos-orbit-low .login-cosmos-satellite img {
  width: 126px;
  height: 84px;
  --satellite-opacity: .84;
  opacity: var(--satellite-opacity);
  filter: drop-shadow(0 0 13px rgba(83,191,235,.46));
}
#login-screen .login-cosmos-orbit-mid .login-cosmos-satellite img {
  width: 64px;
  height: 44px;
  --satellite-opacity: .78;
  opacity: var(--satellite-opacity);
  filter: blur(.22px) drop-shadow(0 0 9px rgba(82,183,231,.34));
}
#login-screen .login-cosmos-orbit-high .login-cosmos-satellite img {
  width: 43px;
  height: 31px;
  --satellite-opacity: .61;
  opacity: var(--satellite-opacity);
  filter: blur(.5px) drop-shadow(0 0 7px rgba(117,188,221,.28));
}

@keyframes login-earth-turn {
  from { background-position: 15% 53%; transform: scale(1.075) translate3d(.65%, 0, 0); }
  to { background-position: 85% 55%; transform: scale(1.075) translate3d(-.65%, 0, 0); }
}
@keyframes login-cloud-drift {
  from { background-position: 38% 45%; transform: translate3d(-7%, -.8%, 0) scale(1.035); opacity: .25; }
  50% { opacity: .44; }
  to { background-position: 62% 55%; transform: translate3d(7%, 1.2%, 0) scale(1.065); opacity: .35; }
}
@keyframes login-atmosphere-sweep {
  from { background-position: 0% 50%; opacity: .35; }
  to { background-position: 100% 50%; opacity: .84; }
}
@keyframes login-satellite-path { to { offset-distance: 100%; } }
@keyframes satellite-glint { from { opacity: calc(var(--satellite-opacity, 1) * .82); } to { opacity: var(--satellite-opacity, 1); } }

@media (max-width: 700px) {
  #login-screen .login-cosmos-orbit { top: 128vh; width: 118vw; height: 172vh; }
  #login-screen .login-cosmos-orbit-mid { top: 128vh; width: 152vw; height: 206vh; }
  #login-screen .login-cosmos-orbit-high { top: 128vh; width: 184vw; height: 240vh; }
  #login-screen .login-cosmos-orbit-low .login-cosmos-satellite { offset-path: ellipse(59vw 86vh at 50% 50%); }
  #login-screen .login-cosmos-orbit-mid .login-cosmos-satellite { offset-path: ellipse(76vw 103vh at 50% 50%); }
  #login-screen .login-cosmos-orbit-high .login-cosmos-satellite { offset-path: ellipse(92vw 120vh at 50% 50%); }
  #login-screen .login-cosmos-orbit-low { --orbit-phase: -85s !important; }
  #login-screen .login-cosmos-orbit-mid { --orbit-phase: -117s !important; }
  #login-screen .login-cosmos-orbit-high { --orbit-phase: -177s !important; }
  #login-screen .login-cosmos-orbit-low .login-cosmos-satellite img { width: 90px; height: 62px; }
  #login-screen .login-cosmos-orbit-mid .login-cosmos-satellite img { width: 54px; height: 37px; }
  #login-screen .login-cosmos-orbit-high .login-cosmos-satellite img { width: 36px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  #login-screen .login-cosmos-image { animation-duration: 480s !important; }
  #login-screen .login-cosmos-clouds { animation-duration: 240s !important; }
  #login-screen .login-cosmos-stars { animation: none !important; }
  #login-screen .login-cosmos-image::before { animation-duration: 68s !important; }
  #login-screen .login-cosmos-satellite,
  #login-screen .login-cosmos-satellite img { animation-duration: 360s !important; }
}


/* Distinct, offset orbital planes: staggered starts and independent directions. */
#login-screen .login-cosmos-orbit-low { --orbit-tilt: -27deg; }
#login-screen .login-cosmos-orbit-mid { --orbit-tilt: 24deg; }
#login-screen .login-cosmos-orbit-high { --orbit-tilt: -9deg; }
#login-screen .login-cosmos-satellite { offset-rotate: auto; }
#login-screen .login-cosmos-orbit-mid .login-cosmos-satellite { animation-direction: reverse; }
