<template>
  <div class="login-page">
    <div class="login-box">
      <div class="login-header">
        <div class="inner">中国银行保险报培训项目</div>
      </div>
      <div class="login-main">
        <div class="title"><img src="../assets/login_title.png" width="100%" /></div>
        <div class="login-modules">
          <router-view></router-view>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  metaInfo() {
    return {
      link: [{ rel: 'icon', href: 'https://zws-imgs-pub.ezijing.com/static/build/learn-prp/favicon.png' }]
    }
  },
  data() {
    return {}
  }
}
</script>

<style lang="scss" scoped>
::v-deep .el-button--primary {
  background: #fff;
  border: none;
  color: #0028a8;
}
::v-deep .el-page-header__content,
::v-deep .el-form-item__label {
  color: #fff;
}
.login-page {
  position: relative;
  min-height: 100vh;
  background: #142564 url('../assets/login_bg.png') no-repeat center top;
  background-size: cover;
  color: #fff;
}
.login-header {
  height: 80px;
  font-size: 24px;
  font-weight: bold;
  line-height: 80px;
  background: rgba(55, 86, 154, 0.5);
}
.inner {
  max-width: 80%;
  margin: 0 auto;
}
.title {
  flex: 1;
  img {
    width: 80%;
  }
}
.login-main {
  max-width: 80%;
  min-height: calc(100vh - 80px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-modules {
  flex: 0 0 340px;
}

@media (max-width: 768px) {
  .login-header {
    text-align: center;
  }
  .title {
    padding: 40px 0;
    img {
      width: 100%;
    }
  }
  .login-main {
    display: block;
    max-width: none;
    margin: 0 20px;
    padding-bottom: 20px;
  }
}

.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  font-size: 12px;
  line-height: 30px;
  text-align: center;
  a {
    margin-left: 10px;
    color: #fff;
  }
  img {
    vertical-align: middle;
  }
}
</style>
