/* ==================== CLEAN SPLIT-SCREEN LOGIN ==================== */

/* RESET BASICO */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #fff;
    overflow: hidden; /* Evitar scrollbars innecesarios */
}

/* CONTENEDOR PRINCIPAL - FLEXBOX */
#page-container {
    display: flex;
    flex-wrap: wrap;
    height: 100vh;
    width: 100%;
}

/* === IZQUIERDA: MARCA (40%) === */
.login-brand-side {
    width: 40%;
    background: linear-gradient(135deg, #0c5c93 0%, #052c4a 100%);
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centrar contenido verticalmente */
    align-items: flex-start; /* Alinear a la izquierda */
    padding: 80px;
    color: white;
    position: relative;
    box-sizing: border-box;
}

.brand-content {
    position: relative;
    z-index: 10;
}

.brand-logo {
    margin-bottom: 20px;
}

.brand-logo i {
    font-size: 50px;
    margin-bottom: 15px;
    display: block;
}

.brand-logo h1 {
    font-size: 60px;
    font-weight: 800;
    margin: 0;
    line-height: 1;
    letter-spacing: -1px;
}

.brand-tagline {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.9;
    margin-top: 15px;
    max-width: 300px;
}

.brand-footer {
    position: absolute;
    bottom: 30px;
    left: 80px;
    font-size: 12px;
    opacity: 0.6;
}

.brand-footer a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* === DERECHA: FORMULARIO (60%) === */
.login-form-side {
    width: 60%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

/* PatrĆ³n de fondo sutil en el lado derecho para darle textura premium */
.login-form-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(240, 244, 248, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(240, 244, 248, 0.5) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}

.login-form-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 5;
    border: solid 1px #0a4a772e;
    padding: 20px;
    border-radius: 15px;
    box-shadow: -9px 11px 14px 0px #00000014;
}

.company-logo {
    text-align: center;
    margin-bottom: 50px;
}

.company-logo img {
    max-height: 80px;
    width: auto;
}

/* INPUTS ESTILO MODERN FLOAT */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 15px 15px;
    font-size: 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: #fff;
    color: #495057;
    transition: all 0.2s ease;
    box-sizing: border-box;
    height: 52px;
}

.form-control:focus {
    border-color: #0c5c93;
    outline: none;
    box-shadow: 0 0 0 4px rgba(12, 92, 147, 0.1);
}

.form-control::placeholder {
    color: #adb5bd;
}

/* BUTTON ESTILO RECTANGULAR REDONDEADO */
.login-buttons {
    margin-top: 35px;
}

.btn-success {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    background: #0c5c93; /* Azul sĆ³lido #0c5c93 */
    color: #fff;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.1s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 6px rgba(12, 92, 147, 0.2);
}

.btn-success:hover {
    background: #084261; /* Azul mĆ�s oscuro al hover */
    transform: translateY(-1px);
}

.btn-success:active {
    transform: translateY(1px);
}

/* EXTRAS */
.mt-5 {
    margin-top: 25px;
    text-align: center;
    font-size: 14px;
}

.mt-5 a {
    color: #0c5c93;
    text-decoration: none;
}

.checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox input {
    margin-right: 10px;
    width: 16px;
    height: 16px;
}

.checkbox label {
    font-size: 14px;
    color: #6c757d;
    cursor: pointer;
}

.showHidePw {
    position: absolute;
    right: 15px;
    top: 42px; /* Ajustado para alinearse con el input */
    color: #adb5bd;
    cursor: pointer;
    font-size: 18px;
}

#loading {
    display: none;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .login-brand-side {
        display: none; /* Ocultar lado marca en mĆ³viles para enfocar en login */
    }
    .login-form-side {
        width: 100%;
    }
}

/* === LOADING SPINNER === */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, #0c5c93 0%, #084261 100%);
    z-index: 9999;
    display: none;
}

.loading-spinner {
    height: 50px;
    width: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -25px 0 0 -25px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: rotation 0.8s infinite linear;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === MODAL OVERRIDES === */
.modal-content {
    background: #ffffff;
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    padding: 20px 25px;
}

.modal-title {
    color: #0c5c93;
    font-weight: 700;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 20px 25px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
}

/* === JCONFIRM === */
.jconfirm .jconfirm-box.jconfirm-type-success {
    border-top: solid 7px #0c5c93 !important;
    animation-name: type-green;
}

.jconfirm .jconfirm-box.jconfirm-type-success .jconfirm-title-c .jconfirm-icon-c {
    color: #0c5c93 !important;
}

.jconfirm .jconfirm-box.jconfirm-type-info {
    border-top: solid 7px #4facfe !important;
    animation-name: type-blue;
}

.jconfirm .jconfirm-box.jconfirm-type-info .jconfirm-title-c .jconfirm-icon-c {
    color: #4facfe !important;
}

/* === GRITTER ALERTS === */
.alert-warning .gritter-item p,
.alert-success .gritter-item p,
.alert-error .gritter-item p,
.alert-info .gritter-item p {
    color: #FFF !important;
    font-size: 12px !important;
}

.gritter-close:before,
.gritter-light .gritter-close:before {
    font-family: Font Awesome\ 5 Free !important;
    content: "\f00d" !important;
    font-size: 16px !important;
    font-weight: 900 !important;
}

.alert-success .gritter-bottom,
.alert-success .gritter-item,
.alert-success .gritter-top {
    background: linear-gradient(135deg, #0c5c93 0%, #084261 100%) !important;
}

.alert-warning .gritter-bottom,
.alert-warning .gritter-item,
.alert-warning .gritter-top {
    background: #F8AC59 !important;
}

.alert-info .gritter-bottom,
.alert-info .gritter-item,
.alert-info .gritter-top {
    background: #4facfe !important;
}

.alert-error .gritter-bottom,
.alert-error .gritter-item,
.alert-error .gritter-top {
    background: #F66C5E !important;
}

.alert-success .gritter-close,
.alert-success .gritter-light .gritter-close {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.alert-error .gritter-close,
.alert-error .gritter-light .gritter-close {
    border-left: 1px solid rgba(255, 255, 255, 0.3);
}

.gritter-image i {
    font-size: 45px;
    color: #fff;
}

.alert-loader .gritter-image i {
    font-size: 30px;
    color: #fff;
}

.alert-loader .gritter-image {
    width: 35px;
    height: 35px;
    float: left;
}

.alert-success .gritter-close,
.alert-warning .gritter-close,
.alert-info .gritter-close,
.alert-error .gritter-close {
    color: #FFFFFF !important;
}

.alert-success .gritter-title,
.alert-warning .gritter-title,
.alert-info .gritter-title,
.alert-error .gritter-title {
    font-size: 13px !important;
    font-weight: bold !important;
}