body {
    font-family: "Lato", sans-serif;
}

.main-head {
    height: 150px;
    background: #FFF;
}

.sidenav {
    height: 100%;
    background-color: #ebebeb;
    overflow-x: hidden;
    padding-top: 20px;
    width: 23.5em;
}

.main {
    background-image: url("../img/fondo_login_05.jpg") !important;
    position: absolute;
    background-size: 100% 100%;
    height: 100%;
    width: 100%;
    right: 0;
}

.login-logo {
    margin-top: 10%;
    margin-bottom: -30%;
    padding: 40px 28px 28px 28px; /* padding-top aumentado para separar del tope */
}

/* Ajustes para centrar y espaciar el logo */
.login-logo h1#logo {
    text-align: center;
    margin: 0 auto;
}
.login-logo h1#logo img {
    display: inline-block;
    max-width: 220px; /* aumentado para mejorar visibilidad */
    width: 100%;
    height: auto;
    margin: 8px auto 12px;
    padding: 4px;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.35)) contrast(1.05) brightness(1.05);
}

/* Variante para pantallas pequeñas */
@media screen and (max-width: 450px) {
    .login-logo {
        margin-top: 2%;
        margin-bottom: 0;
        padding: 12px 16px;
    }
    .login-logo h1#logo img {
        max-width: 160px;
    }
}

.login-main-text {
    margin-top: 14%;
    padding: 60px 2em 60px 2em;
    color: #2a363f;
}

.login-main-text h2 {
    font-weight: 500;
    font-size: 30px;
}

.login-form {
    margin-top: -3em;
    margin-left: 2em;
    margin-right: 2em;
}

.login-form .form-control {
    height: 36px;
}

.login-close {
    margin-left: 17em;
}

@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }
}

@media screen and (max-width: 376px) {
    .login-close {
        margin-left: -1.4em;
        font-size: 12px;
    }
}

@media screen and (max-width: 450px) {
    .register-form {
        margin-top: 10%;
    }
    .login-logo {
        padding: 0px 28px 28px 28px;
        margin-top: 0px;
    }
    .login-form {
        margin-bottom: 0em;
    }
}

@media screen and (max-width: 979px) {
    .login-close {
        margin-left: 2em !important;
    }
}

@media screen and (max-width: 1200px) {
    .login-close {
        margin-left: 8em;
    }
}

@media screen and (min-width: 768px) {
    .main {
        margin-left: 40%;
    }
    .sidenav {
        /*width: 40%;*/
        position: fixed;
        z-index: 1;
        top: 0;
        left: 0;
    }
    .register-form {
        margin-top: 20%;
    }
    .login-form {
        margin-bottom: 6em;
    }
}

.btn-black {
    background-color: #000 !important;
    color: #fff;
    background-image: none !important;
}

.btn-blue {
    background-color: #0073aa !important;
    color: #fff;
    background-image: none !important;
}

.btn-green-light {
    background-color: #9eca45 !important;
    color: #fff;
    background-image: none !important;
}


/**/

.container {
    margin-left: 4em !important;
}

.header {
    width: 100%;
    height: 150px;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    /*background-color: #3b8dbd;*/
    background-color: #ebebeb;
    -webkit-transition: height 0.3s;
    -moz-transition: height 0.3s;
    -ms-transition: height 0.3s;
    -o-transition: height 0.3s;
    transition: height 0.3s;
}

.header h1#logo {
    display: inline=block;
    /*height: 150px;*/
    max-width: 7em;
    float: left;
    margin-left: 50px;
    font-family: "Oswald", sans-serif;
    font-size: 60px;
    color: white;
    font-weight: 400;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.header nav {
    display: inline=block;
    float: right;
    margin-right: 50px;
}

.header nav a {
    line-height: 150px;
    margin-left: 20px;
    color: #9fdbfc;
    font-weight: 700;
    font-size: 18px;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.header nav h3 {
    line-height: 150px;
    margin-left: 20px;
    color: #2a363f;
    font-weight: 700;
    font-size: 30px;
    -webkit-transition: all 0.3s;
    -moz-transition: all 0.3s;
    -ms-transition: all 0.3s;
    -o-transition: all 0.3s;
    transition: all 0.3s;
}

.header nav a:hover {
    color: white;
}

.header.smaller {
    height: 75px;
}

.header.smaller h1#logo {
    width: 150px;
    height: 75px;
    font-size: 30px;
}

.header.smaller nav a {
    line-height: 75px;
}


/*-----------MEDIA QUERIES*/

@media screen and (max-width: 450px) {
    .container {
        margin-left: 0.0em !important;
    }
}

