<template>
  <div class="login-box">
    <div class="login-card-mian">
      <div class="title">账号登录</div>
      <ul>
        <li>
          <el-select v-model="value" placeholder="请选择学校" class="forms">
            <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value">
            </el-option>
            <i slot="prefix" class="el-input__icon el-icon-office-building"></i>
          </el-select>
        </li>
        <li>
          <el-input
            class="forms"
            placeholder="请输入账号"
            prefix-icon="el-icon-user"
            v-model="input2">
          </el-input>
        </li>
        <li>
          <el-input
            class="forms"
            placeholder="请输入密码"
            prefix-icon="el-icon-lock"
            show-password
            v-model="input3">
          </el-input>
        </li>
      </ul>
      <div class="login-btn">登录</div>
      <div class="register-btn">注册</div>
    </div>
    <div class="mask" @click="closeMask"></div>
  </div>
</template>
<script>
export default {
  data() {
    return{
      value: '',
      input2: '',
      input3: '',
      options: []
    }
  },
  methods: {
    closeMask() {
      this.$emit('closeMask', false)
    }
  }
}
</script>
<style lang="scss" scoped>
.login-box{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba($color: #000000, $alpha: 0.5);
  z-index: 999;
  .mask{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
  }
  .login-card-mian{
    z-index: 99;
    box-sizing: border-box;
    padding: 24px;
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    width: 328px;
    background: #FFFFFF;
    box-shadow: 0px 3px 10px 0px rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    .title{
      font-size: 18px;
      color: #AF1B40;
      line-height: 25px;
      margin-bottom: 24px;
    }
    ul{
      li{
        margin-bottom: 24px;
        .forms{
          width: 100%;
        }
      }
    }
    .login-btn{
      text-align: center;
      line-height: 40px;
      background: linear-gradient(315deg, rgba(225, 47, 116, 0.83) 0%, #C01540 100%);
      border-radius: 4px;
      font-size: 14px;
      font-weight: bold;
      color: #FFFFFF;
      cursor: pointer;
    }
    .register-btn{
      margin-top: 4px;
      text-align: right;
      font-size: 14px;
      color: #999999;
      line-height: 20px;
      cursor: pointer;
    }
  }
}
::v-deep{
  .forms{
    i {
      font-size: 20px;
    }
    input{
      border-radius: 4px;
    }
  }
}
</style>
