html, body {
    font-family: Arial, sans-serif;
    color: #16325c;
    font-size: 14px;
    background-color: #F4F6F9;
}

body {
    padding: 0;
    margin: 0 auto;
}

h1 {
    font-size: 24px;
    font-family: Arial, sans-serif;
}

a {
    text-decoration: none;
    transition: all 0.1s;
}

a:hover, a:active {
    color: #005fb2;
}

div, form {
    margin: 0px;
    padding: 0px;
}

.login-error {
    color: red;
    text-align: center;
    padding-bottom: 14px;
}

.wide {
    width: 100%;
}

input, select {
    border: 1px solid #D8DDE6;
    border-radius: 4px;
    background-color: #fff;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
    font-size: 14px;
    transition: all 0.1s;
    padding: 12px;
    -webkit-appearance: none;
}

.input:focus {
    border: 1px solid #1589ee;
    outline: 0;
    box-shadow: 0 0 3px #0070D2;
}

input[type="checkbox"] {
    width: auto;
}

input[type="radio"] {
    margin-right: 12px;
    margin-bottom: 12px;
}

.username {
    display: block;
    margin: 8px 0 16px;
    border-radius: 4px;
}

#wrapper {
    padding: 20px 0px 0px 0px;
    margin-top: 0px;
    margin-bottom: 0px;
    margin-left: auto;
    margin-right: auto;
    max-width: 380px;
    -moz-transition: all 0.25s;
    -webkit-transition: all 0.25s;
    -o-transition: all 0.25s;
    transition: all 0.25s;
}

#logoWrapper {
    height: 100px;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    display: table;
    margin-bottom: 24px;
}

#logo {
    margin-left: auto;
    margin-right: auto;
    vertical-align: middle;
    max-width: 220px;
    border: 0;
}

#header {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 24px;
    font-family: Arial, sans-serif;
}

#wrap {
    min-height: 100%;
}

#main {
    overflow: auto;
    padding-bottom: 48px;
}

/* padding is footer height plus an extra 24px of spacing */

#footer {
    position: relative;
    margin-top: -24px; /* negative value of footer height */
    height: 24px;
    width: 100%;
    clear: both;
    text-align: center;
    font-size: 12px;
}

#content {
    margin: 0px auto;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #D8DDE6;
    color: #16325c;
}

#left {
    height: 100%;
    width: 100%;
    padding: 0;
}

@media only screen and (max-width: 1024px) {
    #left {
        width: 100%;
    }

    #right {
        display: none;
    }
}

@media only screen and (max-width: 480px) {
    #wrapper {
        max-width: 100%;
        margin-left: inherit;
        left: inherit;
        padding-top: 20px !important;
    }

    #content {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    /* font must be at least 16px to prevent auto-zooming on iOS devices */
    input {
        font-size: 16px;
    }
}

@media only screen and (min-height: 1200px) {
    #wrapper {
        padding-top: 240px;
    }
}

@media only screen and (max-height: 1200px) {
    #wrapper {
        padding-top: 180px;
    }
}

@media only screen and (max-height: 1000px) {
    #wrapper {
        padding-top: 140px;
    }
}

@media only screen and (max-height: 900px) {
    #wrapper {
        padding-top: 100px;
    }
}

@media only screen and (max-height: 736px) {
    #wrapper {
        padding-top: 60px;
    }
}

@media only screen and (max-height: 670px) {
    #wrapper {
        padding-top: 40px;
    }
}

@media only screen and (max-height: 610px) {
    #wrapper {
        padding-top: 20px;
    }
}

.mybtn {
    display: inline-block;
    padding: 10px 12px;
    margin-bottom: 0;
    font-size: 14px;
    background-color: #16325C;
    color: #fff;
    font-weight: normal;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    border-radius: 4px;;
}

.mybtn:focus,
.mybtn:active:focus,
.mybtn.active:focus,
.mybtn.focus,
.mybtn:active.focus,
.mybtn.active.focus {
    outline: thin dotted;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
    background-color: #336CC4;
}

.mybtn:hover,
.mybtn:focus,
.mybtn.focus {
    color: #fff;
    text-decoration: none;
    background-color: #336CC4;
}

.mybtn:active,
.mybtn.active {
    background-image: none;
    outline: 0;
    background-color: #336CC4;
    -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
    box-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);
}

.mybtn.disabled,
.mybtn[disabled],
fieldset[disabled] .mybtn {
    pointer-events: none;
    cursor: not-allowed;
    filter: alpha(opacity=65);
    -webkit-box-shadow: none;
    box-shadow: none;
    opacity: .65;
}

#btnLogin {
    position: relative;
    overflow: hidden;
    transition: 0.1s background-color;
    border-radius: 4px;
}

#btnLogin:focus {
    outline: 0 !important;
}

body.logging-in #btnLogin {
    background-color: #ccc !important;
    pointer-events: none;
    cursor: not-allowed;
    animation: fade-in-out 2s cubic-bezier(.18,.59,.33,.79) infinite
}

body.logging-in input {
    background: #fafafa;
    color: #999;
    pointer-events: none;
}

#btnLogin::before {
    content: 'Login';
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: 0.1s top;
}

#btnLogin:after {
    content: 'Logging in...';
    display: flex;
    position: absolute;
    top: -100%;
    left: 0;
    height: 100%;
    width: 100%;
    align-items: center;
    justify-content: center;
    color: #444;
    transition: 0.1s top;
    pointer-events: none;
}

body.logging-in #btnLogin:before {
    top: 100%;
}

body.logging-in #btnLogin:after {
    top: 0;
}

@keyframes fade-in-out {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

.alert {
    padding: 8px 35px 8px 14px;
    margin-bottom: 18px;
    background-color: #fcf8e3;
    border: 1px solid #fbeed5;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    color: #c09853;
}

.alert-info {
    background-color: #d9edf7;
    border-color: #bce8f1;
    color: #3a87ad;
}

.alert-grey {
    background-color: #AAAAAA;
    border-color: #dddddd;
    color: #000;
}