@import '../../styles/variables.less';

.login-wrapper {
  position: relative;
  display: flex;
  height: 100vh;
  background-color: skyblue;
  // background-image: url('~@/pages/index/assets/newDlsy.png');
  background-position: 100%;
  background-size: 100% auto;
  flex-direction: column;
}

.login-container {
  position: absolute;
  top: 20%;
  right: 8%;
  min-height: 500px;
  line-height: 22px;
  background-color: white;
  border-radius: 10px
}

.field {
  margin-top: 20px;
}

.title-container {
  .title {
    margin-top: 16px;
    margin-left: 35px;
    font-size: 36px;
    font-weight: normal;
    line-height: 44px;
    color: var(--td-text-color-brand);

    &.margin-no {
      margin-top: 0;
    }
  }

  .sub-title {
    margin-top: 16px;

    .tip {
      display: inline-block;
      margin-right: 8px;
      font-size: 14px;

      &:first-child {
        color: var(--td-text-color-secondary);
      }

      &:last-child {
        color: var(--td-text-color-primary);
        cursor: pointer;
      }
    }
  }
}

.item-container {
  width: 350px;
  margin-top: 0;
  margin-right: 30px;
  margin-left: 30px;

  &.login-qrcode {
    .tip-container {
      display: flex;
      width: 192px;
      margin-bottom: 16px;
      font-size: 14px;
      justify-content: space-between;

      .tip {
        color: var(--td-text-color-primary);
      }

      .refresh {
        display: flex;
        color: var(--td-brand-color);
        align-items: center;

        .t-icon {
          font-size: 14px;
        }

        &:hover {
          cursor: pointer;
        }
      }
    }

    .bottom-container {
      margin-top: 32px;
    }
  }

  &.login-phone {
    .bottom-container {
      margin-top: 66px;
    }
  }

  .check-container {
    display: flex;
    align-items: center;

    &.remember-pwd {
      margin-bottom: 16px;
      justify-content: space-between;
    }

    .t-checkbox__label {
      color: var(--td-text-color-secondary);
    }

    span {
      color: var(--td-brand-color);

      &:hover {
        cursor: pointer;
      }
    }
  }

  .verification-code {
    display: flex;
    align-items: center;
    justify-content: space-between;

    .t-form__controls {
      width: 100%;

      button {
        float: right;
        width: 102px;
        height: 40px;
        margin-left: 11px;
        flex-shrink: 0;
      }
    }
  }

  .verification-code /deep/.t-form__controls {
    width: 100%;
  }

  .btn-container {
    margin-top: 30px;
  }
}

.switch-container {
  margin-top: 24px;

  .tip {
    display: inline-flex;
    margin-right: 14px;
    font-size: 14px;
    color: var(--td-brand-color);
    cursor: pointer;
    align-items: center;

    &:last-child {
      &::after {
        display: none;
      }
    }

    &::after {
      display: block;
      width: 1px;
      height: 12px;
      margin-left: 14px;
      background: var(--td-gray-color-3);
      content: '';
    }
  }
}

.check-container {
  font-size: 14px;
  color: var(--td-text-color-secondary);

  .tip {
    float: right;
    font-size: 14px;
    color: var(--td-brand-color);
  }
}

.copyright {
  position: absolute;
  bottom: var(--td-comp-size-xxxl);
  left: 5%;
  font-size: 14px;
  color: var(--td-text-color-secondary);
}

@media screen and (max-height: 700px) {
  .copyright {
    display: none;
  }
}