<template>
  <div class="wrapper-box">
    <div class="head-box">
      <div class="head">
        <img src="https://webapp-pub.ezijing.com/project/fd/logo.png" />
      </div>
      <div class="head-title">在线学习及考试系统</div>
    </div>
    <div class="wrapper">
      <section class="main">
        <div class="main-box">
          <!-- <div class="logo">
            <a href="https://www.ezijing.com">
              <img src="https://zws-imgs-pub.ezijing.com/pc/base/favicon.svg" width="40px" />
            </a>
          </div> -->
          <router-view></router-view>
        </div>
        <!-- <language-switch /> -->
      </section>
    </div>
    <div class="bottom-foot"></div>
  </div>
</template>

<script>
// import languageSwitch from '@/components/languageSwitch.vue'
export default {
  // components: { languageSwitch }
}
</script>

<style lang="scss" scoped>
.wrapper {
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-flex: 1;
  flex: 1;
  box-align: center;
  box-pack: center;
  background: url(https://webapp-pub.ezijing.com/project/fd/bg.png);
  background-size: cover;
}
.wrapper-box {
  display: flex;
  flex-direction: column;
  box-orient: vertical;
  box-direction: normal;
  justify-content: center;
  min-height: 100vh;
  .head-box {
    background: rgba(169, 31, 59, 1);
  }
  .head {
    width: 100%;
    height: 92px;
    background: rgba(169, 31, 59, 1);
    display: flex;
    align-items: center;
    img {
      margin-left: 67px;
    }
  }
  .head-title {
    height: 55px;
    background: rgba(0, 0, 0, 0.13);
    font-size: 26px;
    font-weight: bold;
    line-height: 55px;
    color: #ffffff;
    text-align: center;
  }
}
.main-box {
  width: 350px;
  transform: translateX(70%);
  // min-height: 500px;
  padding: 27px 40px 30px;
  // margin: 0 auto;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #dadce0;
  box-sizing: border-box;
  color: #bb4767;
}
.logo {
  text-align: center;
  padding-bottom: 16px;
}
.footer {
  padding: 20px 10px;
  .t1 {
    text-align: right;
    color: #d3d3d3;
  }
}
:deep(.title) {
  font-size: 20px;
  font-weight: bold;
  line-height: 34px;
  color: #a91f3b;
  text-align: center;
  letter-spacing: 10px;
  margin-bottom: 27px;
}
.bottom-foot {
  height: 76px;
  background: rgba(169, 31, 59, 1);
}
@media (max-width: 768px) {
  .wrapper {
    display: block;
  }
  .main {
    padding: 20px;
  }
  .main-box {
    width: 100%;
    min-height: calc(100vh - 100px);
    border: 0;
    padding: 0;
  }
}
:deep(.language-switch) {
  margin: 10px 0;
  width: 80px;
  .el-input__inner {
    border: none;
    padding-left: 0;
  }
  .el-select .el-input .el-select__caret {
    color: #606266;
  }
}
</style>
