<template>
  <div class="container">
    <div class="logo">
      <!-- <img alt="logo" :src="carouselItem.image" style="height: 50px; border-radius: 50%" /> -->
      <div class="logo-text">Easy life Platform</div>
    </div>


    <div class="banner">
      <div  class="carousel-item">
        <div class="carousel-title">{{ carouselItem.slogan }}</div>
        <div class="carousel-sub-title">{{ carouselItem.subSlogan }}</div>
        <img class="carousel-image" :src="carouselItem.image" />
      </div>
    </div>

    <div class="content">
      <div class="content-inner">
        <LoginForm />
      </div>
    </div>
  </div>
</template>


<script setup>
import { onMounted } from "vue"
import LoginForm from './login-form.vue'

import bannerImage from '@/assets/images/login-banner.png'
const  carouselItem = {
  slogan: 'Easy life Platform',
  subSlogan: 'Technology serves life',
  image: bannerImage,
}
</script>

<style scoped lang="less">
.container {
  display: flex;
  height: 100vh;
  min-width: 1000px;
  flex-direction: row;
  .banner {
    width: 550px;
    background: linear-gradient(163.85deg, #1d2129 0%, #00308f 100%);
  }

  .content {
    position: relative;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    padding-bottom: 40px;
    background: @bg_color_2;
  }

  .footer {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
  }
}
.logo {
  position: fixed;
  top: 24px;
  left: 22px;
  z-index: 1;
  display: inline-flex;
  align-items: center;

  &-text {
    margin-right: 4px;
    margin-left: 4px;
    color: @bg_color_6;
    font-size: 20px;
  }
}

.banner {
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel {
  height: 100%;

  &-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  &-title {
    color: @bg_color_6;
    font-weight: 500;
    font-size: 20px;
    line-height: 28px;
  }

  &-sub-title {
    margin-top: 8px;
    color: @text_color_2;
    font-size: 14px;
    line-height: 22px;
  }

  &-image {
    width: 320px;
    margin-top: 30px;
  }
}
</style>