@import url('https://fonts.googleapis.com/css?family=Raleway:400,700');

*,*:before,*:after{box-sizing:border-box}

body{
  min-height:100vh;
  width: 100vw;
  height: 100vh;
  font-family: 'Raleway', sans-serif;
}

.container{
  position:absolute;
  width:100%;
  height:100%;
  overflow:hidden;
  
  &:hover,&:active{
    .top, .bottom{
      &:before, &:after{
        margin-left: 200px;
        transform-origin: -200px 50%;
        transition-delay:0s;
      }
    }
    
    .box{
      opacity:1;
    }

    .logo {
     /* display: none;
     transition-delay:0.2s; */
     opacity: 0;
     transition: opacity 180ms ease-out;
     pointer-events: none;
     /* transition-delay: 0.3s; */
    }

  }
}

.top{
  &:before{
    content:'';
    display:block;
    position:absolute;
    width:200vmax;
    height:200vmax;
    top:50%;left:50%;
    margin-top:-100vmax;
    transform-origin: 0 40%;
    transition:all 0.5s cubic-bezier(0.445, 0.05, 0, 1);
    z-index:10;
    opacity:0.65;
    transition-delay:0.2s;
  }
}

.top{
  &:after{
    content:'';
    display:block;
    position:absolute;
    width:200vmax;
    height:200vmax;
    top:50%;left:50%;
    margin-top:-100vmax;
    transform-origin: 0 40%;
    transition:all 0.5s cubic-bezier(0.445, 0.05, 0, 1);
    z-index:10;
    opacity:0.65;
    transition-delay:0.2s;
  }
}

.bottom{
  &:before{
    content:'';
    display:block;
    position:absolute;
    width:200vmax;
    height:200vmax;
    top:50%;left:50%;
    margin-top:-100vmax;
    transform-origin: 0 60%;
    transition:all 0.5s cubic-bezier(0.445, 0.05, 0, 1);
    z-index:10;
    opacity:0.65;
    transition-delay:0.2s;
  }
}

.bottom{
  &:after{
    content:'';
    display:block;
    position:absolute;
    width:200vmax;
    height:200vmax;
    top:50%;left:50%;
    margin-top:-100vmax;
    transform-origin: 0 60%;
    transition:all 0.5s cubic-bezier(0.445, 0.05, 0, 1);
    z-index:10;
    opacity:0.65;
    transition-delay:0.2s;
  }
}

.top{
  &:before{transform:rotate(45deg);background:black;}
  &:after{transform:rotate(135deg);background:black;}
}

.bottom{
  &:before{transform:rotate(-45deg);background:grey;}
  &:after{transform:rotate(-135deg);background:grey;}
}

.center{
  position:absolute;
  width:400px;
  height:400px;
  top:50%;left:50%;
  margin-left:-200px;
  margin-top:-200px;
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding:30px;
  opacity:1;
  transition:all 200ms cubic-bezier(0.445, 0.05, 0, 1);
  transition-delay:0s;
  color:#333;
  
  input{
    width:100%;
    padding:15px;
    margin:5px;
    border-radius:1px;
    border:1px solid #ccc;
    font-family:inherit;
  }
}

.logo, #logo {
   width : 400px;
   padding : 40px;
   position: absolute;
   top : 50%;
   left : 50%;
   transform: translate(-50%,-50%);
   background: transparent;
   text-align: center;
   opacity: 1;
   transition: opacity 1.5s ease-in;
   transition-property: opacity;
   will-change: opacity;
   z-index: 11;
   /* display: block; */
   margin-left: auto;
   margin-right: auto;
}

.box{
   width : 400px;
   padding : 40px;
   /* position: relative;
   z-index: 20; */
   position: absolute;
   top : 50%;
   left : 50%;
   transform: translate(-50%,-50%);
   background: #FFF;
   text-align: center;
   opacity: 0;
}

.box h1{
   color:black;
   text-transform: uppercase;
   font-weight: 500;
}

.box h2{
   color:red;
   font-weight: 20;
}

.box input[type="text"], .box input[type="password"]{
   background: none;
   display:block;
   margin:20px auto;
   text-align: center;
   border: 2px solid black;
   padding: 14px 10px;
   width:200px;
   outline:none;
   color:black;
   border-radius:  24px;
   transition: 0.20s;
   font-size: 15px;
}

.box input[type="text"]:focus, .box input[type="text"]:hover, .box input[type="password"]:focus, .box input[type="password"]:hover{
   width: 250px;;
   background: black;
   color:white;
}

.box button[type="submit"]{
   background: none;
   display:block;
   margin:20px auto;
   text-align: center;
   border: 2px solid black;
   padding: 14px 40px;
   width:200px;
   outline:none;
   color:black;
   border-radius:  24px;
   transition: 0.25s;
   cursor: pointer;
   font-size: 15px;
}

.box button[type="submit"]:hover{
   width: 250px;
   background: black;
   color: white;
}
