/* IDIADA CAS Theme for CAS 7.3 */

/* Base font */
body {
    font-size: 14px;
    font-family: Roboto, sans-serif;
    line-height: 1.4em;
    color: #3d3d3d;
}

/* ============================================
   CAS 7.3 Layout Overrides
   ============================================ */

/* Hide CAS default header bar */
#app-bar,
.mdc-top-app-bar {
    display: none !important;
}

/* Remove top bar offset */
.mdc-top-app-bar--fixed-adjust {
    padding-top: 0 !important;
}

/* Hide CAS drawer menu */
#logindrawer,
.mdc-drawer,
.mdc-drawer-scrim {
    display: none !important;
}

/* Override CAS default background - JS sets the IDIADA image */
.bgimage {
    background-image: url('/cas/themes/idiadatheme/images/login-IDIADA_v2-1-cbb7a265075ef0917ef07da20763b561.jpg') !important;
    background-color: transparent !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    min-height: 100vh;
    align-items: center;
}

/* Hide CAS footer */
#casFooter {
    display: none !important;
}

/* Hide service info banner */
#serviceui,
.service-ui {
    display: none !important;
}

/* Hide side panel */
#loginSidePanel {
    display: none !important;
}

/* Login section padding */
.login-section {
    padding: 1rem 1.5rem !important;
}

/* Make CAS card transparent so #login box controls the look */
.mdc-card.mdc-card-content {
    max-width: 480px;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

div#content {
    box-shadow: none !important;
}

/* ============================================
   IDIADA Login Box
   ============================================ */

#login {
    padding: 24px 16px;
    background-color: #ffffff;
    border-radius: 4px;
    overflow: hidden;
    vertical-align: top;
    border: 1px solid #B1B1B1;
    box-shadow: 0 2px 6px #00000016;
}

#login .login-header {
    text-align: center;
    padding: 24px 0px 6px 0px;
    background-color: #ffffff;
    margin: -30px -16px 10px -16px;
}

#login form > h2 {
    display: none;
}

#login .row {
    margin: 0px 0px 8px 0px;
}

/* ============================================
   Input Fields
   ============================================ */

#login input[type=text],
#login input[type=password] {
    padding: 7px 5px;
    width: 100%;
    border: 1px solid #B1B1B1;
    border-radius: 4px;
    font-size: 14px;
    font-family: Verdana, sans-serif;
    box-sizing: border-box;
}

#login input[type=text]:hover,
#login input[type=password]:hover,
#login input[type=text]:focus,
#login input[type=password]:focus {
    border-color: #FF6900 !important;
    outline: none;
}

.input-group-addon,
.input-group {
    width: 100%;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

/* ============================================
   Submit Button - IDIADA Orange
   ============================================ */

#login .btn-submit {
    background: #FC6900;
    border: 0;
    padding: 8px 25px;
    font-weight: bold;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    margin-top: 8px;
    width: 100%;
    cursor: pointer;
}

#login .btn-submit:hover {
    background: #E35B00;
}

.btn-row {
    text-align: center;
}

/* ============================================
   Sidebar - Forgot Password
   ============================================ */

#sidebar {
    width: auto;
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
    font-size: 14px !important;
}

#sidebar p {
    margin: 0;
}

#sidebar a:link,
#sidebar a:visited {
    color: #257bb2;
}

#sidebar a:hover {
    color: #a0b757;
}

/* ============================================
   Capslock Warning
   ============================================ */

#capslock-on {
    color: firebrick;
}

/* ============================================
   Error Messages
   ============================================ */

.alert-danger {
    border: 1px dotted #BB0000;
    color: #BB0000;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
}

/* ============================================
   Footer
   ============================================ */

footer {
    color: white;
}

body::after {
    content: '\00A9 IDIADA Automotive Technology S.A.';
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    font-size: 0.85rem;
    pointer-events: none;
    display: block;
}

/* ============================================
   Responsive
   ============================================ */

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

    #login input[type=text],
    #login input[type=password] {
        width: 100%;
        padding: 10px;
    }

    #login .btn-submit {
        width: 100%;
        padding: 10px 20px;
    }
}
