@import "common/gc-var";
@import "common/transition";
@import "common/mixin";

.gc-login {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  .gc-login--left {
    position: absolute;
    top: 0;
    width: 60%;
    bottom: 0;
    left: 0;
    background-color: $--color-primary;
    background-image: linear-gradient($--color-primary, $--color-primary-light-2);
    // background: #04113e url("#{$--images-path}/frame-images/login_bg.png") no-repeat right 60px bottom 60px;
    background-position: right bottom;
    background-repeat: no-repeat;
    background-color: $--color-primary;

    .login-img {
      position: absolute;
      right: 10%;
      bottom: 10%;
      // transform: translate(-50%, -50%);
      width: 630px;
      height: 494px;
      background: url("#{$--images-path}/frame-images/login_bg.png") no-repeat;
      background-size: 100%;
    }
    .login-font {
      z-index: 1;
      position: absolute;
      width: 340px;
      height: 184px;
      top: 24%;
      left: 10%;
      // transform: translate(-50%, -60%);
      line-height: 24px;
      color: rgba(255,255,255,0.8);
      font-size: 16px;
      h5 {
        padding: 16px 0 32px 10px;
        font-size: 40px;
        font-weight: 400;
        color: #fff;
      }
      li {
        list-style: disc;
        margin-left: 24px;
        line-height: 36px;
      }
    }
    .gc-copyright__logo {
      position: fixed;
      bottom: 12px;
      left: 24px;
      z-index: 99;
      width: 92px;
      height: 12px;
      display: inline-block;
      background: url("#{$--images-path}/frame-images/login_copyright_logo.png") no-repeat center;
    }
  }
  .gc-login--right {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 60%;
  }
  .gc-login__header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    border-bottom: 1px solid rgba(255, 255, 255,.15);
    .gc-template__header--logo {
      background-color: rgba(0, 0, 0, .05);
    }
  }
  .gc-login__copyright {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    .gc-copyright {
      background-color: transparent;
      color: rgba(255, 255, 255, 0.3);
      border-top-color: rgba(255, 255, 255,.15);
      a {
        color: $--color-white;
        text-decoration: underline;
        &.no-decoration{
          text-decoration: none;
          color: rgba(255, 255, 255, 0.3);
          &:hover{
            text-decoration: underline;
          }
        }
      }
    }
  }
  .gc-login-form {
    position: absolute;
    width: 376px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    .gc-login-title {
      margin-bottom: 16px;
      font-size: 24px;
      line-height: 24px;
      text-align: center;
    }
    .gc-login-subtitle {
      margin-bottom: 16px;
      color: $--color-primary;
      text-align: center;
    }
    .gc-login-notice {
      margin-bottom: 24px;
      text-align: center;
      color: $--color-text-secondary;
      line-height: 14px;
      a {
        color: $--color-text-primary;
        text-decoration: underline;
        cursor: pointer;
        &:hover {
          color: $--color-primary;
        }
      }
    }
    .gc-login-subnotice {
      margin-top: 24px;
      color: $--color-text-secondary;
      text-align: center;
      font-size: 12px;
      a {
        color: $--color-text-primary;
        text-decoration: underline;
        cursor: pointer;
        &:hover {
          color: $--color-primary;
        }
      }
    }
    .el-form-item {
      margin-bottom: 20px;
    }
    .el-input {
      .el-input__inner {
        height: 48px;
        line-height: 48px;
        border: none;
        border-bottom: 1px solid $--border-color-base;
        padding: 0;
        border-radius: 0;
        text-indent: 16px;
      }
    }
    .gc-login-forget {
      text-align: right;
      margin-bottom: 24px;
      color: $--color-text-secondary;
      a {
        cursor: pointer;
        &:hover {
          color: $--color-primary;
        }
      }
    }
    .el-button {
      width: 100%;
      margin-top: 20px;
      background-color: $--color-primary-light-2 !important;
      border-color: $--color-primary-light-2 !important;
      box-shadow: 0 5px 8px rgba(0,122,255,0.5);
      &:hover{
        background-color: #007aff !important;
      }
    }
    .item--verification .el-form-item__content {
      position: relative;
      .el-input__inner {
        padding-right: 106px;
      }
      .verification-label {
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        color: $--color-primary;
        img, .verification-text {
          cursor: pointer;
        }
        .verification-text {
          &:hover {
            text-decoration: underline;
          }
        }
      }
    }
  }
}
@media (max-width: 1400px) {
  .gc-login {
    .gc-login--left {
      .login-img {
        width: 441px;
        height: 346px;
      }
    }
  }
}
