<template>
    <div class="wscn-http404-container">
        <div class="wscn-http404">
            <div class="wscn-http404__oops">该账户无权登录！</div>
            <div class="wscn-http404__info">对不起，您的账号无权登录系统。请联系系统管理员进行授权。</div>
            <el-button type="primary" @click="go">返回重新登录</el-button>
        </div>
    </div>
</template>

<script setup>
import { useUserStore } from "@/store/user";

function go() {
    useUserStore().logOut().then(() => location.href = "/");
}
</script>

<style lang="scss" scoped>
@keyframes slideUp {
  0% {
    transform: translateY(60px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.wscn-http404-container {
  transform: translate(-50%, -50%);
  position: absolute;
  top: 40%;
  left: 50%;

  .wscn-http404 {
    overflow: hidden;
    width: 1200px;
    padding: 30px 50px;
    text-align: center;

    .wscn-http404__oops {
      margin-bottom: 20px;
      line-height: 40px;
      font-size: 32px;
      font-weight: bold;
      color: var(--el-color-primary);
      opacity: 0;
      animation-name: slideUp;
      animation-duration: 0.5s;
      animation-fill-mode: forwards;
    }

    .wscn-http404__info {
      margin-bottom: 30px;
      line-height: 21px;
      font-size: 13px;
      color: var(--el-color-info);
      opacity: 0;
      animation-name: slideUp;
      animation-duration: 0.5s;
      animation-delay: 0.2s;
      animation-fill-mode: forwards;
    }

    .el-button {
      width: 110px;
      height: 36px;
      padding: 0;
      border: none;
      border-radius: 100px;
      line-height: 36px;
      opacity: 0;
      animation-name: slideUp;
      animation-duration: 0.5s;
      animation-delay: 0.3s;
      animation-fill-mode: forwards;
    }
  }
}
</style>