:root {
  --access-bg: #01060b;
  --access-panel: rgba(5, 14, 23, 0.9);
  --access-panel-strong: rgba(7, 21, 33, 0.96);
  --access-line: rgba(55, 189, 224, 0.32);
  --access-cyan: #55e9ff;
  --access-green: #46f2aa;
  --access-amber: #ffb20f;
  --access-red: #ff4b66;
  --access-text: #f2f8fc;
  --access-muted: #7693a6;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: var(--access-bg);
  color: var(--access-text);
  font-family: "DIN Alternate", "Bahnschrift", "Arial Narrow", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body {
  display: block !important;
  height: auto !important;
  min-height: 100svh !important;
  overflow-x: hidden;
  background-image: url(../images/deep-space-flight-bg.webp) !important;
  background-position: center bottom !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

.access-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: rgba(1, 6, 11, 0.26);
}

.access-shell::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(rgba(1, 6, 11, 0.08), rgba(1, 6, 11, 0.38) 52%, rgba(1, 6, 11, 0.84)),
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(84, 233, 255, 0.018) 5px 6px);
}

.access-header {
  position: relative;
  z-index: 8;
  display: flex;
  min-height: 58px;
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(85, 233, 255, 0.28);
  background: rgba(1, 8, 14, 0.82);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(16px);
}

.access-header::after {
  position: absolute;
  right: 16px;
  bottom: -1px;
  width: 92px;
  height: 2px;
  content: "";
  background: var(--access-cyan);
  box-shadow: 0 0 18px rgba(85, 233, 255, 0.88);
}

.access-brand,
.access-status,
.access-brand-copy {
  display: flex;
  align-items: center;
}

.access-brand {
  min-width: 0;
  gap: 10px;
}

.access-brand-copy {
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.access-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border: 2px solid var(--access-cyan);
  border-radius: 5px;
  color: var(--access-cyan);
  font-size: 18px;
  font-weight: 900;
  box-shadow: inset 0 0 14px rgba(85, 233, 255, 0.1), 0 0 18px rgba(85, 233, 255, 0.16);
}

.access-mark::after {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--access-amber);
  border-bottom: 2px solid var(--access-amber);
  content: "";
}

.access-brand strong {
  color: var(--access-text);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.05;
  white-space: nowrap;
}

.access-node {
  overflow: hidden;
  color: var(--access-muted);
  font-size: 8px;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-status {
  min-height: 31px;
  margin-left: 10px;
  padding: 0 10px;
  gap: 7px;
  border: 1px solid rgba(70, 242, 170, 0.58);
  border-radius: 4px;
  background: rgba(4, 26, 22, 0.58);
  color: var(--access-green);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: inset 0 0 14px rgba(70, 242, 170, 0.08);
}

.access-status-dot,
.access-footnote > span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--access-green);
  box-shadow: 0 0 10px rgba(70, 242, 170, 0.95);
}

.access-status-dot {
  animation: accessSignal 1.8s ease-in-out infinite;
}

.access-stage {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: calc(100svh - 58px);
  padding: 18px 16px 24px;
  place-items: center;
}

