body {
    background: #f4f6f9;
}

.login-page-v2 {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column;
}

.login-container {
    display: flex;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    margin: 20px;
}

.login-image {
    flex: 1;
    background: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

.login-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.login-form-side {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-logo-v2 {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo-v2 h2 {
    font-weight: 700;
    color: #333;
}

.btn-login {
    background: #007bff;
    color: white;
    border-radius: 25px;
    padding: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-login:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Animaciones */
.shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

@keyframes shake {
    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }
    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }
    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }
    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Corrección de Doble Silueta: Reset de Bootstrap/AdminLTE */
#formLoginV2 .form-control:focus,
#formLoginV2 .form-control {
    box-shadow: none !important;
    outline: none !important;
}

/* Estilo para que el input-group parezca un solo bloque */
.input-group {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
    background: #fff;
}

/* Quitamos los bordes individuales internos para evitar líneas dobles */
.input-group .form-control,
.input-group .input-group-text {
    border: none !important;
    background: transparent !important;
}

/* El borde de división entre el icono y el texto */
.input-group-prepend .input-group-text {
    border-right: 1px solid #ced4da !important;
    border-radius: 0 !important;
}

/* Estado de FOCO: Aplicamos el resplandor a todo el grupo */
.input-group-focus {
    border-color: #007bff !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, .25) !important;
}

.input-group-focus .input-group-prepend .input-group-text {
    border-right-color: #007bff !important;
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    .login-image {
        display: none;
    }
}
