@import '@delon/theme/index';
:host ::ng-deep {
  .container {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #f0f2f5;
  }
  .langs {
    width: 100%;
    height: 40px;
    line-height: 44px;
    text-align: right;
    .anticon {
      margin-top: 24px;
      margin-right: 24px;
      font-size: 14px;
      vertical-align: top;
      cursor: pointer;
    }
  }
  .wrap {
    flex: 1;
    padding: 12px 0;
  }
  .ant-form-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
  }

  @media (min-width: @screen-md-min) {
    .container {
      background-image: url("src/assets/bg.png");
      background-repeat: no-repeat;
      background-position: center;
      background-attachment: fixed;
      background-size: cover;
    }
    .wrap {
      padding: 12px 0 8px;
    }
  }
  .top {
    text-align: center;
  }
  .header {
    height: 44px;
    line-height: 44px;
    a {
      text-decoration: none;
    }
  }
  .logo {
    height: 55px;
    margin-right: 16px;
  }
  .title {
    position: relative;
    color: @heading-color;
    font-weight: 600;
    font-size: 33px;
    font-family: 'Myriad Pro', 'Helvetica Neue', Arial, Helvetica, sans-serif;
    vertical-align: middle;
  }
  .desc {
    margin-top: 12px;
    margin-bottom: 20px;
    color: @text-color-secondary;
    font-size: @font-size-base;
  }

  .passport-left-content {
    margin-left: 10%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;

    &.long-lang {
      .passport-intro {
        font-size: clamp(1.4rem, 2.5vw, 2.2rem);
      }
      .passport-points {
        font-size: 12px;
      }
    }

    nz-divider {
      margin: 10px 0;
      background: rgba(255, 255, 255, 0.2);
    }
  }

  .passport-intro {
    margin-top: 0;
    font-weight: bolder;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: white;
    line-height: 1.2;
    word-break: break-word;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  .passport-points {
    margin-top: 8px;
    font-weight: normal;
    font-size: 13px;
    color: white;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px 24px;

    @media (min-width: @screen-lg-min) {
      .long-lang & {
        grid-template-columns: 1fr 1fr;
      }
      @media (max-height: 750px) {
        grid-template-columns: 1fr 1fr;
      }
    }

    .point-item {
      display: flex;
      align-items: flex-start;
      line-height: 1.4;
      margin-bottom: 4px;
      nz-badge {
        margin-top: 5px;
        margin-right: 8px;
        flex-shrink: 0;
      }
      span {
        flex: 1;
        opacity: 0.9;
      }
    }
  }
}

[data-theme='dark'] {
  :host ::ng-deep {
    .container {
      background: #141414;
    }
    .title {
      color: fade(@white, 85%);
    }
    .desc {
      color: fade(@white, 45%);
    }
    .global-footer__copyright {
      color: fade(@white, 45%);
    }
    .global-footer__links-item {
      color: fade(@white, 45%);
    }
    @media (min-width: @screen-md-min) {
      .container {
        background-image: none;
      }
    }
  }
}

[data-theme='compact'] {
  :host ::ng-deep {
    .ant-form-item {
      margin-bottom: 16px;
    }
  }
}
