/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* BODY */
body {
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
}

/* BACKGROUND */
.wave {
    position: fixed;
    bottom: 0;
    left: 0;
    height: 100%;
    z-index: -1;
}

/* LAYOUT */
.container {
    width: 100vw;
    height: 100vh;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 7rem;
    padding: 0 2rem;
}

/* IMAGE SECTION */
.img {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.img img {
    width: 500px;
}

/* LOGIN SECTION */
.login-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.login-content img {
    height: 80px;
}

.login-content h2 {
    margin: 15px 0;
    font-size: 2.9rem;
    color: #333;
    text-transform: uppercase;
}

/* FORM */
form {
    width: 360px;
}

/* INPUT GROUP */
.login-content .input-div {
    position: relative;
    display: grid;
    grid-template-columns: 7% 93%;
    margin: 20px 0;
    padding: 5px 0;
    border-bottom: 2px solid #d9d9d9;
}

.login-content .input-div.one {
    margin-top: 0;
}

/* ICON */
.i {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #d9d9d9;
}

.i i {
    transition: 0.3s;
}

/* INPUT WRAPPER */
.input-div > div {
    position: relative;
    height: 45px;
}

/* LABEL */
.input-div > div > h5 {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 18px;
    color: #999;
    transition: 0.3s;
}

/* ANIMATION LINE */
.input-div::before,
.input-div::after {
    content: '';
    position: absolute;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background-color: #38d39f;
    transition: 0.4s;
}

.input-div::before {
    right: 50%;
}

.input-div::after {
    left: 50%;
}

/* FOCUS STATE */
.input-div.focus::before,
.input-div.focus::after {
    width: 50%;
}

.input-div.focus > div > h5 {
    top: -5px;
    font-size: 15px;
}

.input-div.focus > .i > i {
    color: #38d39f;
}

/* INPUT FIELD */
.input-div > div > input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    padding: 0.5rem 0.7rem;

    border: none;
    outline: none;
    background: none;

    font-size: 16px;
    color: #333;
    font-family: 'Poppins', sans-serif;
}

/* PASSWORD FIELD */
.input-div.pass {
    margin: 4px 0;
}

/* LINK */
a {
    display: inline-flex;
    text-align: right;
    text-decoration: none;
    font-size: 0.9rem;
    color: #999;
    transition: 0.3s;
}

a:hover {
    color: #38d39f;
}

/* BUTTON */
.btn {
    display: block;
    width: 100%;
    height: 50px;

    margin: 1rem 0;

    border: none;
    border-radius: 25px;
    outline: none;

    cursor: pointer;

    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    color: #fff;

    background-image: linear-gradient(to right, #32be8f, #38d39f, #32be8f);
    background-size: 200%;
    transition: 0.5s;
}

.btn:hover {
    background-position: right;
}

/* RESPONSIVE */
@media screen and (max-width: 1050px) {
    .container {
        grid-gap: 5rem;
    }
}

@media screen and (max-width: 1000px) {
    form {
        width: 290px;
    }

    .login-content h2 {
        font-size: 2.4rem;
        margin: 8px 0;
    }

    .img img {
        width: 400px;
    }
}

@media screen and (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
    }

    .img,
    .wave {
        display: none;
    }

    .login-content {
        justify-content: center;
    }
}