#img-index {
    height: 60px;
    margin-bottom: 8px;
}

#body_login{
    min-height: 100vh;
    margin: 0;
    padding: 36px 16px;
	display: flex;
	align-items: center;
    justify-content: center;
    row-gap: 36px;
    background: linear-gradient(180deg, #0f2231 0%, #0b1620 100%);
}

#login{
    width: 100%;
    max-width: 980px;
    min-height: 480px;
    display: flex;
    flex-wrap: nowrap;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    align-items: stretch;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

#login_izquierda{
    flex: 0 0 45%;
    width: 45%;
    min-width: 320px;
    height: auto;
	border-radius: 0;
    background-size: cover;
	background-position: center center;
    position: relative;
    filter: saturate(0.95) contrast(1.05);
    overflow: hidden;
}

/* Slideshow panel (2 layers con crossfade) */
#login_izquierda .login-bg{
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 900ms ease, transform 6s ease;
    will-change: opacity, transform;
}

#login_izquierda .login-bg.is-visible{
    opacity: 1;
    transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce){
    #login_izquierda .login-bg{
        transition: none;
        transform: none;
    }
}

#login_izquierda::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.20) 0%, rgba(0,0,0,0.05) 55%, rgba(0,0,0,0.00) 100%);
    pointer-events: none;
}

#login_derecha{
    flex: 1 1 55%;
    width: 55%;
    min-width: 0;
    padding: 32px 34px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: center;
    background:
        radial-gradient(1200px 500px at 50% 0%, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0) 65%),
        rgba(255, 255, 255, 0.95);
    position: relative;
}

#login_derecha::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(0, 0, 0, 0.06);
}

#icono_usuario{
    position: relative;
    margin: 0 auto;
    width: 92px;
    height: 92px;
	margin-bottom: 18px;
    opacity: 0.95;
    display: block;
    padding: 14px;
    border-radius: 999px;
    background: rgba(15, 23, 32, 0.03);
    border: 1px solid rgba(15, 23, 32, 0.10);
}

.login-right-inner{
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 28px 26px 26px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 32, 0.10);
    box-shadow:
        0 18px 40px rgba(15, 23, 32, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
    backdrop-filter: blur(6px);
}

#frmLogin{
    display: flex;
    flex-direction: column;
    align-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
}

.input-group{
    width: 100%;
    margin: 10px 0;
    background-color: rgba(255,255,255,0.9);
    border-radius: 12px !important;
    height: 48px;
    border: 1px solid rgba(0, 0, 0, 0.10);
    box-shadow:
        0 1px 0 rgba(0, 0, 0, 0.03),
        0 10px 22px rgba(15, 23, 32, 0.05);
    transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.input-group-prepend{
    background-color: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    min-width: 44px;
    justify-content: center;
}

.input-group-text{
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: rgba(15, 23, 32, 0.03);
    color: rgba(15, 23, 32, 0.55);
    border: none;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.form-control{
    width: auto;
    margin: 0;
    border: none;
    padding: 0 12px;
    font-size: 1rem;
    font-family: 'Rubik', sans-serif;
    height: 48px;
    background: transparent;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.form-control:focus{
    box-shadow: none;
}

#login_button{
    display: flex;
    margin: 16px auto 0;
    width: 100%;
    height: 44px;
    outline: none;
    border: rgba(0, 0, 0, 0.10) 1px solid;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(201, 190, 14, 1) 0%, rgba(184, 172, 10, 1) 100%);
    color: white;
    font-weight: bold;
    font-family: 'Rubik', sans-serif;
    cursor: pointer;
    transition: 0.3s;
    justify-content: center;
    align-items: center;
    letter-spacing: 0;
}

#login_button:hover{
    filter: brightness(0.97);
}

#login_button:active{
    transform: scale(0.99);
}

.p-link{
    text-align: center;
    cursor: pointer;
    color: var(--text-color);
	font-family: 'Rubik', sans-serif;
    font-weight: bold;
}

.campoFormularioError {
    border: 2px solid #cf4636 !important;
}

/* Focus ring */
#frmLogin .input-group:focus-within{
    border-color: rgba(0, 0, 0, 0.22);
    box-shadow:
        0 0 0 3px rgba(0, 0, 0, 0.08),
        0 18px 36px rgba(15, 23, 32, 0.08);
    transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 900px){
    #body_login{
        padding: 24px 12px;
        row-gap: 24px;
    }

    #login{
        min-height: 0;
        flex-direction: column;
        max-width: 520px;
    }

    #login_izquierda{
        width: 100%;
        height: 180px;
        min-width: 0;
        flex: 0 0 auto;
    }

    #login_derecha{
        width: 100%;
        padding: 22px 18px 26px;
        flex: 1 1 auto;
    }

    #frmLogin{
        max-width: 420px;
    }
}
