<template>
  <div class="login-other">
    <div class="left"></div>
    <div class="right">
      <div class="content">
        <p class="title"><img src="../assets/image/logo.svg" alt="">云鹊医工作站</p>
        <!--<div class="input-info">
          <div class="title-div">
            <p class="title-input">账号登录</p>
            <img src="../assets/image/underline.svg" alt="">
          </div>
          <el-form ref="loginForm" :model="loginData" >
            <el-form-item label="">
              <el-input v-model="loginData.mobile" placeholder="手机号">
                <i slot="prefix" class="el-input__icon my-icon mobile-icon"></i>
              </el-input>
            </el-form-item>
            <el-form-item label="">
              <el-input v-model="loginData.password" placeholder="密码">
                <i slot="prefix" class="el-input__icon my-icon password-icon"></i>
              </el-input>
            </el-form-item>
          </el-form>
          <div class="button-div">
            <div class="forget-password">
              <p>忘记密码？</p>
            </div>
            <button>登 录</button>
          </div>
        </div>-->

        <div class="input-info">
          <div class="title-div">
            <p class="title-input">重设密码</p>
            <img src="../assets/image/underline.svg" alt="">
          </div>
          <el-form ref="loginForm" :model="resetPassword" >
            <el-form-item label="">
              <el-input v-model="resetPassword.mobile" placeholder="手机号">
                <i slot="prefix" class="el-input__icon my-icon mobile-icon"></i>
              </el-input>
            </el-form-item>
            <el-form-item label="">
              <el-input v-model="resetPassword.authCode" placeholder="短信验证码">
                <i slot="prefix" class="el-input__icon my-icon auth-code-icon"></i>
                <i slot="suffix" class="el-input__icon">获取短信验证码</i>
              </el-input>
            </el-form-item>
            <el-form-item label="">
              <el-input v-model="resetPassword.password" placeholder="新密码">
                <i slot="prefix" class="el-input__icon my-icon password-icon"></i>
              </el-input>
            </el-form-item>
          </el-form>
          <div class="button-div">
            <!--<div class="forget-password">
              <p>忘记密码？</p>
            </div>-->
            <div class="login-btn">
              <button>登 录</button>
              <p class="shadow"></p>
            </div>
            <div class="login-now">
              <p>立即登录</p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
  export default {
    name: "login",
    data() {
      return {
        loginData: {},
        resetPassword: {}
      }
    },
  }
</script>

<style  lang="scss">
  .my-icon {
    display: inline-block;
    height: 20px;
    margin-top: 9px;
  }
  .mobile-icon {
    background: url("../assets/image/mobile.svg") no-repeat;
  }
  .password-icon {
    background: url("../assets/image/password.svg") no-repeat;
  }
  .auth-code-icon {
    background: url("../assets/image/auth-code.svg") no-repeat;
  }
  .login-other {
    display: flex;
    height: 100%;
    flex-direction: row;
    .left {
      flex-grow: 1;

    }
    .right {
      .content {
        padding: 40px 50px 20px 50px;
        .title {
          text-align: center;
          font-weight: 500;
          font-size: 34px;
          color: #333333;
          img {
            width: 54px;
            height: 54px;
            vertical-align: middle;
          }
        }
        .input-info {
          margin-top: 60px;
          .title-div {
            position: relative;
            margin-bottom: 30px;
            .title-input {
              font-size: 28px;
            }
            img {
              display: block;
              position: absolute;
              bottom: 3px;
            }
          }
          .el-form {
            .el-form-item {
              .el-form-item__content {
                .el-input {
                  .el-input__inner {
                    border-radius: 0;
                    border: none;
                    border-bottom: 1px solid #D9D9D9;
                  }
                }

              }
            }

          }
          .button-div {
            .login-btn {
              button {
                width: 100%;
                height: 70px;
                background: #449284;
                color: #ffffff;
                font-size: 24px;
                margin-top: 20px;
                cursor: pointer;
                box-shadow: 0px 10px 12px 0px rgba(59,132,119,0.2);
              }
              /*.shadow {
                width: 100%;
                height: 20px;
                background: url("../assets/image/shadow.svg") no-repeat;
                background-size: cover;
              }*/
            }
            .forget-password {
              margin-top: 52px;
              color:red;
              p {
                cursor: pointer;
                width: 80px;
                float: right;
                font-size: 16px;
                color: #449284;
              }
            }
          }
        }

      }

    }
    /*大于1441*/
    @media only screen and (min-width: 1441px) {
      .left {
        background: url("../assets/image/bg-big.png") no-repeat;
        background-size: cover;
      }
      .right {
        width: 570px;
      }
    }
    /*小于1440*/
    @media only screen and (max-width: 1441px) {
      .left {
        background: url("../assets/image/bg-small.png") no-repeat;
        background-size: cover;
      }
      .right {
        width: 500px;
      }
    }
  }
</style>
