body {
    font-family: "Open Sans", sans-serif;
    height: 100vh;
    /*background: url("../Images/background.jpg") 50% fixed;
    background-size: cover;*/
    display: flex;
}

.bg {
    /* The image used */
    background: linear-gradient( rgba(2, 43, 9, 0.85), rgba(2, 43, 9, 0.85) ), url("../Images/background.jpg");
    /*background: rgba(61, 24, 8, 0.85);*/
    background-size: cover;
    /* Set rules to fill background */
    min-height: 100%;
    /*min-width: 1024px;*/
    /* Set up proportionate scaling */
    width: 100%;
    /* Set up positioning */
    position: fixed;
    top: 0;
    left: 0;
    animation-name: scale-down;
    animation-duration: 20s;
}

@keyframes scale-down {
    from {
        transform: scale(1.3,1.3);
    }

    to {
        transform: scale(1.0,1.0);
    }
}

@keyframes spinner {
    0% {
        transform: rotateZ(0deg);
    }

    100% {
        transform: rotateZ(359deg);
    }
}

* {
    box-sizing: border-box;
}

.wrapper {
    top: -50%;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    padding: 20px;
    background: rgba(16, 163, 42, 0.85);
    margin: auto;
}

.login {
    border-radius: 2px 2px 5px 5px;
    padding: 10px 20px 20px 20px;
    width: 90%;
    max-width: 320px;
    background: #cccccc;
    position: relative;
    padding-bottom: 80px;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.3);
}

.login.loading button {
    max-height: 100%;
    padding-top: 50px;
}

.login.loading button .spinner {
    opacity: 1;
    top: 40%;
}

.login.ok button {
    background-color: #8bc34a;
    z-index: 10;
}

.login.ok button .spinner {
    border-radius: 0;
    border-top-color: transparent;
    border-right-color: transparent;
    height: 20px;
    animation: none;
    transform: rotateZ(-45deg);
}

.login.error button {
    background-color: #f91d1d;
    z-index: 10;
}

.login.error button .spinner {
    border-radius: 0;
    height: 20px;
    transform: rotateZ(-45deg);
}

.login.notification button {
    background-color: #679a34;
    z-index: 10;
}

.login.notification button .spinner {
    border-radius: 0;
    height: 20px;
    transform: rotateZ(-45deg);
}

.login 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;
}

.login input + i.fa {
    color: #fff;
    font-size: 1em;
    position: absolute;
    margin-top: -40px;
    opacity: 0;
    left: 0;
    transition: all 0.1s ease-in;
}
.login .show-pass {
    float: right;
    margin-right: 5px;
    margin-top: -40px;
    position: relative;
    /*z-index: 2;*/
}
.login input:focus {
    outline: none;
    color: #444;
    border-color: #679a34;
    border-left-width: 35px;
}

.login input:focus + i.fa {
    opacity: 1;
    left: 30px;
    transition: all 0.25s ease-out;
}

.login a {
    font-size: 0.8em;
    color: #679a34;
    text-decoration: none;
}

.login .title {
    color: #444;
    font-size: 1.2em;
    font-weight: bold;
    margin: 10px 0 30px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    text-align: center;
}

.login button {
    width: 100%;
    height: 100%;
    padding: 10px 10px;
    background: #679a34;
    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;
}

.login button .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);
}

.login:not(.loading) button:hover {
    box-shadow: 0px 1px 3px #679a34;
}

.login:not(.loading) button:focus {
    border-bottom-width: 4px;
}


.signup {
    border-radius: 2px 2px 5px 5px;
    padding: 10px 20px 20px 20px;
    width: 90%;
    max-width: 320px;
    background: #cccccc;
    position: relative;
    padding-bottom: 80px;
    box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.3);
}

.signup.loading button {
    max-height: 100%;
    padding-top: 50px;
}

.signup.loading button .spinner {
    opacity: 1;
    top: 40%;
}

.signup.ok button {
    background-color: #8bc34a;
    z-index: 10;
}

.signup.ok button .spinner {
    border-radius: 0;
    border-top-color: transparent;
    border-right-color: transparent;
    height: 20px;
    animation: none;
    transform: rotateZ(-45deg);
}

.signup.error button {
    background-color: #f91d1d;
    z-index: 10;
}

.signup.error button .spinner {
    border-radius: 0;
    height: 20px;
    transform: rotateZ(-45deg);
}

.signup.notification button {
    background-color: #ff9400;
    z-index: 10;
}

.signup.notification button .spinner {
    border-radius: 0;
    height: 20px;
    transform: rotateZ(-45deg);
}

.signup 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;
}

.signup input + i.fa {
    color: #fff;
    font-size: 1em;
    position: absolute;
    margin-top: -40px;
    opacity: 0;
    left: 0;
    transition: all 0.1s ease-in;
}

.signup input:focus {
    outline: none;
    color: #444;
    border-color: #F0881F;
    border-left-width: 35px;
}

.signup input:focus + i.fa {
    opacity: 1;
    left: 30px;
    transition: all 0.25s ease-out;
}

.signup a {
    font-size: 0.8em;
    color: #F0881F;
    text-decoration: none;
}

.signup .title {
    color: #444;
    font-size: 1.2em;
    font-weight: bold;
    margin: 10px 0 30px 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    text-align: center;
}

.signup button {
    width: 100%;
    height: 100%;
    padding: 10px 10px;
    background: #F0881F;
    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;
}

.signup button .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);
}

.signup:not(.loading) button:hover {
    box-shadow: 0px 1px 3px #F0881F;
}

.signup: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: 0.8em;
    z-index:1;
}

footer a, footer a:link {
    color: #fff;
    text-decoration: none;
}
