$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: #F4F7FB;
}

*,
*::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;
  min-height: 100%;
  width: 100%;

  &__img {
    flex: 1 1 0;
    display: inline-block;
    background: url('../img/illustration.png') 50% 50% / 757px 613px no-repeat;
  }

  &__main {
    flex: 1 1 0;
  }
}

@media screen and (max-width: 900px) {
  .c-login__img {
    display: none;
  }
}

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

  &__header {
    display: inline-flex;
    align-items: center;
  }

  &__logo {
    display: inline-block;
    width: 142px;
    height: 36px;
    background: url('../img/logo.png') 0 0 / 100% 100% no-repeat;
  }

  &__name {
    padding-left: 10px;
    color: $blue;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
  }

  &__title {
    padding: 60px 0 40px;
    color: $blue;
    font-size: 18px;
    font-weight: bold;
  }

  &__info {
    width: 400px;
    color: $black;
    font-size: 16px;
    line-height: 20px;

    p {
      line-height: 24px;
    }
  }

  &__qr {
    max-width: 150px;
    max-height: 150px;
  }

  &__retry {
    color: $blue;
    font-size: 12px;
  }

  &__required {
    color: #EF1D1D;

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

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

  &__error {
    height: 30px;
    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;
    color: #ffffff;
    font-size: 18px;
    border: none;
    background-color: $blue;
    border-radius: 8px;
    cursor: pointer;

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