.login-device-action {
  justify-self: end;
  width: max-content;
  min-height: 28px;
  height: 28px;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
}

.login-device-action:hover {
  background: transparent;
  color: #344054;
  text-decoration: underline;
}

.front-login-gate,
.admin-login-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: block;
  overflow: auto;
  background: #f7f9fd;
}

.front-login-gate[hidden],
.admin-login-gate[hidden] {
  display: none !important;
}

.login-stage {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(420px, 0.84fr);
  background: #fff;
}

.login-showcase {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
  padding: clamp(24px, 3vw, 42px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(31, 111, 235, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(31, 111, 235, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #f8fbff 0%, #e9f3ff 56%, #f6f8fc 100%);
  background-size:
    44px 44px,
    44px 44px,
    auto;
}

.login-showcase::after {
  content: '';
  position: absolute;
  inset: auto 0 0 auto;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.48));
  pointer-events: none;
}

.login-brandline {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #223049;
  font-weight: 800;
}

.login-brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #7c4dff 0%, #1f6feb 50%, #15b8a6 100%);
  box-shadow: 0 12px 28px rgba(31, 111, 235, 0.22);
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe7f3;
}

.login-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-visual {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 340px;
}

.login-illustration {
  position: relative;
  width: min(430px, 72vw);
  aspect-ratio: 1.2;
  transform: translateY(8px);
}

.login-illustration span {
  position: absolute;
  display: block;
}

.visual-platform {
  left: 19%;
  right: 16%;
  bottom: 14%;
  height: 27%;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(219, 236, 255, 0.9)),
    linear-gradient(135deg, #1f6feb, #15b8a6);
  box-shadow:
    0 24px 40px rgba(31, 111, 235, 0.2),
    inset 0 -14px 0 rgba(31, 111, 235, 0.14);
  transform: skewY(-8deg) rotate(-1deg);
}

.visual-platform::before {
  content: '';
  position: absolute;
  inset: 18% 14%;
  border-radius: 8px;
  border: 1px solid rgba(31, 111, 235, 0.16);
  background: rgba(255, 255, 255, 0.55);
}

.visual-panel {
  width: 25%;
  height: 30%;
  border: 1px solid rgba(31, 111, 235, 0.24);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #d7ebff);
  box-shadow: 0 16px 34px rgba(40, 70, 120, 0.14);
}

.visual-panel::before {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  top: 20%;
  height: 8px;
  border-radius: 8px;
  background: #1f6feb;
  box-shadow:
    0 20px 0 #15b8a6,
    0 40px 0 #f59e0b;
}

.panel-left {
  left: 22%;
  top: 30%;
  transform: perspective(420px) rotateY(28deg) rotateZ(-5deg);
}

.panel-right {
  right: 12%;
  top: 24%;
  width: 28%;
  height: 34%;
  transform: perspective(420px) rotateY(-28deg) rotateZ(4deg);
}

.panel-top {
  left: 43%;
  top: 13%;
  width: 22%;
  height: 20%;
  transform: rotate(8deg);
}

.visual-tower {
  bottom: 29%;
  border-radius: 8px 8px 3px 3px;
  box-shadow: 0 12px 22px rgba(23, 32, 51, 0.16);
}

