<script setup>
import { useHead } from '@unhead/vue'

useHead({
  link: [{ vmid: 'icon', rel: 'icon', href: 'https://zws-imgs-pub.ezijing.com/static/build/learn-prp/favicon.png' }]
})
</script>
<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>

<style lang="scss" scoped>
:deep() {
  .el-button--primary {
    background: #fff;
    border: none;
    color: #0028a8;
  }
  .el-page-header__content,
  .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>
