.login-body {
  min-height: 100vh;
  overflow-x: hidden;
  background: #050710;
}

.login-layout {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 68px 20px 32px;
}

.login-home {
  position: absolute;
  top: 22px;
  left: max(20px, calc(50% - 232px));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  color: #8e99b5;
  font-size: 11px;
  border: 1px solid rgba(132, 149, 190, 0.3);
  border-radius: 6px;
  transition: color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.login-home:hover {
  color: #55edf0;
  border-color: rgba(85, 237, 240, 0.55);
  transform: translateX(-2px);
}

.login-console {
  position: relative;
  width: min(100%, 464px);
  padding: 26px 28px 23px;
  overflow: hidden;
  background:
    radial-gradient(circle at 100% 0, rgba(85, 237, 240, 0.09), transparent 34%),
    radial-gradient(circle at 0 25%, rgba(163, 76, 238, 0.12), transparent 36%),
    linear-gradient(145deg, rgba(20, 29, 58, 0.98), rgba(8, 14, 32, 0.99));
  border: 1px solid rgba(128, 139, 204, 0.48);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.04);
  animation: login-enter 680ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(133, 149, 190, 0.22);
}

.login-brand img {
  width: 38px;
  height: 38px;
  padding: 5px;
  object-fit: contain;
  background: rgba(13, 31, 49, 0.78);
  border: 1px solid rgba(85, 237, 240, 0.5);
  border-radius: 7px;
  box-shadow: 0 0 18px rgba(85, 237, 240, 0.12);
}

.login-brand strong,
.login-brand small {
  display: block;
}

.login-brand strong {
  color: #f4f6ff;
  font-size: 19px;
}

.login-brand small {
  margin-top: 3px;
  color: #707b97;
  font: 8px/1.4 Consolas, monospace;
}

.login-heading {
  margin-top: 23px;
}

.login-heading p {
  color: #55edf0;
  font: 9px/1.4 Consolas, monospace;
}

.login-heading h1 {
  margin-top: 10px;
  color: #f4f6ff;
  font-size: 35px;
  line-height: 1.1;
}

.login-heading > span {
  display: block;
  margin-top: 9px;
  color: #8f99b3;
  font-size: 12px;
  line-height: 1.6;
}

.login-console .auth-tabs {
  margin-top: 21px;
}

.login-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 15px;
  color: #707b96;
  font: 8px/1.4 Consolas, monospace;
  border-top: 1px solid rgba(132, 148, 189, 0.2);
}

.login-status span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.login-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b252ee;
  box-shadow: 0 0 8px #b252ee;
  animation: session-pulse 2.2s ease-in-out infinite;
}

.login-status strong {
  color: #c7baff;
}

.login-scan {
  position: absolute;
  top: -48px;
  right: -55px;
  width: 150px;
  height: 150px;
  border: 1px solid rgba(85, 237, 240, 0.11);
  border-radius: 50%;
  animation: login-orbit 12s linear infinite;
}

.login-scan::before,
.login-scan::after {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px solid rgba(169, 136, 255, 0.11);
  border-radius: 50%;
}

.login-scan::after {
  inset: 45px;
  border-color: rgba(85, 237, 240, 0.18);
}

.login-scan i {
  position: absolute;
  top: 73px;
  left: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #55edf0;
  box-shadow: 0 0 10px #55edf0;
}

@keyframes login-enter {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes login-orbit {
  to { transform: rotate(360deg); }
}

@media (max-width: 520px) {
  .login-layout {
    place-items: start center;
    padding: 66px 12px 20px;
  }

  .login-home {
    top: 16px;
    left: 12px;
  }

  .login-console {
    padding: 22px 17px 20px;
  }

  .login-heading h1 {
    font-size: 31px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-console,
  .login-scan,
  .login-status i {
    animation: none;
  }

  .login-home {
    transition: none;
  }
}
