:root {
    --color-first-blue: rgba(71, 71, 135, 1);
    --color-first-blue-alpha: rgba(71, 71, 135, 0.3);
    --color-first-blue-alpha1: rgba(71, 71, 135, 0.8);
    --background-dark-blue: rgba(44, 44, 84, 1);
    --color-first-orange: rgba(255, 121, 63, 1);
    --color-first-red: rgba(255, 82, 82, 1);
    --white-alpha-3: rgba(255, 255, 255, 0.3);
    --white-alpha-5: rgba(255, 255, 255, 0.5);
    --dark-gray: rgba(132, 129, 122, 1);
    --light-gray: rgba(170, 166, 157, 1);
    --box-shadow: 0px 0px 40px 4px rgba(0, 0, 0, 0.25);
    --color-link: rgba(64, 64, 122, 1);
    --title-color: rgba(0, 0, 0, 1);
    --text-color: rgba(45, 52, 54, 1);
    --other-text: rgba(247, 241, 227, 1);
}

section {
    position: relative;
    min-height: 100vh;
    background: url(../images/bgmovil.svg);
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: 0.5s;
    background-position-x: 50%;
    background-position-y: 50%;
    animation: animation-bg-username 10s ease-in-out infinite;
}

section.active {
    background: url(../images/bgmovil1.svg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position-x: 50%;
    background-position-y: 30%;
    animation: animation-bg-password 10s ease-in-out infinite;
}

section .container-card{
    min-width: 400px;
    position: relative;
    height: 100%;
    background-color: var(--white-alpha-3);
    backdrop-filter: blur(4px);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

section .container-card .user {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
}

section .container-card .user .container-img {
    display: none;
}

section .container-card .user .container-img {
    position: relative;
    width: 50%;
    height: 100%;
    transition: 0.5;
}

section .container-card .user .container-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

section .container-card .user .container-form {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    transition: 0.5s;
}

section .container-card .user .container-form h2 {
    font-weight: 600;
    text-transform: uppercase;
    width: 100%;
    margin-bottom: 10px;
    color: var(--color-first-blue);
    transform: translateY(-50px);
}

section .container-card .user .container-form h4 {
    text-align: center;
    font-size: 16px;
    font-weight: 300;
    text-transform: uppercase;
    width: 100%;
    margin-bottom: 10px;
    color: var(--color-first-orange);
    transform: translateY(-50px);
}

section .container-card .user .container-form p {
    text-align: center;
    font-size: 11px;
    background-color: var(--color-first-blue-alpha);
    padding: 2vh;
    border-radius: 5px;
    color: white;
}

section .container-card .container-password {
    pointer-events: none;
}

section .container-card .container-password .container-form {
    top: 100%;
}

section .container-card .container-password .container-img {
    top: -100%;
    transition: 0.5s;
}

section .container-card.active .container-password .container-form {
    top: 0;
}

section .container-card.active .container-password .container-img {
    top: 0;
}

section .container-card.active .container-password {
    pointer-events: initial;
}

section .container-card .container-username .container-form {
    top: 0;
}

section .container-card.active .container-username .container-form {
    top: 100%;
}

section .container-card .container-username .container-img {
    top: 0;
    transition: 0.5s;
}

section .container-card.active .container-username .container-img {
    top: -100%;
}

.btn-login {
    background-color: var(--color-first-blue-alpha1);
    color: white;
    position: relative;
    left: 30%;
}

.btn-login:hover {
    background-color: var(--color-first-blue);
    color: white;
}

footer{
    min-width: 100vw;
    left: 0;
}

@keyframes animation-bg-username  {
    0%{
        background-position-y: 50%;
    }

    50%{
        background-position-y: 40%;
    }

    100%{
        background-position-y: 50%;
    }
}

@keyframes animation-bg-password  {
    0%{
        background-position-y: 30%;
    }

    50%{
        background-position-y: 40%;
    }

    100%{
        background-position-y: 30%;
    }
}

@media (min-width:768px) {
    section .container-card{
        width: 800px;
    }

    section .container-card .user .container-img {
        display: block;
    }

    section .container-card .user .container-form {
        width: 50%;
    }
}

@media (min-width:1500px) {
    section .container-card{
        max-width: 1280px;
        width: 1280px;
    }
}