.portal-login {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #e7d8c6 url("./assets/portal-workbench.webp") center / cover no-repeat;
}

.portal-login .technical-wechat-code {
  position: relative;
  top: calc(-4svh - 22px);
  width: min(100%, clamp(208px, min(17vw, 36vh), 272px));
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.portal-login .technical-wechat-qr {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.portal-login .technical-wechat-code:has(.technical-wechat-qr)::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: 16px;
  background: rgb(255 249 240 / 16%);
  backdrop-filter: blur(5px);
  pointer-events: none;
}

.portal-login .technical-wechat-code:has(.technical-wechat-qr)::after {
  content: "";
  position: absolute;
  inset: calc(100% + 22px) 17% auto;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgb(65 43 25 / 30%), transparent 72%);
  filter: blur(3px);
  pointer-events: none;
}

.portal-login .technical-wechat-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.portal-login .portal-login-retry {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 80%);
  color: #073978;
  font-size: 25px;
  line-height: 1;
}

@media (max-height: 650px) {
  .portal-login .technical-wechat-code {
    top: calc(-7svh - 22px);
  }
}
