@import 'https://fonts.googleapis.com/css?family=Open+Sans:300,400';

* {
    box-sizing: border-box;
}

*:focus {
    outline: none;
}

body {
    font-family: "Open Sans", "Avenir", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #f9f9f9;
    padding: 50px;
}

.login {
    position: fixed;
    top:0;
    right: 0;
    bottom:0;
    width:50%;
    min-width: 320px;
    background-color: #f9f9f9;
}

.login-screen {
    padding: 20px;
    margin: 0 auto;
    overflow: auto;
}

.login-form {
    text-align: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 330px;
    max-width: 90%;
}

.control-group {
    padding-top: 25px;
    margin-bottom:5px;
    position: relative;
}

label{
    text-transform: uppercase;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1px;
    margin: 0;
    color: #808080;
    padding: 10px 0;
    text-align: left;
    width: 100%;
    position: absolute;
    top:25px;
    left: 5px;
    transition: top 0.5s;
}

input {
    text-indent: 5px;
    font-size: 16px;
    font-weight: 200;
    padding: 10px 0;
    width: 100%;
    transition: border 0.5s, background 0.5s;
    border: 2px solid transparent;
    border-bottom:2px solid #808080;
    background: transparent;
}

input:focus{
    border-bottom: 2px solid #333333;
}

input:focus + label,
input:valid + label {
    top: 0;
    color: #2F2F2F;
    transition: top 0.5s;
}

/*
if a selector is unrecognized, its contents are dropped.
this is a separate (but duplicate) ruleset to cater for browsers (IE11, FF<51) that don't yet support :placeholder-shown
*/
input:not(:placeholder-shown) + label {
    top: 0;
    color: #2F2F2F;
    transition: top 0.5s;
}

.btn {
    border: 2px solid transparent;
    background: #2F2F2F;
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 1px;
    color: #ffffff;
    font-size: 16px;
    line-height: 25px;
    padding: 10px 0;
    text-decoration: none;
    text-shadow: none;
    box-shadow: none;
    transition: 0.25s;
    display: block;
    width: 100%;
    margin: 30px auto 0;
    cursor: pointer;
}

.btn:hover, .btn:focus {
    background-color: #192554;
}

.alert {
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.alert-danger {
    color: #a94442;
    background-color: rgba(242,222,222,0.5);
    border-color: rgba(242,222,222,0.75);
    border-top:4px solid rgb(242,222,222);
}

.alert-success {
    color: #3c763d;
    background-color: rgba(223,240,216,0.5);
    border-color: rgba(223,240,216,0.75);
    border-top:4px solid rgb(223,240,216);
}

.image_panel{
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 50%;
    background: url(cover_image.jpg);
    background-size: cover;
    background-position: center;
}

h1.logo{
    background:url('my-brand.svg') center no-repeat;
    width: 126px;
    height: 42px;
    margin: 0 auto 20px;
    text-indent: 999px;
    white-space: nowrap;
    overflow: hidden;
}

.login-help{
    font-size: 12px;
    padding: 10px 27px;
    color: #2F2F2F;
}
.login-help a {
    color: #2F2F2F;
}

@-webkit-keyframes autofill {
    to {
        color: #666;
        background: transparent;
    }
}

input:-webkit-autofill {
    -webkit-animation-name: autofill;
    -webkit-animation-fill-mode: both;
}
