﻿
*, *::after, *::before {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

html {
    height: 100%;
    font-size: 65.2%;
    box-sizing: border-box;
    font-family: Montserrat, sans-serif;
    -webkit-font-smoothing: antialiased;
    font-weight: 400;
}

button svg {
    vertical-align: middle;
}

body {
    height: 100%;
    background: #e9ebee;
    color: #1d2129;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    perspective: 1500px;
}

h1 {
    font-weight: 700;
    font-size: 30px;
    text-align: center;
    margin-bottom: 15px;
}

.version {
    position: absolute;
    bottom: 1em;
    right: 2em;
    border-radius: 40px;
    background: #ff4b2b;
    color: #fff;
    font-size: 1em;
    font-weight: bold;
    padding: .8em 2em;
    letter-spacing: 1px;
    transition: transform 80ms ease-in;
}

form input {
    background: #eee;
    border: none;
    padding: 12px 15px;
    margin: 8px 0;
    width: 100%;
    font-size: 18px;
}

span {
    color: #333;
    font-size: 1.4em;
    display: inline-block;
    margin: 15px auto;
    font-weight: 100;
}

    span.remember {
        float: left;
    }

        span.remember::before {
            content: "";
            display: inline-block;
            width: 1em;
            height: 1em;
            border: 2px solid #999;
            vertical-align: top;
            margin-right: 4px;
        }



    span.forget {
        float: right;
    }

    span.clearfix {
        clear: both;
        display: table;
    }

    span.loginwith {
        display: block;
        width: 100%;
        margin-top: 1em;
        white-space: nowrap;
        overflow: hidden;
        display: flex;
        justify-content: center;
        align-items: center;
    }

        span .loginwith::before {
            content: "";
            display: inline-block;
            width: 42%;
            height: 1px;
            background: #aaa;
            vertical-align: middle;
            margin-right: 5%;
        }

        span.loginwith::after {
            content: "";
            display: inline-block;
            width: 45%;
            height: 1px;
            background: #aaa;
            vertical-align: middle;
            margin-left: 5%;
        }



    span.copy {
        display: block;
        position: absolute;
        bottom: 0;
        font-size: 1em;
    }

button {
    display: block;
    margin: 1em auto;
    border-radius: 40px;
    border: 1px solid #ff4b2b;
    background: #ff4b2b;
    color: #2a3864;
    font-size: 1.2em;
    font-weight: bold;
    padding: .8em 2em;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
}

    button:hover {
        cursor: pointer;
    }

    button:active {
        transform: scale(.95);
    }

    button:focus {
        outline: none;
    }

#container {
    width: 95%;
    max-width: 1200px;
    height: 700px;
    position: relative;
    border-radius: 20px;
    box-shadow: 0 14px 28px -10px rgba(0, 0, 0, .1), 0 10px 10px -10px rgba(0, 0, 0, .02);
    transform-style: preserve-3d;
}

    #container > div {
        position: absolute;
        width: 50%;
        min-width: 350px;
        height: 100%;
        top: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

.content {
    width: 100%;
    padding: 2em 4em;
    text-align: center;
}

    .content p {
        font-size: 20px;
    }

.login {
    left: 0;
    background: #FAFAFA;
    border-radius: 20px 0 0 20px;
}

    .login button {
        border-radius: 0px;
        width: 100%;
        color: white;
    }

    .login svg {
        margin: 1em;
        stroke: #999;
    }

.page {
    right: 0;
    color: #fff;
    border-radius: 0 20px 20px 0;
    transform-origin: left center;
    transition: animation 1s linear;
}

    .page button {
        border-color: #2a3864;
        background: white;
    }

    .page p {
        margin: 2em auto;
    }



.front {
    background: #2a3864;
    z-index: 3;
}




.active .front {
    animation: rot-front .6s ease-in-out normal forwards;
}


.close .front {
    animation: close-rot-front .6s ease-in-out normal forwards;
}

.active .login .content {
    animation: hide .7s ease-in-out normal forwards
}

.close .login .content {
    animation: show .7s ease-in-out normal forwards
}

.input-group::after {
    content: '*';
    position: absolute;
    top: 3px;
    left: 46px;
    color: #f00
}

.input-group {
    position: relative;
}

.page .home {
    border-color: #2a3864;
    background: white;
    text-decoration: none;
}

.home {
    display: block;
    margin: 1em auto;
    border-radius: 40px;
    border: 1px solid #ff4b2b;
    background: #ff4b2b;
    color: #2a3864;
    font-size: 1.2em;
    font-weight: bold;
    padding: 0.8em 2em;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
    width: 300px;
}

    .home svg {
        vertical-align: middle;
    }

.errorMessage {
    margin-top: -20px;
    margin-bottom: -10px;
}

 .errorMessage span {
     color: red;
     font-size: medium;
 }

.field-validation-error {
    display: block;
}

.error {
    color: red;
    font-size: large;
}

.success {
    color: #10ee10;
    font-size: large;
}