.tower-main {
  left: 46%;
  width: 12%;
  height: 33%;
  background: linear-gradient(180deg, #1f6feb, #173d9b);
}

.tower-main::before {
  content: '';
  position: absolute;
  left: -54%;
  right: -54%;
  bottom: -8px;
  height: 20px;
  border-radius: 8px;
  background: linear-gradient(135deg, #dff1ff, #80c8ff);
}

.tower-side {
  left: 36%;
  width: 7%;
  height: 23%;
  background: linear-gradient(180deg, #15b8a6, #0d9488);
}

.visual-box {
  width: 12%;
  height: 12%;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffffff, #ffd79c);
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: 0 12px 18px rgba(120, 70, 10, 0.12);
}

.box-one {
  left: 25%;
  bottom: 26%;
  transform: skewY(-8deg);
}

.box-two {
  right: 24%;
  bottom: 31%;
  transform: skewY(8deg);
}

.visual-route {
  height: 3px;
  border-radius: 8px;
  background: linear-gradient(
    90deg,
    rgba(31, 111, 235, 0.05),
    rgba(31, 111, 235, 0.9),
    rgba(21, 184, 166, 0.1)
  );
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.route-one {
  left: 20%;
  right: 18%;
  bottom: 49%;
  transform: rotate(-8deg);
}

.route-two {
  left: 31%;
  right: 24%;
  top: 49%;
  transform: rotate(11deg);
}

.login-copy {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  justify-self: center;
  padding-bottom: clamp(12px, 4vw, 52px);
  text-align: center;
}

.login-copy h2 {
  font-size: 30px;
  color: #223049;
}

.login-copy p {
  max-width: 460px;
  margin: 10px auto 0;
  color: #64748b;
  line-height: 1.7;
}

.login-auth-side {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 70px);
  background: #ffffff;
}

.login-card,
.front-login-card {
  width: min(420px, 100%);
  display: grid;
  gap: 18px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  padding: 0;
  box-shadow: none;
}

.login-heading {
  display: grid;
  gap: 8px;
}

.login-heading span {
  color: #1f6feb;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-heading h1 {
  font-size: 42px;
  color: #172033;
}

.login-heading p {
  color: var(--muted);
  line-height: 1.6;
}

.front-login-form,
.login-form {
  display: grid;
  gap: 12px;
}

.front-auth-tabs,
.login-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 5px;
  border: 1px solid #dfe7f3;
  border-radius: 8px;
  background: #f6f8fc;
}

.front-auth-tabs button,
.login-tabs button {
  color: #475569;
  background: transparent;
  box-shadow: none;
}

.front-auth-tabs button.active,
.login-tabs button.active {
  color: #fff;
  background: #1f6feb;
  box-shadow: 0 8px 18px rgba(31, 111, 235, 0.22);
}

.login-field {
  display: grid;
  gap: 7px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.login-field input,
.front-login-form input,
.admin-login-card input {
  width: 100%;
  height: 44px;
  border: 1px solid #dfe7f3;
  border-radius: 8px;
  padding: 0 13px;
  color: #172033;
  background: #fbfcff;
  outline: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.login-field input:focus,
.front-login-form input:focus,
.admin-login-card input:focus {
  border-color: #1f6feb;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.11);
}

.login-primary {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  font-weight: 800;
  background: linear-gradient(135deg, #1f6feb, #0f7be8);
  box-shadow: 0 13px 22px rgba(31, 111, 235, 0.22);
}

.front-login-message {
  min-height: 20px;
  color: var(--red);
  font-size: 12px;
}

.front-register-agent-hint {
  display: block;
  min-height: 16px;
  color: #21705c;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
}

.front-login-form input.invite-code-locked {
  border-color: #badbce;
  color: #145b49;
  background: #f2faf7;
  font-weight: 750;
  cursor: default;
}

.login-message {
  margin-top: -4px;
}

.login-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

.login-links a {
  color: #1f6feb;
  text-decoration: none;
}

.login-links a:hover {
  text-decoration: underline;
}

.front-activation-dialog {
  width: min(380px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid #dce4f0;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 24px 70px rgba(27, 39, 61, 0.22);
}

.front-activation-dialog::backdrop {
  background: rgba(20, 30, 48, 0.34);
  backdrop-filter: blur(8px);
}

.front-activation-form {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.front-activation-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.front-activation-heading span {
  color: #1f6feb;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.front-activation-heading h2 {
  margin: 5px 0 0;
  color: #172033;
  font-size: 22px;
}

.front-activation-intro {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.account-password-dialog {
  width: min(420px, calc(100vw - 32px));
}

.account-password-form .login-field input:focus {
  border-color: #6ea8ef;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.1);
  outline: none;
}

.account-password-message {
  min-height: 18px;
  margin: -2px 0 0;
}

.account-password-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 10px;
}

.account-password-actions button {
  min-height: 44px;
}

.account-password-actions .secondary {
  border: 1px solid #d8e1ed;
  color: #43526a;
  background: #f5f7fa;
  box-shadow: none;
}

.account-password-actions button:hover {
  transform: translateY(-1px);
}

.account-password-actions button:active {
  transform: scale(0.98);
}

@media (max-width: 980px) {
  .login-stage {
    grid-template-columns: 1fr;
  }

  .login-showcase {
    min-height: 44vh;
    padding: 22px;
  }

  .login-visual {
    min-height: 240px;
  }

  .login-illustration {
    width: min(330px, 86vw);
  }

  .login-copy {
    padding-bottom: 8px;
  }

  .login-auth-side {
    min-height: auto;
    padding: 28px 20px 38px;
  }
}

@media (max-width: 620px) {
  .login-showcase {
    min-height: 34vh;
  }

  .login-visual {
    min-height: 190px;
  }

  .login-copy h2 {
    font-size: 22px;
  }

  .login-copy p {
    font-size: 13px;
  }
}

.front-account-block .account-password-entry {
  border-color: rgba(105, 162, 234, 0.35);
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.12);
}
@keyframes generated-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes generated-border-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes generated-sheen {
  0% {
    transform: translateX(-120%);
  }
  58%,
  100% {
    transform: translateX(120%);
  }
}
@keyframes generated-dot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.42;
  }
  50% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
@keyframes generated-progress {
  0% {
    transform: translateX(-110%);
  }
  55%,
  100% {
    transform: translateX(245%);
  }
}
@keyframes generated-card-pulse {
  0%,
  100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.08) brightness(1.03);
  }
}

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

@keyframes agent-progress-flow {
  from {
    background-position:
      0 0,
      0 0;
  }
  to {
    background-position:
      23px 0,
      0 0;
  }
}

@keyframes dataCenterLivePulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.84);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}
@keyframes dataCenterMapImage {
  0%,
  100% {
    opacity: 0.86;
    filter: saturate(1.08) contrast(1.04) drop-shadow(0 0 12px rgba(20, 165, 255, 0.18));
  }
  50% {
    opacity: 1;
    filter: saturate(1.26) contrast(1.12) drop-shadow(0 0 22px rgba(20, 190, 255, 0.34));
  }
}
@keyframes dataCenterMapLand {
  0%,
  100% {
    opacity: 0.82;
  }
  50% {
    opacity: 1;
  }
}
@keyframes dataCenterMapRoute {
  to {
    stroke-dashoffset: -72;
  }
}
@keyframes dataCenterMapNetwork {
  to {
    stroke-dashoffset: -52;
    opacity: 0.8;
  }
}
@keyframes dataCenterMapOrbitArc {
  from {
    background-position: -118% 0;
  }
  to {
    background-position: 118% 0;
  }
}
@keyframes dataCenterMapOrbitSegments {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 0.8;
  }
}
@keyframes dataCenterMapScan {
  0% {
    top: -12%;
    opacity: 0;
  }
  15% {
    opacity: 0.8;
  }
  85% {
    opacity: 0.8;
  }
  100% {
    top: 112%;
    opacity: 0;
  }
}

@keyframes dataCenterMapOrbitHorizontal {
  from {
    background-position: -118% 0;
  }
  to {
    background-position: 118% 0;
  }
}
