$blue: #1C5CB0;
$gray: #C4C4C4;
$black: #333333;

* {
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  height: 100%;
}

body {
  box-sizing: border-box;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
  background-color: #FFFFFF;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

a {
  border: none;
  outline: none;
  text-decoration: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.c-login {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100%;
  width: 100%;

  &__main {
    flex: 1 0 auto;
    max-height: 100%;
    overflow: auto;
  }
}

.c-login-form {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0 0 40px;
  overflow: auto;

  &__header {
    color: $blue;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
  }

  &__tip {
    padding: 20px;
    height: 60px;

    .success {
      color: #67C23A;
    }

    .warning {
      color: #E6A23C;
    }

    .error {
      color: #F56C6C;
    }

    .info {
      color: #409EFF;
    }
  }

  &__section {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  &__wrapper {
    display: flex;
    align-items: center;
  }

  &__label {
    width: 150px;
    margin-right: 20px;
    color: $black;
    font-size: 16px;
    text-align: right;

    &::before {
      content: '*';
      color: #FF0000;
      font-size: 14px;
    }
  }

  &__input {
    padding: 0 10px;
    width: 320px;
    height: 30px;
    font-size: 14px;
    line-height: 30px;
    border: 1px solid $gray;
    outline: none;

    &.password {
      -webkit-text-security: disc;
    }
  }

  &__error {
    display: inline-block;
    width: 320px;
    height: 30px;
    margin-left: 170px;
    color: #F56C6C;
    font-size: 12px;
    line-height: 24px;
    white-space: nowrap;
  }


  &__submit {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    padding: 0 40px;
    margin-top: 60px;
    color: #ffffff;
    font-size: 18px;
    border: none;
    background-color: $blue;
    border-radius: 8px;
    cursor: pointer;

    &[disabled] {
      background-color: $gray;
    }
  }
}
