<template>
  <div class="p-con">
    <div class="main">
      <div class="bg"></div>
      <div class="content">
        <div class="title">
          <span class="icon"></span>
          <p>
            玛丽伍德大学<br />
            EMBA、MBA报名申请系统
          </p>
        </div>
        <div class="login">
          <normal-login>
            <div class="text" slot="text">
              <span class="forget-pwd">
                <div class="router-link-class" @click="dialogMsg">忘记密码</div>
              </span>
            </div>
          </normal-login>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import NormalLogin from './components/NormalLogin.vue'
export default {
  components: {
    NormalLogin
  },
  methods: {
    dialogMsg() {
      this.$router.push({
        name: 'forgetPsw'
      })
    }
  }
}
</script>

<style lang="scss" scoped>
.p-con {
  position: relative;
  min-height: calc(100vh - 120px);
  background: #fff;
}
.main {
  position: relative;
}
.main .bg {
  height: 360px;
  background: url(https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/bm_bg.jpg) no-repeat center 30%;
  background-size: cover;
}
.main .content {
  max-width: 700px;
  min-width: 320px;
  position: relative;
  margin: -150px auto 0;
}
.p-con .router-link-class {
  color: #999;
  text-decoration: none;
}

.p-con .main .content .login {
  background-color: #fff;
  box-sizing: border-box;
}
.p-con .main .content .text {
  margin-top: -16px;
  color: #999;
  font-size: 16px;
  line-height: 1.5;
  overflow: hidden;
}
.p-con .main .content .text .code-login {
  float: left;
  cursor: pointer;
}
.p-con .main .content .text .forget-pwd {
  float: right;
  cursor: pointer;
}

.login-footer {
  margin-top: 20px;
  text-align: center;
  padding: 10px;
  color: #898989;
  font-size: 12px;
  line-height: 1.5;
}

/* pc */
@media (min-width: 700px) {
  .main .logo {
    display: none;
  }
  .main .content {
    display: flex;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.3);
  }
  .main .title {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 260px;
    background-color: rgba(26, 86, 50, 1);
    color: #fff;
  }
  .main .title .icon {
    background: url('https://webapp-pub.oss-cn-beijing.aliyuncs.com/project/new-marywood/marywood_logo%402x.png')
      no-repeat center center;
    fill: #fff;
    background-size: contain;
    width: 166px;
    height: 40px;
    margin-bottom: 30px;
  }
  .main .title p {
    font-size: 20px;
    line-height: 28px;
    color: #fff;
    margin: 0;
    text-align: center;
  }
  .main .login {
    flex: 1;
    min-height: 350px;
    padding: 44px 80px 0;
  }
}

/* mobile */
@media (max-width: 699px) {
  .header {
    // display: none;
    ::v-deep.tap-language-switch {
      right: 0;
    }
  }
  .main .bg {
    height: 215px;
    background: url('~@/assets/images/bg-mobile.png') no-repeat center bottom;
    background-size: auto 100%;
  }
  .main .logo {
    height: 30px;
    margin-bottom: 15px;
  }
  .main .content {
    margin: -180px 20px 0;
  }
  .main .title {
    display: flex;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
  }
  .main .title p {
    font-size: 20px;
    line-height: 28px;
    color: #fff;
    margin: 0;
  }
  .main .login {
    padding: 15px 20px;
    box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.3);
  }
}
</style>