@media all and (max-width: 660px) {
    .container {
        margin-left: 0.5em !important;
    }
    .header h1#logo {
        display: block;
        float: none;
        margin: 0 auto;
        /*height: 100px;*/
        max-width: 4.5em;
        line-height: 100px;
        text-align: center;
    }
    .header nav {
        display: block;
        float: none;
        height: 50px;
        line-height: 50px;
        text-align: center;
        margin: 0 auto;
    }
    .header nav a {
        line-height: 50px;
        margin: 0 10px;
    }
    .header nav h3 {
        line-height: 50px;
        margin: 0 10px;
    }
    .header.smaller {
        height: 75px;
    }
    .header.smaller h1#logo {
        height: 40px;
        line-height: 40px;
        font-size: 30px;
    }
    .header.smaller nav {
        height: 35px;
        line-height: 35px;
    }
    .header.smaller nav a {
        line-height: 35px;
    }
    .header.smaller nav h3 {
        line-height: 35px;
    }
}

@media all and (max-width: 950px) {
    .container {
        margin-left: 0.0em !important;
    }
    .header h1#logo {
        display: block;
        float: none;
        margin: 0 0 auto;
        /*height: 100px;*/
        max-width: 5.5em;
        line-height: 100px;
        text-align: center;
    }
    .header nav {
        display: block;
        float: none;
        height: 50px;
        line-height: 50px;
        text-align: center;
        margin: -4em auto;
        padding-left: 30em;
    }
    .header nav a {
        line-height: 50px;
        margin: 0 10px;
    }
    .header nav h3 {
        line-height: 50px;
        margin: 0 10px;
    }
    .header.smaller {
        height: 75px;
    }
    .header.smaller h1#logo {
        height: 40px;
        line-height: 40px;
        font-size: 30px;
    }
    .header.smaller nav {
        height: 35px;
        line-height: 35px;
    }
    .header.smaller nav a {
        line-height: 35px;
    }
    .header.smaller nav h3 {
        line-height: 35px;
    }
}

.payload {
    margin-top: 170px;
}

.table-bordered {
    border: 1px solid #dddddd;
    border-collapse: separate;
    border-left: 0;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
}

.table {
    width: 100%;
    margin-bottom: 20px;
    background-color: transparent;
    border-collapse: collapse;
    border-spacing: 0;
    display: table;
}

.widget.widget-table .table {
    margin-bottom: 0;
    border: none;
}

.widget.widget-table .widget-content {
    padding: 0;
}

.widget .widget-header+.widget-content {
    border-top: none;
    -webkit-border-top-left-radius: 0;
    -webkit-border-top-right-radius: 0;
    -moz-border-radius-topleft: 0;
    -moz-border-radius-topright: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.widget .widget-content {
    padding: 20px 15px 15px;
    background: #FFF;
    border: 1px solid #D5D5D5;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
}

.widget .widget-header {
    position: relative;
    height: 40px;
    line-height: 40px;
    background: #E9E9E9;
    background: -moz-linear-gradient(top, #fafafa 0%, #e9e9e9 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #fafafa), color-stop(100%, #e9e9e9));
    background: -webkit-linear-gradient(top, #fafafa 0%, #e9e9e9 100%);
    background: -o-linear-gradient(top, #fafafa 0%, #e9e9e9 100%);
    background: -ms-linear-gradient(top, #fafafa 0%, #e9e9e9 100%);
    background: linear-gradient(top, #fafafa 0%, #e9e9e9 100%);
    text-shadow: 0 1px 0 #fff;
    border-radius: 5px 5px 0 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), inset 0 1px 0 white, inset 0 -1px 0 rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid #bababa;
    filter: progid: DXImageTransform.Microsoft.gradient(startColorstr='#FAFAFA', endColorstr='#E9E9E9');
    -ms-filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#FAFAFA', endColorstr='#E9E9E9')";
    border: 1px solid #D5D5D5;
    -webkit-border-top-left-radius: 4px;
    -webkit-border-top-right-radius: 4px;
    -moz-border-radius-topleft: 4px;
    -moz-border-radius-topright: 4px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    -webkit-background-clip: padding-box;
}

thead {
    display: table-header-group;
    vertical-align: middle;
    border-color: inherit;
}

.widget .widget-header h3 {
    top: 2px;
    position: relative;
    left: 10px;
    display: inline-block;
    margin-right: 3em;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    line-height: 18px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.widget .widget-header [class^="icon-"],
.widget .widget-header [class*=" icon-"] {
    display: inline-block;
    margin-left: 13px;
    margin-right: -2px;
    font-size: 16px;
    color: #555;
    vertical-align: middle;
}

.copyright {
    margin: 1.5em;
}

.label-error {
    color: tomato;
}