
/* Configurações Globais */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
}

body,
input,
button {
    font-family: 'Roboto', sans-serif;
    background: #dbdbdb;
}

/* Estilização dos elementos */

.wave {
    position: fixed;
    height: 100%;
    left: 0;
    bottom: 0;
    z-index: -1;
}


.container {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 7rem;
    padding: 0 2rem;
}

.img {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.img img {
    width: 500px;
}

.login-container {
    display: flex;
    align-items: center;
    text-align: center;
}

form {
    width: 360px;
}

.avatar {
    width: 100px;
}

form h2 {
    font-size: 2.9rem;
    text-transform: uppercase;
    margin: 15px 0;
    color: #333;
    font-weight: bold;
}

.input-div {
    position: relative;
    display: grid;
    grid-template-columns: 7% 93%;
    margin: 25px 0;
    padding: 5px 0;
    border-bottom: 2px solid #000;
}

.input-div::after, .input-div::before {
    content: '';
    position: absolute;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #d15e5e;
    transition-duration: 0.3s;
}

.input-div::after {
    right: 50%;
}

.input-div::before {
    left: 50%;
}

.input-div.focus::after, .input-div.focus::before {
    width: 50%;
}

.input-div.focus .i i {
    color: #d15e5e;
}

.input-div.focus div h5 {
    top: -5px;
    font-size: 1.5rem;
}

.input-div.one {
    margin-top: 0;
}

.input-div.two {
    margin-bottom: 4px;
}

.i {
    display: flex;
    align-items: center;
    justify-content: center;
}

.i i {
    color: #d9d9d9;
    transition: 0.3s;
}

.input-div > div {
    position: relative;
    height: 45px;
}

.input-div > div h5 {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #000;
    font-size: 1.8rem;
    transition-duration: .3s;
}

.input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border: none;
    outline: none;
    background: none;
    padding: 0.5rem 0.7rem;
    font-size: 1.3rem;
    color: #555;
}

a {
    display: inline-block;
    width: 100%;
    text-align: right;
    text-decoration: none;
    color: #000;
    font-size: 1.6rem;
    transition: color .3s;
    margin-top: 5px; 
}

a:hover {
    color: #d15e5e;
}

.btn {
    display: inline-block;
    width: 100%;
    height: 50px;
    border-radius: 60px 0;
    margin: 1rem 0;
    font-size: 1.6rem;
    outline: none;
    border: none;
    background-image: linear-gradient(to right, #d15e5e, #f19c6b, #d15e5e);
    cursor: pointer;
    color: #FFF;
    font-weight: bold;
    background-size: 200%;
    transition: background-position 0.5s;
    text-transform: uppercase;
}

.btn:hover {
    background-position: right;
}


@media screen and (max-width: 1050px) {
    .container {
        grid-gap: 5rem;
    }
}

@media screen and (max-width: 1000px) {
    form {
        width: 290px;
    }

    form h2 {
        font-size: 2.4rem;
        margin: 12px 0;
    }

    .img img {
        width: 500px;
    }   
}

@media screen and (max-width: 900px) {
    .img img {
        display: none;
    }  

    .container {
        grid-template-columns: 1fr;
    }

    .wave {
        display: none;
    }

    .login-container {
        justify-content: center;
    }
}

