.portal-auth-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  align-items: center;
  min-height: 100svh;
  background: var(--paper);
}
.portal-auth-scene {
  --auth-photo-width: 1500px;
  --auth-photo-anchor: 73%;
  --auth-photo-image: url("./live-control-photo.jpg");
  --auth-screen-image: url("./auth-console-screen.jpg?v=3");
  --auth-projection-image: url("./auth-projection-screen.jpg");
  position: relative;
  align-self: stretch;
  overflow: hidden;
  background: #2a2b26;
}
.portal-auth-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(0 0 0 / 73%), rgb(0 0 0 / 35%) 52%, rgb(0 0 0 / 25%));
}
.portal-auth-scene-neutral {
  --auth-photo-width: 800px;
  --auth-photo-anchor: 70%;
  --auth-photo-image: url("./live-control-photo-cn.jpg?v=2");
  --auth-screen-image: url("./auth-console-screen-cn.jpg?v=3");
  --auth-projection-image: url("./auth-projection-screen-cn.jpg");
}
.portal-auth-photo {
  position: absolute;
  top: 50%;
  left: var(--auth-photo-anchor);
  width: var(--auth-photo-width);
  height: 1000px;
  transform-origin: 0 0;
  transform: scale(var(--auth-photo-scale, 1)) translate(calc(-1 * var(--auth-photo-anchor)), -50%);
  background: var(--auth-photo-image) center / 100% 100% no-repeat;
  filter: saturate(.75);
}
.portal-auth-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 960px;
  height: 540px;
  transform-origin: 0 0;
  /* Map the 960 × 540 capture to the four corners inside the photographed bezel. */
  transform: matrix3d(.00577533585, -.09405071188, 0, -.00025693498,
    -.08590986072, .36072758674, 0, -.00001154212, 0, 0, 1, 0, 906, 476, 0, 1);
  background:
    linear-gradient(135deg, rgb(83 131 171 / 10%), transparent 55%, rgb(12 21 32 / 12%)),
    #101522 var(--auth-screen-image) center / 100% 100% no-repeat;
  filter: brightness(.82) saturate(.86);
}
.portal-auth-projection-screen {
  position: absolute;
  top: 349px;
  left: 720px;
  width: 143px;
  height: 154px;
  background: #101522;
  /* The operator's shoulder occludes the lower-left corner of this display. */
  clip-path: polygon(0 1px, 142px 1px, 143px 154px, 32px 135px, 29px 126px,
    24px 115px, 18px 104px, 12px 95px, 7px 88px, 1px 80px, 0 73px);
}
.portal-auth-projection-screen::before {
  content: "";
  position: absolute;
  inset: 1px auto auto 0;
  width: 960px;
  height: 768px;
  transform-origin: 0 0;
  /* Map the audience output into the older monitor, including its letterbox. */
  transform: matrix3d(.123888838, 0, 0, -.000169210061,
    0, .165690491, 0, -.000007626369, 0, 0, 1, 0, 0, 0, 0, 1);
  background:
    linear-gradient(150deg, rgb(105 150 190 / 16%), transparent 57%, rgb(10 15 23 / 12%)),
    #101522 var(--auth-projection-image) center / contain no-repeat;
  filter: brightness(1.04) saturate(.82);
}
/* The conference photograph has its own monitor corners at 800 × 1000. */
.portal-auth-scene-neutral .portal-auth-screen {
  transform: matrix3d(.2187469124, -.0821086691, 0, -.0002171393,
    -.0320769183, .3849850178, 0, .0000055609, 0, 0, 1, 0, 376.1141, 426.8902, 0, 1);
}
.portal-auth-scene-neutral .portal-auth-projection-screen {
  top: 366px;
  left: 164px;
  width: 195px;
  height: 148px;
  background: transparent;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 16px 100%, 13px 127px,
    8px 119px, 4px 112px, 0 104px);
}
.portal-auth-scene-neutral .portal-auth-projection-screen::before {
  top: 0;
  transform: matrix3d(.1747982305, .0048839, 0, -.0001226833,
    -.0046346058, .1665942772, 0, .0000211879, 0, 0, 1, 0, 3.9144, .2625, 0, 1);
}
.portal-auth-language.ant-select {
  position: absolute;
  inset: clamp(18px, 3vw, 36px) clamp(18px, 3vw, 36px) auto auto;
  z-index: 1;
  width: 126px;
  height: 36px;
  font-size: .8125rem;
  border-color: var(--control-line);
}
.portal-auth-language .ant-select-prefix {
  color: var(--muted);
}
.customer-auth {
  width: min(calc(100% - 48px), 368px);
  margin-inline: auto;
  padding: 64px 0;
  color: var(--ink);
}
.customer-auth-wordmark {
  position: absolute;
  inset: clamp(20px, 4vw, 48px) auto auto clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: .04em;
  width: fit-content;
  text-decoration: none;
}
.customer-auth-wordmark:hover { color: #fff; }
.customer-auth-mark { display: block; flex: none; }
.customer-auth-brand-name { display: grid; gap: 3px; line-height: 1.15; }
.customer-auth-brand-en { display: flex; justify-content: space-between; color: #e5e6dd; font-size: 15px; font-weight: 550; letter-spacing: normal; }
.customer-auth h1.ant-typography {
  margin: 0 0 29px;
  text-align: center;
  font-size: clamp(1.5rem, 3.3vw, 1.875rem);
  font-weight: 680;
  line-height: 1.25;
  letter-spacing: -.025em;
  text-wrap: balance;
}
.customer-auth .account-auth-form .ant-form-item { margin-bottom: 15px; }
.customer-auth .account-auth-form .ant-form-item-label { padding-bottom: 5px; }
.customer-auth .account-auth-form .ant-form-item-label > label {
  height: auto;
  color: var(--ink);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.45;
}
.customer-auth .account-auth-form :is(input.ant-input, .ant-input-affix-wrapper) {
  min-height: 44px;
  border-color: var(--control-line);
  border-radius: 8px;
  font-size: .9375rem;
}
.customer-auth .account-auth-form :is(input.ant-input, .ant-input-affix-wrapper):hover { border-color: var(--accent); }
.customer-auth .account-auth-form :is(input.ant-input:focus, .ant-input-affix-wrapper:focus-within) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-line);
}
.customer-auth .account-auth-form input.ant-input:focus-visible { outline: none; }
.customer-auth .account-auth-form .ant-form-item-has-error :is(input.ant-input, .ant-input-affix-wrapper) { border-color: var(--danger); }
.customer-auth .account-auth-form .ant-input-affix-wrapper input.ant-input,
.customer-auth .account-auth-form .ant-checkbox-input { min-height: 0; }
.customer-auth .account-auth-form .ant-input-affix-wrapper input.ant-input { padding: 0; border: 0; box-shadow: none; }
.customer-auth .account-auth-form .account-auth-remember { margin: -3px 0 0; }
.account-auth-remember .ant-checkbox-wrapper { display: inline-flex; align-items: center; min-height: 28px; font-size: .875rem; }
.account-auth-form .ant-alert { margin-top: 12px; }
.account-auth-submit { margin-top: 15px; }
.account-auth-submit .ant-btn { min-height: 45px; border-radius: 8px; font-size: .9375rem; font-weight: 650; }
.account-auth-links { display: grid; justify-items: center; margin-top: 12px; font-size: .875rem; }
.account-auth-links[data-login-links] { margin-top: 19px; }
.account-auth-links .ant-btn-link { padding-inline: 5px; font-size: inherit; }
.account-auth-links > div { width: 100%; text-align: center; color: var(--muted); }
.account-auth-links[data-login-links] > div { margin-top: 6px; padding-top: 9px; border-top: 1px solid var(--line); }
.account-auth-note { font-size: .875rem; }
@media (max-width: 720px) {
  .portal-auth-layout { grid-template-columns: minmax(0, 1fr); }
  .portal-auth-scene { display: none; }
  .customer-auth-wordmark { position: static; margin: 0 auto 21px; gap: 8px; color: var(--ink); font-size: 18px; }
  .customer-auth-wordmark:hover { color: var(--ink); }
  .customer-auth-mark { width: 44px; height: 44px; }
  .customer-auth-brand-en { color: var(--muted); font-size: 13px; }
}