.access-visual {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.access-orbit {
  position: absolute;
  top: 52px;
  right: -40px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(85, 233, 255, 0.2);
  border-radius: 50%;
  box-shadow: inset 0 0 40px rgba(85, 233, 255, 0.04), 0 0 30px rgba(0, 0, 0, 0.22);
  animation: accessOrbit 18s linear infinite;
}

.access-orbit::before,
.access-orbit::after {
  position: absolute;
  border: 1px solid rgba(85, 233, 255, 0.12);
  border-radius: 50%;
  content: "";
}

.access-orbit::before {
  inset: 26px;
}

.access-orbit::after {
  inset: 72px;
  border-color: rgba(255, 178, 15, 0.22);
}

.access-rocket {
  position: absolute;
  top: 12px;
  right: -26px;
  width: min(58vw, 270px);
  height: auto;
  opacity: 0.88;
  filter: drop-shadow(0 0 18px rgba(255, 91, 34, 0.38));
  transform: rotate(2deg);
  transform-origin: center;
  animation: accessRocket 5.4s ease-in-out infinite;
}

.access-telemetry {
  position: absolute;
  top: 26px;
  left: 20px;
  display: flex;
  padding-left: 10px;
  flex-direction: column;
  border-left: 2px solid var(--access-amber);
  color: var(--access-muted);
  font-size: 8px;
  line-height: 1.5;
}

.access-telemetry b {
  color: var(--access-cyan);
  font-size: 9px;
}

.card-wrap {
  position: relative;
  z-index: 2;
  width: min(100%, 420px);
  min-height: 526px;
  margin: 0;
}

.access-stage .card {
  position: absolute !important;
  inset: 0;
  display: flex;
  width: 100% !important;
  margin: 0;
  padding: 0 !important;
  transform: translateY(14px) scale(0.99) !important;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

.access-stage .card.is-show {
  z-index: 3;
  transform: translateY(0) scale(1) !important;
  pointer-events: auto;
  opacity: 1;
}

.access-panel {
  position: relative;
  isolation: isolate;
  display: flex !important;
  width: 100%;
  min-height: 100%;
  padding: 24px 22px 18px;
  align-items: stretch !important;
  flex-direction: column;
  justify-content: flex-start !important;
  overflow: hidden;
  border: 1px solid rgba(85, 233, 255, 0.34);
  border-radius: 7px;
  background: var(--access-panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 48px rgba(30, 155, 206, 0.06),
    0 28px 60px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(18px) saturate(118%);
  text-align: left !important;
}

.card--login .access-panel {
  height: 468px;
  min-height: 468px;
  align-self: center;
}

.card--login {
  align-items: center;
}

.access-panel::before {
  position: absolute;
  z-index: 0;
  top: 0;
  left: 20px;
  width: 86px;
  height: 3px;
  content: "";
  background: var(--access-cyan);
  box-shadow: 0 0 18px rgba(85, 233, 255, 0.9);
}

.access-panel::after {
  position: absolute;
  z-index: 0;
  right: -34px;
  bottom: -34px;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(255, 178, 15, 0.16);
  border-radius: 50%;
  content: "";
}

.access-kicker,
.access-title,
.access-description,
.access-panel form,
.access-footnote {
  position: relative;
  z-index: 1;
}

.access-kicker {
  margin: 0;
  color: var(--access-cyan);
  font-size: 10px !important;
  font-weight: 900;
  line-height: 1.2;
}

.access-title {
  margin: 8px 0 0;
  color: var(--access-text);
  font-size: 29px;
  font-weight: 900;
  line-height: 1.12;
  text-shadow: 0 0 24px rgba(85, 233, 255, 0.12);
}

.access-description {
  margin: 8px 0 19px !important;
  color: var(--access-muted);
  font-size: 12px !important;
  line-height: 1.55;
}

.access-panel form {
  width: 100%;
  margin: 0;
}

.access-field {
  position: relative;
  display: block;
  margin: 0 0 12px;
}

.access-field > span {
  display: block;
  margin: 0 0 7px;
  color: #91aabd;
  font-size: 11px;
  font-weight: 700;
}

.access-field .form-control {
  width: 100%;
  height: 47px;
  padding: 0 14px;
  border: 1px solid rgba(55, 189, 224, 0.38);
  border-radius: 5px;
  outline: 0;
  background: rgba(2, 13, 22, 0.86);
  box-shadow: inset 0 1px 12px rgba(0, 0, 0, 0.28) !important;
  color: var(--access-text);
  caret-color: var(--access-cyan);
  font-size: 15px;
}

.access-field .form-control::placeholder {
  color: #506c7e;
  font-size: 13px;
}

.access-field .form-control:focus {
  border-color: var(--access-cyan);
  background: rgba(3, 21, 33, 0.96);
  box-shadow: 0 0 0 3px rgba(85, 233, 255, 0.09), inset 0 1px 12px rgba(0, 0, 0, 0.26) !important;
}

.access-field .form-control:-webkit-autofill,
.access-field .form-control:-webkit-autofill:hover,
.access-field .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--access-text);
  box-shadow: 0 0 0 1000px #071521 inset !important;
}

.access-panel .btn {
  display: flex;
  width: 100% !important;
  height: 47px;
  margin: 0;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  box-shadow: none;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.access-panel .btn:active {
  transform: translateY(1px) scale(0.995);
}

.access-panel .access-primary {
  margin-top: 3px;
  border-color: #ffd366;
  background: linear-gradient(180deg, #ffc22c, #e59400);
  color: #130c00 !important;
  box-shadow: 0 0 24px rgba(255, 178, 15, 0.28), inset 0 -3px 0 rgba(111, 63, 0, 0.28);
}

.access-panel .access-primary:hover,
.access-panel .access-primary:focus {
  border-color: #fff0bb;
  background: #ffc333;
  color: #130c00 !important;
  box-shadow: 0 0 34px rgba(255, 178, 15, 0.42);
}

.access-panel .access-secondary {
  margin-top: 10px;
  border-color: rgba(55, 189, 224, 0.32);
  background: rgba(4, 19, 30, 0.74);
  color: #91aabd !important;
}

.access-panel .access-secondary:hover,
.access-panel .access-secondary:focus {
  border-color: var(--access-cyan);
  background: rgba(26, 126, 157, 0.14);
  color: var(--access-cyan) !important;
}

.access-footnote {
  display: flex;
  margin: auto 0 0 !important;
  padding-top: 14px;
  align-items: center;
  gap: 8px;
  color: var(--access-muted);
  font-size: 9px !important;
  font-weight: 800;
}

.access-footnote > span {
  width: 6px;
  height: 6px;
}

.mask {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(1, 6, 11, 0.94);
  color: var(--access-cyan);
  font-size: 13px;
}

@keyframes accessSignal {
  0%,
  100% { opacity: 0.42; transform: scale(0.88); }
  50% { opacity: 1; transform: scale(1); }
}

@keyframes accessRocket {
  0%,
  100% { transform: translate3d(0, 0, 0) rotate(2deg); }
  50% { transform: translate3d(-8px, -10px, 0) rotate(3deg); }
}

@keyframes accessOrbit {
  to { transform: rotate(360deg); }
}

@media (max-width: 360px) {
  .access-header {
    padding: 0 12px;
  }

  .access-node {
    display: none;
  }

  .access-status {
    padding: 0 8px;
  }

  .access-stage {
    padding-right: 12px;
    padding-left: 12px;
  }

  .access-panel {
    padding-right: 18px;
    padding-left: 18px;
  }

  .access-title {
    font-size: 27px;
  }
}

@media (max-height: 680px) {
  .access-header {
    min-height: 52px;
  }

  .access-stage {
    min-height: calc(100svh - 52px);
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .card-wrap {
    min-height: 520px;
  }

  .access-panel {
    padding-top: 19px;
    padding-bottom: 14px;
  }

  .access-title {
    margin-top: 5px;
    font-size: 26px;
  }

  .access-description {
    margin-bottom: 12px !important;
  }

  .access-field {
    margin-bottom: 9px;
  }

  .access-field .form-control,
  .access-panel .btn {
    height: 44px;
  }

  .access-footnote {
    padding-top: 9px;
  }

  .access-rocket {
    top: -6px;
    opacity: 0.7;
  }
}

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