.hdl-identity-auth-panel {
  // 两步共用内容高度，包含验证码页的错误提示和重发按钮间距。
  --hdl-identity-auth-step-height: 360px;
  width: 100%;

  &[aria-busy='true'] {
    pointer-events: none;
    opacity: 1;
  }

  &--disabled {
    display: grid;
    min-height: 194px;
    place-items: center;
    color: #667085;
    text-align: center;
  }

  &__body {
    height: var(--hdl-identity-auth-step-height);
    overflow: auto;
    overscroll-behavior: contain;
  }

  .hdl-identity-auth-panel__body > .login2-container {
    box-sizing: border-box;
    min-height: var(--hdl-identity-auth-step-height);
    justify-content: center;
    gap: 0;
    padding: 4px 0;
  }

  .login2-header:empty {
    display: none;
  }

  .login2-content,
  .code-input-page {
    flex-shrink: 0;
  }

  .code-input-page {
    position: relative;
    min-height: 0;
    padding: 0;
  }

  .code-input-page .back-button-top {
    position: absolute;
    top: 0;
    left: 0;
  }

  .code-input-page .register-step-content {
    display: grid;
    grid-template-rows: auto auto auto minmax(22px, auto) 44px 44px auto;
    gap: 8px;
  }

  .code-input-page .register-step-title {
    grid-row: 1;
    margin: 0;
    padding: 0 40px;
    line-height: 24px;
  }

  .code-input-page .register-step-desc {
    grid-row: 2;
    margin: 0;
    line-height: 20px;
  }

  .code-input-page .code-input-group {
    grid-row: 3;
    margin: 0;
  }

  .code-input-page .code-input-box {
    box-sizing: border-box;
    min-width: 0;
  }

  // 即使没有错误节点，第四行仍保留 22px；长错误随内容增长并在 body 内滚动。
  .code-input-page .code-input-error {
    grid-row: 4;
    margin: 0;
    overflow-wrap: anywhere !important;
  }

  .code-input-page .register-submit-btn {
    grid-row: 5;
    margin: 0;

    &:disabled {
      background: #eaecf0;
      border-color: #eaecf0;
      color: #667085;
      opacity: 1;
      box-shadow: none;
      cursor: not-allowed;
    }
  }

  .code-input-page .register-back-btn {
    grid-row: 6;
  }

  .code-input-page .register-resend-section {
    grid-row: 7;
    margin: 24px 0 0;

    .resend-link:disabled {
      color: #667085;
      opacity: 1;
      cursor: not-allowed;
      text-decoration: none;
    }
  }

  &__notice {
    box-sizing: border-box;
    width: 100%;
    max-width: 360px;
    margin: 16px auto 0;
    color: #667085;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: center;
  }
}
