<template>
  <div class="wrapper">
    <section class="main">
      <div class="main-box">
        <div class="main-box-hd">
          <div class="logo">
            <div class="logo-left">
              <img src="../assets/logo_1.png" />
            </div>
            <div class="logo-right">
              <img src="../assets/logo_2.png" />
            </div>
          </div>
          <h1 class="title">玛丽伍德大学国际硕士保研项目</h1>
        </div>
        <div class="main-box-bd">
          <router-view></router-view>
        </div>
      </div>
      <language-switch />
    </section>
  </div>
</template>

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

<style lang="scss" scoped>
.wrapper {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  // background: url(https://logincdn.msauth.net/shared/1.0/content/images/backgrounds/2_bc3d32a696895f78c19df6c717586a5d.svg);
  background-size: cover;
}
.main-box {
  width: 450px;
  min-height: 500px;
  margin: 0 auto;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #dadce0;
  box-sizing: border-box;
  color: #bb4767;
  overflow: hidden;
}
.main-box-hd {
  background: #a91940;
  .logo {
    display: flex;
    align-items: center;
    div {
      flex: 1;
      padding: 5px;
    }
    .logo-right {
      background-color: #fff;
    }
    img {
      display: block;
      width: 100%;
      height: auto;
      max-height: 40px;
      object-fit: contain;
    }
  }
  .title {
    margin: 0;
    padding: 10px 0;
    font-size: 20px;
    color: #fff;
    text-align: center;
  }
}
.main-box-bd {
  padding: 20px 40px;
}
.footer {
  padding: 20px 10px;
  .t1 {
    text-align: right;
    color: #d3d3d3;
  }
}
:deep(.title) {
  font-weight: normal;
  text-align: center;
  font-size: 20px;
  color: #353535;
  margin-bottom: 24px;
}
@media (max-width: 768px) {
  .wrapper {
    display: block;
  }
  .main {
    padding: 20px;
  }
  .main-box {
    width: 100%;
    min-height: calc(100vh - 100px);
    border: 0;
    padding: 0;
  }
  .main-box-bd {
    padding: 20px 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>
