html { background: #ffffff; }

body { margin: 0; }
* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

input:hover,
input:focus {
  border: none !important;
}

main {
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%,-50%);
     -moz-transform: translate(-50%,-50%);
          transform: translate(-50%,-50%);      
}

h1 { 
  font-size: 24px !important;
  color: #ffffff !important;
  padding: 22px 0;
  margin: 0;
}

#heading {
  margin-left: auto;
  margin-right: auto; 
  width: 350px;
  text-align: center;
  background-color: #DD4343;
  border-radius: 5px 5px 0 0;
}

#heading:after {
  width: 0; height: 0;
  content: '';
  position: absolute;
  left: 50%;
  margin-left: -15px;
  border-left: 15px solid transparent;
  border-right: 15px solid transparent;
  border-top: 14px solid #DD4343;
  margin-top: -1px;   
}


#logo {
  border: 0px;
  margin: 20px auto;
  text-align: center;
}

#auth {
  width: 350px;
  margin-left: auto;
  margin-right: auto;
  border-left: 2px solid #e2e2e2;
  border-right: 2px solid #e2e2e2;
  border-bottom: 2px solid #e2e2e2;
  border-radius: 0 0 5px 5px;        
  padding: 20px 30px;
  background-color: #FFF;
}

.mat-group { margin-bottom: 20px; position: relative; }

.mat-group:after,
.mat-group:before {
  content: "";
  position: absolute;
  display: block;
  width: 100%;
  height: 2px;
  background-color: #cacaca; 
  bottom: 0;
  left: 0;
  -webkit-transition: all 0.5s;
     -moz-transition: all 0.5s;
          transition: all 0.5s;
}

.mat-group::after {
  background-color: #7e7e7e;
  -webkit-transform: scaleX(0);
     -moz-transform: scaleX(0);
          transform: scaleX(0);
}

.mat-group:nth-child(2) { margin-bottom: 30px; }

.mat-label {
  width: 100%;  
  display: block;
  font-size: 16px;
  color: #cacaca;
  -webkit-transform: translateY(25px);
     -moz-transform: translateY(25px);  
          transform: translateY(25px);     
  -webkit-transition: all 0.5s;
     -moz-transition: all 0.5s;
          transition: all 0.5s;     
}

.mat-input {
  position: relative;
  background: transparent;
  width: 100%;
  border: none;
  outline: none;
  padding: 11px 0;
  font-size: 16px;
}

.is-active::after {
  -webkit-transform: scaleX(1);
     -moz-transform: scaleX(1);
          transform: scaleX(1);
}

.is-active .mat-label { color: #7e7e7e; }

.is-completed .mat-label {
  font-size: 14px;
  -webkit-transform: translateY(0);
     -moz-transform: translateY(0);
          transform: translateY(0);
}

#auth input[type="submit"] { 
  width: 100%; height: 50px;
  font-size: 16px;
}

#error { text-align: center; margin-top: 6em; }

@media screen and (max-width: 480px) {
  #auth, #heading { width: 280px; }
  #error { width: 100%; }
}

#croixMalte {
  position: fixed;
  bottom: 10px;
  right: 15px;
}

/*
 * Alert messages
 */
div.alert {
  border-radius: 4px;
  border: 1px solid transparent;
  padding: 10px;
  margin-bottom: .5em;
  display: none;
}

div.alert > p {
  margin: 0px; padding: 0px;
} 

div.alert-error {
  border-color: #ebccd1;
  background-color: #f2dede;
  color: #a94442;
}

/* vim: set expandtab tabstop=4 shiftwidth=4 smarttab tw=80 si fenc=utf8 : */
