
html {
    overflow: auto;
}

body {

    /*
      Background case (1): Use a gradient
    */
    background-image: none;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#595C64', endColorstr='#1B1B1C');
    background: -webkit-linear-gradient(top, #595C64, #1B1B1C);
    background: -moz-linear-gradient(top, #595C64, #1B1B1C);
    background: -o-linear-gradient(top, #595C64, #1B1B1C);
    background: -ms-linear-gradient(top, #595C64, #1B1B1C);
    background: linear-gradient(top, #595C64, #1B1B1C);

    /*
      Background case (2): Use an image
    *//*
    background-image: url("/server/static/login/img/background1.jpg");
    background-image: url("/server/static/login/img/background2.jpg");
    background-image: url("/server/static/login/img/background3.jpg");
    background-size: cover;
    */
}

#main-container {
    display: none;
}

.loginHeader img {
    width: 100%;
}

/**
 * GOOGLE BUTTON
 **/
.abcRioButtonContentWrapper > span {

    /* center login text (Google icon's size = 34px) */
    padding-right: 34px;
}

#oauth2-google {
    margin: 0!important;
}

#oauth2-google > div{
    width: 100%!important;
    background-color: #e3e3e3;
}

/**
 * BACKGROUND VIDEO
 **/
.video-container {
    position: relative;
    bottom: 0%;
    left: 0%;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background: #000;
    text-align: center;
}

.video-container video source {
    /*width: 100%;*/
    /*height: 100%;*/
}

.video-container video {
    z-index: 0;
    bottom: 0;
}
.video-container video.fillHeight {
    height:100%;
}


.video_overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    margin: auto;
    background-image : url("/server/static/login/img/overlay.png");
    background-repeat: repeat;
    z-index: 10;
}

/**
 * SYSTEM DATA MENU
 **/
.info-menu {
    position: fixed;
    z-index: 9998;
    right: 10px;
    bottom: 5px;
}
.info-menu-list {
    padding:0;
}

/**
 * Override expansion panel classes to modify its style
 */
.expansion-panel__header {
    padding:0;
    background-color: rgb(245,245,245);
    padding: 10px 15px;
    border-bottom: 1px solid rgb(221, 221, 221);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}
.expansion-panel--inset .expansion-panel__container, .expansion-panel--popout .expansion-panel__container {
    max-width: 100%;
}
.expansion-panel--inset .expansion-panel__container--active, .expansion-panel--popout .expansion-panel__container--active {
    margin: 0;
    box-shadow: none;
}
#main-container .application .menu__content {
    width: 250px;
    position: fixed;
    top: inherit !important;
    left: inherit !important;
    bottom: 40px;
    right: 14px;
    box-shadow: none;
}

.expansion-panel__body {
    background-color: white;
    font-size: 12px;
    color: #999;
    padding:15px;
}

.panel-collapse {
    /*display:none ;*/
}

.panel-heading {
    background-color: rgb(245,245,245);
    padding: 10px 15px;
    border-bottom: 1px solid rgb(221, 221, 221);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    cursor: pointer;
}

.expansion-panel__header i {
    font-size: 20px;
    margin-right: 5px;
}

#floatingContent {
    display: none;
}

/**
 * LOGIN AREA
 */
.login-container {
    padding: 0;
    max-width: 100%;
    position: relative;
    height: 100%;
}

.login-card {
    width: 100%;
    z-index: 1000;
}

#login-btn {
    color: white !important;
}

.loginHeader a {
    width: 100%;
    text-align: center;
}

/**
 * Allow showing background image on body
 */
.application.theme--light {
    background: none;
}

/**
 * BUTTONS
 */
#login-btn {
    background-color: #1E88E5;
}

/**
 * FOOTER
 */
.footer {
    z-index: 1001;
}

.footer i {
    cursor: pointer;
}

#secure-connection-icon {
    margin-left: 10px;
}

/**
 * NOTIFICATIONS
 */
.error_message {
    font-weight: bold;
    border-radius: 5px;
    /*display: none;*/
    overflow-x: auto;
}

.error_message .close {
    margin: 0;
    padding: 0;
    position: absolute;
    background: transparent;
    box-shadow: none;
    right: 3px;
    top: 0;
    height: 10px;
    width: 10px;
    font-weight: bold;
}

.error_message .close:hover {
    cursor: pointer;
}

/**
 * FOR DEVICES WITH LARGE SCREENS (> 400)
 */
@media (min-width: 400px) {

    .content {
        padding: 0!important;
    }

    .footer {
        /*background: linear-gradient(90deg, transparent, #f5f5f5) !important;*/
        right: 0;
        width: 80px;
        left: inherit;
        border-top-left-radius: 10px;
        opacity: .4;
    }

    .short-footer {
        width: 45px!important;
    }
    .login-card {
        padding: 1.5em;
    }
    .form-container {
        position: absolute;
        width: 100%;
        top: 15%;
        margin: auto;
    }

    .form-container > .flex {
        max-width: 400px;
        margin:auto
    }
}

/**
 * FOR DEVICES WITH SMALL SCREENS (< 400)
 */
@media (max-width: 400px) {

    body {
        background-image: none !important;
        background-color: white !important;
    }

    .footer {
        font-size: 16px;
        background-color: white;
    }

    .video-container video {
        display: none;
    }

    .content {
        background-color: white;
        text-align: center;
        background: none;
    }

    .login-card {
        padding: 1em;
        height: 100% !important;
        width: 100% !important;
    }

    .container {
        margin: 0;
        padding: 0;
    }

    .form-container {
        width:100% !important;
        height: 100% !important;
        top:0 !important;
    }

    .form-container > .flex {
        height: 100%;
        width: 100%;
    }
}