// 公共样式
@import '@/assets/common/style/common/common.scss';

#login-container {
  position: relative;
  height: 100%;
  min-height: 768px;
}

.login-logo {
  position: absolute;
  left: 23px;
  top: 23px;
  font-size: 24px;
  font-weight: 600;
  z-index: 1;
  width: 134px;
  height: 24px;
  img {
    max-width: 100%;
    max-height: 100%;
  }
}

.login-left-img {
  position: fixed;
  width: 100%;
  height: 100%;
  flex: 1;
  z-index: 0;
  img {
    width: 100%;
    height: 100%;
  }
}

.lang-container {
  position: absolute;
  top: 0;
  right: 40px;
  z-index: 10;
  display: flex;
  align-items: center;
  height: 48px;
}

.icon-help {
  display: inline-block;
  height: 24px;
  width: 24px;
  font-size: 24px;
  vertical-align: top;
  margin-left: 20px;
  cursor: pointer;
  &:hover::before {
    color: $APP-COLOR-HOVER;
  }
}

.sec-notice {
  position: absolute;
  z-index: 10;
  border: 1px solid var(--o-color-state-primary);
  background: var(--o-color-state-primary-secondary);
  border-radius: 2px;
}

.container {
  position: relative;
  display: flex;
  padding: 16px;
}

.sec-close {
  position: absolute;
  right: 10px;
  cursor: pointer;
  :deep(.el-icon) {
    font-size: 16px;
    color: var(--o-text-color-tertiary);
  }
}
.sec-ico {
  margin-right: 16px;
  :deep(.el-icon) {
    font-size: 24px;
    color: #0077ff;
  }
}
.login-secury-content {
  width: 440px;
}

.sec-title {
  font-size: $FONT-16;
  font-weight: 600;
}

.sec-content {
  margin-top: 12px;
  font-size: 12px;
  max-height: 54px;
  overflow: hidden;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: pre-wrap;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.login-content-op {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.login-copyright {
  position: absolute;
  bottom: 28px;
  width: 100%;
  font-size: $FONT-12;
  color: var(--o-text-color-secondary);
  text-align: center;
}

#login-input {
  position: relative;
  width: 630px;
  height: 100%;
  background: var(--o-color-login-card-primary);
  margin-bottom: 40px;
  padding-top: calc(21vh);
  padding-left: 120px;
  padding-right: 120px;
  box-shadow: 0 4px 16px 8px rgba(0, 0, 0, 0.1);
}
#login-input.tip {
  min-height: auto !important;
}

#iconCode {
  float: right;
  height: 30px;
  width: 30px;
  background-size: cover;
  background-repeat: no-repeat;
  cursor: pointer;
  background-image: url('@/assets/common/image/code.png');
}

.welcome {
  padding: 0 4px;
  margin-bottom: 10px;
  font-size: $FONT-12;
  color: var(--o-text-color-secondary);
}

.error-container {
  padding: 10px 0;
  min-height: 56px;
  .error {
    color: #282b33;
    background-color: #ffd1d2;
    padding: 8px 12px;
    border-radius: 2px;
    font-size: 12px;
    border-radius: 4px;
    width: 100%;
    span {
      display: inline-block;
      margin-left: 8px;
      width: calc(100% - 24px);
      vertical-align: top;
      color: var(--o-color-black);
    }
  }
}

.login-input-body {
  position: relative;
  padding-bottom: 48px;
  .login-item {
    position: relative;
    .icon-clear {
      position: absolute;
      right: 15px;
      top: 18px;
      color: #8f97a9;
      font-size: 16px;
      cursor: pointer;
      transition: all 0.2s;
      &:hover {
        color: #333;
      }
    }
  }
  :deep(.el-input) {
    input::-webkit-input-placeholder,
    textarea::-webkit-input-placeholder {
      color: $FONT-COLOR-PLACEHOLDER !important;
      font-size: 16px !important;
    }

    input::-moz-placeholder,
    textarea::-moz-placeholder {
      color: $FONT-COLOR-PLACEHOLDER !important;
      font-size: 16px !important;
    }

    input::-moz-placeholder,
    textarea::-moz-placeholder {
      color: $FONT-COLOR-PLACEHOLDER !important;
      font-size: 16px !important;
    }
  }
  .el-input {
    margin-bottom: 24px;
  }
  .el-select {
    width: 100%;
    :deep(.el-icon) {
      display: flex;
    }
    :deep(#domain) {
      font-size: $FONT-16 !important;
      color: $APP-COLOR-TEXT !important;
    }
  }
  :deep(.el-input__inner) {
    border-color: var(--o-border-color-lighter);
    border-radius: $APP-INPUT-RADIUS;
    font-size: $FONT-16;
    height: $APP-INPUT-COMMON-HEIGHT;
    padding: 12px 40px 12px 16px;
    line-height: 16px;
    &:focus {
      border-color: $APP-COLOR-ACTIVE;
    }
  }
}
.login-input-footer {
  #btLogin {
    width: 100%;
    height: 48px;
    font-size: $FONT-16;
    padding: 12px 20px;
    background: $APP-COLOR-ACTIVE;
    line-height: 24px;
  }
  .others {
    margin-top: 16px;
    color: var(--o-text-color-tertiary);
    span {
      display: inline-block;
      color: $APP-COLOR-ACTIVE;
      transition: all 0.3s;
      &:hover {
        text-decoration: underline;
        cursor: pointer;
        color: $APP-COLOR-HOVER !important;
      }
    }
  }
}

.theme {
  position: absolute;
  top: 25px;
  right: 250px;
  z-index: 11;
  :deep(.el-input__suffix-inner) {
    display: block;
  }
  :deep(.el-input__inner) {
    background-color: #fff;
  }
}
