.card{
position: relative;
padding: 30px;
width: 300px;
height: 400px;
border: 1px solid transparent;
box-shadow: 0 5px 10px 5px hsla(0,0%,74.9%,.2);
border-radius: 8px;
background: #fff;
background-clip: padding-box;
}
.card:after{
content: "";
position: absolute;
top: -1px;
bottom: -1px;
left: -1px;
right: -1px;
background: linear-gradient(45deg,#19a754,#0685b1);
border-radius: 8px;
z-index: -1;
}