/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 15/10/2021, 12:43:11 PM
    Author     : Luis
*/

body {
  font-family: "Open Sans", sans-serif;
  height: 100vh;
  background: url("https://i.imgur.com/HgflTDf.jpg") 50% fixed;
  /*background: rgba(19, 42, 70, 0.6);*/
  background-size: cover;
}

@keyframes spinner {
  0% { transform: rotateZ(0deg); }
  100% { transform: rotateZ(359deg); }
}

* {
  box-sizing: border-box;
}

.backLogin {
    position:static;
  display: flex;
  align-items: center;
  flex-direction: column; 
  width:100%;
  height:100vh;
  min-height: 100%;
   min-width: 50%;
  padding: auto;

background: rgba(19, 42, 70, 0.6);

}
.login-page #back{
  position: absolute;
  top:0;
  left:0;
  width:100%;
  height:100vh;
  background: url("https://i.imgur.com/HgflTDf.jpg") 50% fixed;

  background-size:cover;
  overflow:hidden;
  z-index:-1;

}


.login {
 
   align-items: center;
  border-radius: 10px 10px 10px 10px;
  padding: 20px 20px 20px 20px;
  width: 50%;
  max-width: 430px;
 margin-top: 230px;
 border-top: 0;
  background: #ffffff; 
  position: relative;
/*  padding-bottom: 10px;*/
  box-shadow: 7px 7px 9px rgba(0,0,0,0.6);
  
  &.loading {
    button {
      max-height: 100%;
      padding-top: 50px;
      .spinner {
        opacity: 1;
        top: 40%;
      }
    }  
  }
  
  &.ok {
    button {
      background-color: #1D4D74;
      .spinner{
        border-radius: 0;
        border-top-color: transparent;
        border-right-color: transparent;
        height: 20px;
        animation: none;
        transform: rotateZ(-45deg);
      }
    }
  }
  
  input {
    display: block;
    padding: 15px 10px;
    margin-bottom: 10px;
    width: 100%;
    border: 1px solid #ddd;
    transition: border-width 0.2s ease;
    border-radius: 2px;
    color: #ccc;
    
    &+ i.fa {
        color: #fff;
      font-size: 1em;
      position: absolute;
      margin-top: -47px;
      opacity: 0;
      left: 0;
      transition: all 0.1s ease-in;
    }
    
    &:focus {
      &+ i.fa {
        opacity: 1;
        left: 30px;
      transition: all 0.25s ease-out;
      }
      outline: none;
      color: #444;
      border-color: #1D4D74;
      border-left-width: 35px;
    }
    
  }
  
  a {
   font-size: 0.8em;   
    color: #1A4F7A;
    text-decoration: none;
  }
  
  .title {
    color: #193960;
    font-size: 1.9em;
    font-weight: bold;
    margin: 10px 0 30px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
  }
  
  button {
    width: 100%;
    height: 100%;
    padding: 10px 10px;
    background: #1D4D74;
    color: #fff;
    display: block;
    border: none;
    margin-top: 20px;
    position: absolute;
    left: 0;
    bottom: 0;
    max-height: 60px;
    border: 0px solid rgba(0,0,0,0.1);
  border-radius: 0 0 2px 2px;
    transform: rotateZ(0deg);
    
    transition: all 0.1s ease-out;
      border-bottom-width: 7px;
    
    .spinner {
      display: block;
      width: 40px;
      height: 40px;
      position: absolute;
      border: 4px solid #ffffff;
      border-top-color: rgba(255,255,255,0.3);
      border-radius: 100%;
      left: 50%;
      top: 0;
      opacity: 0;
      margin-left: -20px;
      margin-top: -20px;
      animation: spinner 0.6s infinite linear;
      transition: top 0.3s 0.3s ease,
                opacity 0.3s 0.3s ease,
                border-radius 0.3s ease;
      box-shadow: 0px 1px 0px rgba(0,0,0,0.2);
    }
    
  }
  
    &:not(.loading) button:hover {
      box-shadow: 0px 1px 3px #1D4D74;
    }
    &:not(.loading) button:focus {
      border-bottom-width: 4px;
    }
    
  
}

footer {
  display: block;
  padding-top: 50px;
  text-align: center;
  color: #ddd;
  font-weight: normal;
  text-shadow: 0px -1px 0px rgba(0,0,0,0.2);
  font-size: 1.0em;
  a, a:link {
    color: #fff;
    text-decoration: none;
  }
}

