/* ============================================
   CEPM - LOGIN PAGE STYLES
   ============================================ */

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */

.login-body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
    overflow: auto;
    padding-bottom: 80px;
    position: relative;
}

.login-content {
    position: relative;
    min-height: calc(100vh - 60px);
    height: calc(100vh - 60px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: calc(36vh - 30px);
    overflow: hidden;
}

/* ============================================
   CARD DE LOGIN
   ============================================ */

.login-form {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    max-width: 750px;
    width: 90%;
    z-index: 5;
}

/* ============================================
   PANEL IZQUIERDO (AZUL CON LOGO)
   ============================================ */

.login-left {
    background: url(img/lg/fondo-azul.jpg);
    background-size: cover;
    background-position: center;
    min-height: 100%;
    text-align: center;
    padding: 2rem;
}

/* ============================================
   IMAGEN DE FONDO (HEADER)
   ============================================ */

.login-family {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 40%;
    object-fit: cover;
    object-position: center bottom;
}

/* ============================================
   ELEMENTOS DEL FORMULARIO
   ============================================ */

.login-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.login-divider {
    border: none;
    height: 3px;
    background: linear-gradient(90deg, #00AEEF 0%, #00D9FF 100%);
    width: 140px;
    margin-left: 0;
    margin-bottom: 0.75rem;
}

.login-subtitle {
    color: #6c757d;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* ============================================
   FOOTER
   ============================================ */

.login-footer {
    background: #003d6b;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    text-align: center;
    color: #fff;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 10;
}

.login-footer span,
.login-footer a {
    color: #fff;
    font-size: 0.875rem;
}

.login-footer a:hover {
    text-decoration: underline !important;
}

/* ============================================
   CAMPOS DE ENTRADA (INPUTS)
   ============================================ */

.custom-input .input-group-text {
    background-color: #e6fcff;
    border: none;
}

.custom-input .form-control {
    background-color: #e6fcff;
    border: none;
    box-shadow: none;
}

.custom-input .form-control::placeholder {
    color: #333;
    font-weight: 500;
}

/* ============================================
   CHECKBOX PERSONALIZADO
   ============================================ */

.custom-check {
    width: 20px;
    height: 20px;
    border: 2px solid #00AEEF;
    border-radius: 3px;
    background-color: transparent;
    cursor: pointer;
}

.custom-check:focus {
    box-shadow: none;
    outline: none;
}

.custom-check:checked {
    background-color: #00AEEF;
    border-color: #00AEEF;
}

/* ============================================
   BOTONES
   ============================================ */

.btn-blue {
    background-color: #0062AB;
    border-color: #0062AB;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
}

.btn-blue:hover {
    background-color: #004d8a;
    border-color: #004d8a;
}

.login-login-button {
    display: block;
    width: 100%;
    max-width: 140px;
    margin: 20px auto 0;
    height: 50px;
    border-radius: 8px;
    border: 0;
    background: #38a1dc;
    color: #fff;
}

.login-login-button:hover {
    background: #0062AB;
}

/* ============================================
   LINKS DEL FORMULARIO
   ============================================ */

.small a {
    color: #0062AB;
    text-decoration: none;
    font-size: 0.9rem;
}

.small a:hover {
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE - TABLETS Y DESKTOP
   ============================================ */

@media (max-width: 1400px) {
    .login-form {
        max-width: 700px;
    }
}

@media (max-width: 992px) {
    .login-form {
        max-width: 600px;
        width: 85%;
    }
}

/* ============================================
   RESPONSIVE - TABLETS (OCULTAR PANEL AZUL)
   ============================================ */

@media (max-width: 768px) {
    .login-form {
        width: 95%;
        max-width: 500px;
    }
    
    .login-left {
        display: none;
    }
    
    .login-content {
        padding-top: calc(34vh - 30px);
    }
    
    .login-family {
        height: 38%;
    }
}

/* ============================================
   RESPONSIVE - MÓVILES
   ============================================ */

@media (max-width: 576px) {
    .login-form {
        width: 95%;
    }
    
    .login-content {
        padding-top: calc(31vh - 30px);
    }
    
    .login-family {
        height: 35%;
    }
}
