<template>
  <div class="login-preview mr-16">
    <div class="header">
      <div class="tag flex-between">
        <div class="flex align-center">
          <img src="@/assets/logo.svg" height="24" class="mr-8" />
          <span class="ellipsis">MaxKB111111111111111</span>
        </div>
        <el-icon><Close /></el-icon>
      </div>
    </div>
    <login-layout style="height: 530px">
      <LoginContainer subTitle="欢迎使用 MaxKB 智能知识库" class="login-container">
        <div class="mask"></div>
        <h2 class="mb-24">{{ '普通登录' }}</h2>
        <el-form class="login-form">
          <div class="mb-24">
            <el-form-item>
              <el-input size="large" class="input-item" placeholder="请输入用户名"> </el-input>
            </el-form-item>
          </div>
          <div class="mb-24">
            <el-form-item>
              <el-input
                type="password"
                size="large"
                class="input-item"
                placeholder="请输入密码"
                show-password
              >
              </el-input>
            </el-form-item>
          </div>
        </el-form>
        <el-button size="large" type="primary" class="w-full">登录</el-button>
        <div class="operate-container flex-between mt-12">
          <el-button class="forgot-password" link type="primary"> 忘记密码? </el-button>
        </div>
      </LoginContainer>
    </login-layout>
  </div>
</template>

<script lang="ts" setup></script>

<style lang="scss" scoped>
.login-preview {
  background: #ffffff;
  border-radius: 4px;
  transform-origin: center;
  .login-container {
    transform: translate(0, 0) scale(0.8);
    position: relative;
    .mask {
      position: absolute;
      left: 0;
      top: 0;
      height: 100%;
      width: 100%;
    }
  }

  .header {
    background: #eff0f1;
    height: 38px;
    border-radius: 4px 4px 0 0;
    position: relative;
    .tag {
      width: 180px;
      height: 30px;
      background: #ffffff;
      box-shadow: var(-app-text-color-light-1);
      position: absolute;
      bottom: 0;
      left: 8px;
      border-radius: 4px 4px 0 0;
      padding: 0 8px;
    }
  }
}
</style>
