<template>
  <div class="LoginContainer">
    <video ref="vidage" id="vidage" class="vidage-video" preload="metadata" loop autoplay muted>
      <source src="./static/videos/bg.webm" type="video/webm">
      <source src="./static/videos/bg.mp4" type="video/mp4">
    </video>
    <LoginForm style="z-index: 1;" />
  </div>
</template>

<script>
import Vidage from './static/vidage'
import LoginForm from '../../components/LoginForm'
export default {
  name: 'FireLogin',
  components: {
    LoginForm,
  },
  mounted () {
    const v = new Vidage(this.$refs.vidage)
    console.log(v)
  },
}
</script>

<style scoped lang="less">
.LoginContainer {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #241717;

  #vidage {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
  }
}
</style>
