<template>
  <div class="p-con">
    <div class="main">
      <div class="bg"></div>
      <div class="content">
        <div class="title">
          <span class="icon">
            <img src="../../assets/images/logofff-2.png" height="50px" style="margin-right:10px;" />
            <img src="../../assets/images/logofff-3.png" height="50px"/>
          </span>
          <p>报名系统</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;
  width: 100%;
  height: 100%;
  background: #fff;
}
/* 头部 */
.header {
  max-width: 1000px;
  padding: 15px 0;
  margin: 0 auto;
}
.logo {
  height: 40px;
  margin-left: 20px;
  background: url('~@/assets/images/logo.png') no-repeat;
  background-size: contain;
}
/* 底部 */

/* 中间部分 */
.main {
  position: relative;
}
.main .bg {
  height: 360px;
  background: url('~@/assets/images/login_bg.png') no-repeat center bottom;
  background-size: cover;
}
.main .content {
  max-width: 700px;
  min-width: 320px;
  position: relative;
  margin: -200px 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: #bb133e;
    color: #fff;
  }
  .main .title .icon {
    // background: url('~@/assets/images/logofff.png') no-repeat center center;
    // background-size: contain;
    // width: 166px;
    // height: 40px;
    text-align: center;
    margin-bottom: 30px;
  }
  .main .title p {
    font-size: 20px;
    line-height: 28px;
    color: #fff;
    margin: 0;
  }
  .main .login {
    flex: 1;
    min-height: 300px;
    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>
