/*
 * Diseño del login (index.php). Reemplaza el layout plano y anticuado del
 * theme original (fondo gris liso, formulario sin marca) por una pantalla
 * dividida: panel de marca a la izquierda (degradado azul, a tono con el
 * sidebar del sistema) y tarjeta de acceso a la derecha. Todo vive aquí,
 * separado de bs5-compat.css, porque es exclusivo de index.php y no debe
 * afectar ninguna otra pantalla.
 */

body.login {
    background: #eef1f5;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
}

.login-page {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Panel de marca (izquierda) */
.login-brand {
    position: relative;
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 70px;
    color: #fff;
    background: linear-gradient(135deg, #1c2b3a 0%, #2a3f54 45%, #2a78d6 130%);
    overflow: hidden;
}

.login-brand::before {
    content: "\f0d1"; /* fa-truck */
    font-family: FontAwesome;
    position: absolute;
    right: -60px;
    bottom: -70px;
    font-size: 380px;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
    pointer-events: none;
}

.login-brand::after {
    content: "\f1b3"; /* fa-cubes */
    font-family: FontAwesome;
    position: absolute;
    left: -30px;
    top: -40px;
    font-size: 180px;
    color: rgba(255, 255, 255, 0.06);
    line-height: 1;
    pointer-events: none;
    transform: rotate(-15deg);
}

.login-brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.login-brand-logo .icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex: none;
}

.login-brand-tagline {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    max-width: 380px;
    position: relative;
    z-index: 1;
}

.login-brand-features {
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

.login-brand-features li {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.login-brand-features li i {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex: none;
}

/* Panel del formulario (derecha) */
.login-form-panel {
    flex: 1 1 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: #eef1f5;
}

.login-card {
    width: 100%;
    max-width: 380px;
}

.login-card-mobile-brand {
    display: none;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 600;
    color: #2a3f54;
    margin-bottom: 28px;
}

.login-card-mobile-brand .icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #2a3f54;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.login-card h1 {
    font-size: 24px;
    font-weight: 600;
    color: #2a3f54;
    margin: 0 0 6px;
}

.login-card .login-subtitle {
    color: #898989;
    font-size: 14px;
    margin-bottom: 28px;
}

.login-card .input-group {
    margin-bottom: 18px;
}

.login-card .input-group-text {
    background: #fff;
    border-right: none;
    color: #a6a6a6;
}

.login-card .form-control {
    border-left: none;
    padding-top: 10px;
    padding-bottom: 10px;
}

.login-card .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.login-card .input-group:focus-within .input-group-text,
.login-card .input-group:focus-within .form-control {
    border-color: #2a78d6;
}

.login-card .input-group:focus-within .input-group-text {
    color: #2a78d6;
    border-right: none;
}

.login-card .btn-login {
    width: 100%;
    padding: 11px;
    border-radius: 6px;
    background: linear-gradient(135deg, #2a3f54 0%, #2a78d6 100%);
    border: none;
    color: #fff;
    font-weight: 600;
    letter-spacing: .02em;
    transition: opacity .15s ease, transform .15s ease;
}

.login-card .btn-login:hover {
    opacity: .92;
    color: #fff;
}

.login-card .btn-login:active {
    transform: scale(0.99);
}

.login-card-footer {
    text-align: center;
    margin-top: 26px;
    font-size: 12px;
    color: #b0b0b0;
}

@media (max-width: 900px) {
    .login-brand {
        display: none;
    }
    .login-card-mobile-brand {
        display: flex;
    }
    .login-form-panel {
        flex: 1 1 100%;
    }
}
