body {
  font-family: Arial, sans-serif;
  background-color: lightgrey;
}

.swap {
  height: 100%;
  perspective: 1000px!important;
}

.swap > div {
  transition: 300ms transform, 300ms opacity;
}

.box {
  width: 400px;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
     -moz-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
       -o-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  padding: 40px;
  background: rgba(0,0,0,.8);
  box-sizing: border-box;
  box-shadow: 0 15px 25px rgba(0,0,0,.4);
  border-radius: 10px;
}

.box h1, h2 {
  margin: 0 0 30px;
  padding: 0;
  color: #fff;
  text-align: center;
}

h3 {
  font-size: 18px;
  margin: 0 0 30px;
  padding: 0;
  color: #fff;
  text-align: center;
}

.passwords {
  font-size: 17px!important;
  padding: 12px 0!important;
}

.buttons {
  font-size: 16px;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  background: rgb(100, 100, 100);
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 5px;
}

.buttons:active {
  transform: translateY(1px);
}

.box .inputBox {
  position: relative;
}

.box .inputBox input{
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  color: #fff;
  margin-bottom: 30px;
  border-bottom: 1px solid #fff!important;
  border: none;
  outline: none;
  background: transparent;
}

.box .inputBox label {
  opacity: 1;
  position: absolute;
  top: 0;
  left: 3px;
  padding: 8px 0;
  font-size: 20px;
  color: #fff;
  pointer-events: none;
  -webkit-transition: .4s;
     -moz-transition: .4s;
      -ms-transition: .4s;
       -o-transition: .4s;
          transition: .4s;
  -webkit-transition: opacity 300ms ease;
     -moz-transition: opacity 300ms ease;
      -ms-transition: opacity 300ms ease;
       -o-transition: opacity 300ms ease;
          transition: opacity 300ms ease;
}

.box .inputBox input:focus ~ label,
.box .inputBox input:valid ~ label
{
/*  top: -18px;
  left: 0;
  color: rgb(255, 100, 100);
  font-size: 12px;*/
  opacity: 0!important;
}


#gotosignin {
  display: inline;
  margin: 0;
  color: #fff;
}

#gotosignup {
  display: inline;
  margin: 0;
  color: #fff;
}

#gotosignin:hover {
  cursor: pointer;
}

#gotosignup:hover {
  cursor: pointer;
}


.swap #signup:not(.active) {
  transform: translate(-50%, -50%) rotateY(-180deg);
  opacity: 0;
  z-index: -100;
  visibility: collapse;
}

.swap #signin:not(.active) {
  transform: translate(-50%, -50%) rotateY(180deg);
  opacity: 0;
  z-index: -100;
  visibility: collapse;
  
}

.autoLogin {
  display: inline;
  margin: 0;
  color: #fff;
}

/*.box #signup #gotosignin {
  float: right;
}

.box #signin #gotosignup {
  float: left;
}
*/
