@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 {
      cursor: pointer;
      margin-top: 24px;
      margin-right: 24px;
      font-size: 14px;
      vertical-align: top;
    }
  }

  .wrap {
    flex: 1;
    padding: 32px 0;
  }

  .ant-form-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 24px;
  }

  .top {
    margin-top: 10rem;
    text-align: center;
  }

  .footer {
    position: fixed;
    /* 相对于浏览器窗口固定位置 */
    bottom: 0.8rem;
    left: 50%;
    /* 左侧距离为50% */
    transform: translate(-50%, -50%);
    color: #f0f2f5;
    /* 平移元素自身宽高的50%，实现水平垂直居中 */
    /* 距离底部为0 */
  }



  .desc {
    margin-top: 12px;
    margin-bottom: 40px;
    font-size: @font-size-base;
    color: @text-color-secondary;
  }

  .container {
    //background-image: url('https://gw.alipayobjects.com/zos/rmsportal/TVYTbAXWheQpRcWDaDMu.svg');
    background-image: url('/assets/bg.jpg');
    //background-size: contain;
    /* 让背景图片完全覆盖整个容器 */
    background-repeat: no-repeat;
    // background-position: center 110px;
    background-size: cover;
  }

  @media (min-width: @screen-md-min) {
    .wrap {
      padding: 32px 0 24px;
    }
  }
}

[data-theme='dark'] {
  :host ::ng-deep {
    .container {
      background: #141414;
    }

    .title {
      color: fade(@white, 85%);
    }

    .desc {
      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;
    }
  }
}