@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    background: linear-gradient(112.1deg, rgb(32, 38, 57) 11.4%, rgb(63, 76, 119) 70.2%);
    /* overflow: hidden; */
}

.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: #FFFFFF;
    color: black;
    width: 25rem;
    /* width: 100%; */
    border-radius: 10px;
    padding: 5em 2rem;
    box-shadow: 0px 0px 20px 0px black;
    border: 1px solid black;
}

.login-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.userName,
.userPassword {
    text-align: center;
    border: 1px solid black;
    margin: 1rem;
    color: black;
    background: transparent;
    padding: 1rem 2rem;
    border-radius: 3rem;
    width: 15rem;
    font-size: 1.2rem;
    outline: none;
    transition: all .2s ease-in-out;
}

.userName:focus,
.userPassword:focus {
    width: 20rem;
    animation-name: colorChange;
    animation-duration: 10s;
    animation-iteration-count: infinite;
}

@keyframes colorChange {

    0% {
        border-color: #45b6fe;
        color: #45b6fe;
    }

    20% {
        border-color: #3792cb;
        color: #3792cb;

    }

    40% {
        border-color: #296d98;
        color: #296d98;
    }

    60% {
        border-color: #1c4966;
        color: #1c4966;
    }

    80% {
        border-color: #0e2433;
        color: #0e2433;
    }

    100% {
        border-color: #00001c;
        color: #00001c;
    }

}

.loginBtn {
    background: transparent;
    border: 2px solid black;
    padding: 1rem 3rem;
    border-radius: 6rem;
/*    text-decoration: underline;*/
    font-size: 1rem;
    color: black;
    cursor: pointer;
    transition: all .3s ease-in-out;
}

.loginBtn:hover {
    background: linear-gradient(to top left, #33cccc 0%, #000066 100%);
    border: 1px solid white;
    color: white;
}

@media(max-width: 584px){
    .form-container{
        width: auto;
    }
}