[class^="bg-"] {
    width: 100%;
    height: 100%;
    background-size: cover;
    position: fixed;
    -webkit-transition: background-image 0.2s ease-in-out;
    transition: background-image 0.2s ease-in-out;
}

body {
    color: #fff;
    background: none;
    font-family: 'Source Sans Pro', sans-serif;
}

/* FIXME use jquery for better browsers support not working on safari iphone 4*/
.vertical-center {
    min-height: 100%;  /* Fallback for browsers do NOT support vh unit */
    min-height: 100vh; /* These two lines are counted as one :-)       */
    display: flex;
    align-items: center;
}

.logo {
    max-width: 100%;
    max-height: 80px;
    margin-bottom: 20px;
}

.form-header {
    margin-left: -15px;
    margin-right: -15px;
    overflow: hidden;
    text-align: left;
    position: relative;
    background: rgba(11, 27, 20, 0.5);
    color: #fff;
}

.form-header .glyphicon{
    position: absolute;
    top: 7px;
    right: 7px;
    font-size: 30px;
    color: #fff;
    text-align: right;
    opacity: 0.5;
}

.form-header h2 {
    margin: 0px;
    text-align: center;
    line-height: 44px;
    font-size: 24px;
    font-weight: bold;
}

.form-content .glyphicon {
    font-size: 20px;
    line-height: 16px;
}

.form-content {
    padding: 25px 5px 30px 5px;
    margin-left: -15px;
    margin-right: -15px;
    background: #444;
    background: rgba(11, 27, 20, 0.7);
    text-align: left;
}

@media (min-width: 768px) { /* @ .-md */
    .form-content {
        padding: 25px 25px 30px 25px;
    }

    .form-header,
    .form-content {
        margin-left: 0px;
        margin-right: 0px;
    }

    .form-content .btn {
        /* Override left margin from bootstrap */
        margin-left: 0px;
    }
}

.form-control{
    display: inline-block;
    background-color: white;
    border-radius: 0 0 0 0;
    border: none;
    outline: none;
    color: #000000;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 28px;
    height: 40px;
    padding: 0px 12px;
}

.input-icon {
    position: relative;
}
.input-icon input {
    padding-left: 45px;
}

.input-icon i {
    position: absolute;
    padding: 10px 12px;
    pointer-events: none;
    color: #586A90;
}

.choiceBtn,
.customBtn {
    height: 60px;
    border: none;
    width: 100%;
    outline: none;
    line-height: 60px;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 34px;
    font-weight: bold;
    color: #eee;
    border-radius: 3px;
    cursor: pointer;
    opacity: 0.8;
    transition: .3s opacity linear;
}

.connect,
.choiceBtn {
    background: #586A90;
}

.quit,
.logout {
    background: #c9342f;
}

.choiceBtn:hover, .choiceBtn:focus, .choiceBtn:active,
.customBtn:hover, .customBtn:focus, .customBtn:active {
    color: #eee;
    background: #687AA0;
    opacity: 1;

}

.quit:hover, .quit:focus, .quit:active,
.logout:hover, .logout:focus, .logout:active {
    background: #d9443f;
}

.choice-group {
    text-align: center;
}

.connect:focus, .connect:active {
    background: #2196f3;
}

.form-target {
    width: 100%;
}

.form-target .btn{
    /* width: 50%; */
    color: #fff;
    background-color: rgba(255,255,255,0.5);
    border-radius: 0;
    font-size: 22px;
    font-size: 24px;
    font-weight: bold;
}

.form-target .btn.active {
    background-color: #708090;
}

/** effects **/
#main {
    transition: 1s filter ease;
    -webkit-transition: 1.5s -webkit-filter ease;
    -moz-transition: 1.5s -moz-filter ease;
    -ms-transition: 1.5s -ms-filter ease;
    -o-transition: 1.5s -o-filter ease;
}

.effect {
    -webkit-filter: blur(3px) grayscale(1);
    -moz-filter: blur(3px) grayscale(1);
    -o-filter: blur(3px) grayscale(1);
    -ms-filter: blur(3px) grayscale(1);
    filter: blur(3px) grayscale(1);
}

#user {
    font-size: 20px;
}

#user span {
    font-weight: bold;
}

.form-actions {
    width: 100%;
}

.form-actions .customBtn {
    border-radius: 0;
}

.form-actions .quit,
.form-actions .connect{
    width: 100%;
}
.form-actions.logged .connect{
    width: 80%;
}

.form-actions a.quit,
.form-actions.logged a.connect {
    display: inline-block;
    vertical-align: top;
    text-align: center;
}

.form-actions .logout{
    width: 20%;
    display: none;
}
.form-actions.logged .logout{
    display: inline-block;
    vertical-align: top;
    text-align: center;
}

.form-actions.logged .logout i{
    line-height: 40px;
}

.form-actions .choiceBtn {
    margin: 10px;
    width: 50%;
}

select.highlight option {
    color: #A19D9D;
}

select.highlight option.highlight {
    color: #000;
}

#toggle-advanced, #lostpass{
    color: #d9edf7;
    font-weight: bold;
    text-decoration: underline;
    margin: -10px 0 5px 0;
}
#toggle-advanced span:nth-child(2) {
    display:none;
}
#toggle-advanced.advanced span {
    display: inline;
}
#toggle-advanced.advanced span:nth-child(1) {
    display: none;
}

#login-box {
    width: 100%;
    margin-left: 0px;
    text-align: center;
}

/* TODO replace with mixin
 * @include media-breakpoint-down(lg) { ... } */
@media (min-width: 992px) { /* @ .-lg */
    #login-box {
        width: 80% !important;
        margin-left: 10% !important;
    }
}

/* TODO replace with mixin
 * @include media-breakpoint-down(xl) { ... } */
@media (min-width: 1200px) { /* @ .-xl */
    #login-box {
        width: 60% !important;
        margin-left: 20% !important;
    }
}

/* @media (min-width: 768px) */
