.pisell-hdl-kiosk {
  .hdl-identity-screen {
    --hdl-identity-column-width: 580px;
    display: flex;
    width: 100%;
    min-height: 100%;
    flex: 1;
    flex-direction: column;
    overflow: auto;
    background:
      radial-gradient(
        ellipse at 50% 45%,
        rgba(178, 13, 18, 0.12),
        transparent 38rem
      ),
      #111;
    color: #fff;
  }

  .hdl-identity-screen__branding {
    flex: none;
    padding: 48px 70px 0;
  }

  .hdl-identity-screen__header {
    width: min(680px, 100%);
    margin-bottom: 32px;
    text-align: center;
  }

  .hdl-identity-brand {
    display: block;
    width: 180px;
    height: auto;
    aspect-ratio: 2012 / 862;
    object-fit: contain;
  }

  .hdl-identity-screen__header p {
    margin: 0;
    color: #f4777c;
    font-size: 28px;
    font-weight: 750;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .hdl-identity-screen__header h1 {
    margin: 12px 0 0;
    font-size: 46px;
    font-weight: 800;
    line-height: 1.18;
    text-wrap: balance;
  }

  .hdl-identity-screen__content {
    display: flex;
    flex: 1 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 58px 80px;

    > * {
      flex-shrink: 0;
    }
  }

  .hdl-identity-qr {
    display: flex;
    width: min(var(--hdl-identity-column-width), 100%);
    flex-direction: column;
    align-items: center;
    gap: 13px;
  }

  .hdl-identity-qr__grid {
    display: grid;
    width: 100%;
    aspect-ratio: 1;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    border: 15px solid #fff;
    border-radius: 15px;
    padding: 17px;
    background: #fff;
    box-shadow: 0 26px 76px rgba(0, 0, 0, 0.24);
  }

  .hdl-identity-qr__grid > span {
    border-radius: 2px;
    background: #edf1f7;
  }

  .hdl-identity-qr__grid > span.is-dark {
    background: #111827;
  }

  .hdl-identity-qr small {
    display: block;
    max-width: 389px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
  }

  .hdl-identity-screen__auth {
    display: flex;
    // 1.3 倍缩放后的卡片与下方访客操作区保持同宽。
    width: min(calc(var(--hdl-identity-column-width) / 1.3), calc(100% / 1.3));
    justify-content: center;
    border-radius: 24px;
    padding: 24px 0;
    background: #fff;
    color: #111827;
    box-shadow: 0 26px 76px rgba(0, 0, 0, 0.28);
    /* zoom 会让放大后的尺寸参与排版，不会像 transform 一样覆盖下方的 Skip。 */
    zoom: 1.3;
  }

  .hdl-identity-screen__auth .pisell-login2,
  .hdl-identity-screen__auth .pisell-register2 {
    width: 100%;
  }

  .hdl-identity-screen__sms {
    min-width: min(454px, 957px);
    min-height: 84px;
    border: 0;
    border-radius: 1079px;
    padding: 0 45px;
    background: #fff;
    color: #111827;
    font-size: 35px;
    font-weight: 950;
    box-shadow: 0 11px 26px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition:
      transform 160ms ease,
      box-shadow 160ms ease;
    transform: scale(1.2);
    margin-top: 108px;
  }

  .hdl-identity-screen__skip {
    // 保留原有 1.2 倍外观缩放，缩放后的宽度与登录卡片对齐。
    width: calc(100% / 1.2);
    align-self: center;
    min-width: 0;
    min-height: 67px;
    border: 1px solid #d0d5dd;
    border-radius: 1079px;
    padding: 0 36px;
    background: #fff;
    color: #111827;
    font-size: 28px;
    font-weight: 950;
    box-shadow: 0 11px 26px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition:
      transform 160ms ease,
      box-shadow 160ms ease;
    transform: scale(1.2);
  }

  .hdl-identity-screen__guest {
    display: flex;
    width: min(var(--hdl-identity-column-width), 100%);
    flex-direction: column;
    gap: 32px;
    margin-top: 36px;
  }

  .hdl-identity-screen__skip-hint {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    color: rgba(255, 255, 255, 0.64);
    font-size: 28px;
    line-height: 1.4;
    text-align: center;

    &::before,
    &::after {
      content: '';
      height: 1px;
      min-width: 20px;
      flex: 1;
      background: rgba(255, 255, 255, 0.16);
    }
  }

  .hdl-identity-screen__sms:hover {
    transform: translateY(-2px);
    box-shadow: 0 19px 39px rgba(255, 255, 255, 0.18);
  }

  .hdl-identity-screen__sms:active,
  .hdl-identity-screen__skip:active {
    transform: scale(0.98);
  }

  .hdl-identity-screen__error {
    display: flex;
    width: min(var(--hdl-identity-column-width), 100%);
    flex-direction: column;
    gap: 6px;
    margin-top: 24px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 17px;
    padding: 17px 22px;
    background: rgba(143, 21, 21, 0.32);
    color: #fff;
    text-align: center;
  }

  .hdl-identity-screen__error small {
    color: rgba(255, 255, 255, 0.72);
  }
}
