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

*,
*:before,
*:after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    border: none;
}

body {
    background-color: #e97020;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 30px;
    min-height: 100vh;
    font-family: 'Jost', sans-serif;
    padding-top: 50px;
    padding-bottom: 30px;
}

.mainHeading {
    color: white;
    text-align: center;
}

.main {
    width: 90%;
    max-width: 400px;
    height: 500px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 1px 10px 25px #000;
    background-color: #01427a;
}

#chk {
    display: none;
}

.signup {
    position: relative;
    width: 100%;
    height: 100%;
}

label {
    color: #fff;
    font-size: 2.3em;
    justify-content: center;
    display: flex;
    margin: 60px auto 10px auto;
    font-weight: bold;
    cursor: pointer;
    transition: .5s ease-in-out;
}

.form form .field i{
  position: absolute;
  right: 15px;
  top: 70%;
  color: #ccc;
  cursor: pointer;
  transform: translateY(-50%);
}
.form form .field i.active::before{
  color: #333;
  content: "\f070";
}

input {
    max-width: 320px;
    width: 90%;
    height: 40px;
    background: #e0dede;
    justify-content: center;
    display: flex;
    margin: 20px auto;
    padding: 10px;
    border: none;
    outline: none;
    border-radius: 5px;
}

.text-danger {
    color: #dc3545!important;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
}

.alert-alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
}

.alert-alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    
}



button {
    width: 60%;
    height: 40px;
    margin: 10px auto;
    justify-content: center;
    display: block;
    color: #fff;
    background-color: #013461;
    font-size: 1em;
    font-weight: bold;
    margin-top: 20px;
    outline: none;
    border: none;
    border-radius: 5px;
    transition: .2s ease-in;
    cursor: pointer;
}

button:hover {
    background: #002749;
}

.signup button {
    background-color: #e97020;
}

.login {
    height: 460px;
    background: #eee;
    transform: translateY(-180px);
    transition: .8s ease-in-out;
}

.signup {
    transition: .8s ease-in-out;
}

.signup small {
    color: white;
    text-align: center;
    display: block;
    margin: auto;
}

.login label {
    color: #002749;
    transform: scale(.6);
}

#chk:checked~.login {
    transform: translateY(-500px);
    padding-top: 2px;
}

#chk:checked~.login label {
    transform: scale(1);
}

#chk:checked~.signup {
    transform: translateY(-50px);
}

#chk:checked~.signup label {
    transform: scale(.6);
}

.login form a {
    display: block;
    text-align: center;
    margin-top: 30px;
}

.loader{

   display: none;
   align-items: center;
   justify-content: center;
   
 }
 /* Creating the dots */
 .span{
   height: 8px;
   width: 7px;
   margin-right: 7px;
   border-radius: 50%;
   background-color: white;
   animation: loading 1s linear infinite;
 }
 /* Creating the loading animation*/
 @keyframes loading {
   0%{
    transform: translateX(0);
   }
   25%{
    transform: translateX(15px);
   }
   50%{
    transform: translateX(-15px);
   }
   100%{
    transform: translateX(0);
   }
     
 }
.span:nth-child(1){
  animation-delay: 0.1s;
}
.span:nth-child(2){
  animation-delay: 0.2s;
}
.span:nth-child(3){
  animation-delay: 0.3s;
}
.span:nth-child(4){
  animation-delay: 0.4s;
}
.span:nth-child(5){
  animation-delay: 0.5s;
}