<script setup lang="ts">
const isLogin: any = useCookie("tokenKey");
</script>
<template>
  <div class="common-layout" v-loading="isLogin">
    <h-header/>
    <slot />
  </div>
</template>
<style lang="scss">
.login-bg {
  position: relative;
  text-align: center;
  min-height: 100vh;
  width: 100%;
  display: flex;
  background: #fff;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  background: #fff url("~/assets/img/login/bg_login.png") no-repeat top center;
  background-size: 100% auto;
  padding-top: 100px;
  .logo {
    width: 150px;
    display: block;
    position: absolute;
    top: 30px;
  }
}
.el-form-wrap .text-wrapper_title h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  a {
    color: $mainColor;
    font-size: 14px;
  }
}
.login-from {
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-direction: column;
  padding: 30px 0 0px;
  margin: 30px 0;
  .el-icon svg {
    height: 20px;
    width: 20px;
  }
  .el-input .el-input__icon {
    width: 20px;
  }
  .el-input .el-input__wrapper,
  .el-input .el-input__wrapper:hover {
    border: 1px solid #fff !important;
    border-bottom: 1px solid #dddddd !important;
    height: 44px;
    box-shadow: 0 0 0 1px #fff inset !important;
    border-radius: 0 !important;
    padding: 0;
  }
  .el-form-item.is-error .el-input__wrapper {
    box-shadow: 0 0 0 1px #fff inset !important;
    border-bottom: 1px solid #f56c6c !important;
  }
  .el-input .el-input__wrapper.is-focus {
    box-shadow: 0 0 0 1px #fff inset !important;
    border-bottom: 1px solid #000 !important;
  }
}
.forget-pass {
  color: rgba(102, 102, 102, 0.4);
  .el-form-item__content {
    display: block;
  }
}
.send-code {
  position: absolute;
  right: 0;
  color: $mainColor;
}
.el-form-wrap {
  border-radius: 0.75em;
  display: flex;
  width: 100%;
  position: relative;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 0 30px;
  width: 100%;
  .el-form {
    width: 100%;
  }
  .text-wrapper_title {
    margin: 0px 0px 30px 0px;
    img {
      width: 175px;
    }
    h1 {
      text-align: left;
      color: $mainColor;
      font-size: 32px;
      font-weight: bold;
      height: 45px;
      margin-bottom: 4px;
      a {
        font-weight: 700;
      }
    }
    h2 {
      height: 22px;
      font-size: 16px;
      font-weight: 400;
      color: rgba(51, 51, 51, 0.9);
      text-align: left;
    }
  }
}
.put-class {
  text-indent: 20px;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  height: 60px;
  width: 480px;
  border-radius: 5px;
  background: #ffffff;
  border: 1px solid #dddddd;
  background-image: url(@/assets/img/login/username.svg);
  background-repeat: no-repeat;
  background-size: 16px;
  padding-left: 25px;
  background-position: 20px center;
  color: rgb(39, 47, 88);
  &:focus-visible {
    outline: unset;
    box-shadow: 0 0 0 1px #000000 inset;
  }
}
.el-form-item {
  & + .el-form-item {
    .put-class {
      background-image: url(@/assets/img/login/password.svg);
      background-repeat: no-repeat;
      background-size: 16px;
      background-position: 20px center;
    }
  }
}
.inp-wrap {
  margin-bottom: 20px;
  position: relative;
}

.el-checkbox {
  -webkit-tap-highlight-color: transparent;
}
</style>
<style scoped lang="scss">
.el-container {
  flex-direction: column;
  min-height: 100vh;
}
</style>
