﻿


.btnLogin {
    width: 300px;
    height: 50px;
    background: linear-gradient(to left top, #2e41c0 50%, #3737b3 50%);
    border-style: none;
    color: #fff;
    font-size: 23px;
    letter-spacing: 3px;
    font-family: 'Lato';
    font-weight: 600;
    outline: none;
    cursor: pointer;
    position: relative;
    padding: 0px;
    overflow: hidden;
    transition: all .5s;
    box-shadow: 0px 1px 2px rgba(0,0,0,.2);
}

    .btnLogin span {
        position: absolute;
        display: block;
    }

        .btnLogin span:nth-child(1) {
            height: 3px;
            width: 300px;
            top: 0px;
            left: -200px;
            background: linear-gradient(to right, rgba(0,0,0,0), #f6e58d);
            border-top-right-radius: 1px;
            border-bottom-right-radius: 1px;
            animation: span1 2s linear infinite;
            animation-delay: 1s;
        }

@keyframes span1 {
    0% {
        left: -300px
    }

    100% {
        left: 300px;
    }
}

.btnLogin span:nth-child(2) {
    height: 50px;
    width: 3px;
    top: -50px;
    right: 0px;
    background: linear-gradient(to bottom, rgba(0,0,0,0), #f6e58d);
    border-bottom-left-radius: 1px;
    border-bottom-right-radius: 1px;
    animation: span2 2s linear infinite;
    animation-delay: 2s;
}

@keyframes span2 {
    0% {
        top: -50px;
    }

    100% {
        top: 50px;
    }
}

.btnLogin span:nth-child(3) {
    height: 3px;
    width: 300px;
    right: -300px;
    bottom: 0px;
    background: linear-gradient(to left, rgba(0,0,0,0), #f6e58d);
    border-top-left-radius: 1px;
    border-bottom-left-radius: 1px;
    animation: span3 2s linear infinite;
    animation-delay: 3s;
}

@keyframes span3 {
    0% {
        right: -300px;
    }

    100% {
        right: 300px;
    }
}

.btnLogin span:nth-child(4) {
    height: 50px;
    width: 3px;
    bottom: -50px;
    left: 0px;
    background: linear-gradient(to top, rgba(0,0,0,0), #f6e58d);
    border-top-right-radius: 1px;
    border-top-left-radius: 1px;
    animation: span4 2s linear infinite;
    animation-delay: 4s;
}

@keyframes span4 {
    0% {
        bottom: -50px;
    }

    100% {
        bottom: 50px;
    }
}

.btnLogin:hover {
    transition: all .5s;
    transform: rotate(-3deg) scale(1.1);
    box-shadow: 0px 3px 5px rgba(0,0,0,.4);
}

    .btnLogin:hover span {
        animation-play-state: paused;
    }
