@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* ========== Colors ========== */
:root {
    --first-color: #12192C;
    --text-color: #8590AD;
}

/* ========== Font & Typography ========== */
:root {
    --body-font: 'Poppins', sans-serif;
    --big-font-size: 2rem;
    --normal-font-size: 0.938rem;
    --smaller-font-size: 0.875rem;
}

@media screen and(min-width:768px) {
    :root {
        --big-font-size: 2.5rem;
        --normal-font-size: 1rem;
    }
}

/* ========== Base ========== */
*,
::before,
::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--body-font);
    color: var(--first-color);
}

h1 {
    margin: 0;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== Form ========== */
.l-form {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/*=== Shapes ===*/
.shape1,
.shape2 {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

.shape1 {
    top: -7rem;
    left: -3.5rem;
    background: linear-gradient(180deg, var(--first-color)0%, rgba(196, 196, 196, 0)100%);
}

.shape2 {
    bottom: -6rem;
    right: -5.5rem;
    background: linear-gradient(180deg, var(--first-color)0%, rgba(196, 196, 196, 0)100%);
    transform: rotate(180deg);
}

/*=== Form ===*/
.form {
    height: 100vh;
    display: grid;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
}

.form_content {
    width: 290px;
}

.form_img {
    display: none;
}

.form_title {
    font-size: var(--big-font-size);
    font-weight: 500;
    margin-bottom: 2rem;
}

.form_div {
    position: relative;
    display: grid;
    grid-template-columns: 7% 93%;
    margin-bottom: 1.5rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid var(--text-color);
}

/*=== Div focus ===*/
.form_div.focus {
    border-bottom: 1px solid var(--first-color);
}

.form_div-one {
    margin-bottom: 3rem;
}

.form_icon {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: .3s;
}

/*=== Icon focus ===*/
.form_div.focus .form_icon {
    color: var(--first-color);
}

.form_label {
    display: block;
    position: absolute;
    left: .75rem;
    top: .25rem;
    font-size: var(--normal-font-size);
    color: var(--text-color);
    transition: .3s;
}

/*=== Label focus ===*/
.form_div.focus .form_label {
    top: -1.5rem;
    font-size: .875rem;
    color: var(--first-color);
}

.form_div-input {
    position: relative;
}

.form_input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    background: none;
    padding: 0.5rem 0.75rem;
    font-size: 1.2rem;
    color: var(--first-color);
}

.form_forgot {
    display: block;
    text-align: right;
    margin-bottom: 2rem;
    font-size: var(--normal-font-size);
    color: var(--text-color);
    font-weight: 500;
    transition: 0.5s;
}

.form_forgot:hover {
    color: var(--first-color);
    transition: 0.5s;
}

.form_register {
    display: block;
    text-align: center;
    margin-bottom: 2rem;
    font-size: var(--normal-font-size);
    color: var(--text-color);
    font-weight: 500;
    transition: 0.5s;
}

.form_register:hover {
    color: var(--first-color);
    transition: 0.5s;
}

.form_button {
    width: 100%;
    padding: 1rem;
    font-size: var(--normal-font-size);
    outline: none;
    border: none;
    margin-bottom: 3rem;
    background-color: var(--first-color);
    color: #fff;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: 0.5s;
}

.form_button:hover {
    box-shadow: 0px 15px 36px rgba(0, 0, 0, .15);
}

.form_social {
    text-align: center;
}

.form_social-text {
    display: block;
    text-decoration: none;
    font-size: var(--normal-font-size);
    margin-bottom: 1rem;
}
.form_social-text>a {
    display: block;
    text-decoration: none;
    font-size: var(--normal-font-size);
    margin-bottom: 1rem;
    color: black;
}

.form_social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    margin-right: 0.5rem;
    margin-left: 0.5rem;
    padding: 1rem;
    background-color: var(--text-color);
    color: #fff;
    font-size: 1.75rem;
    border-radius: 20%;
}

.form_social-icon:hover {
    background-color: var(--first-color);
}

/*===== MEDIA QUERIS =====*/
@media screen and (min-width: 968px) {
    .shape1 {
        width: 400px;
        height: 400px;
        top: -11rem;
        left: -6.5rem;
    }

    .shape2 {
        width: 300px;
        height: 300px;
        right: -6.5rem;
    }

    .form {
        grid-template-columns: 1.5fr 1fr;
        padding: 0 2rem;
    }

    .form_content {
        width: 320px;
    }

    .form_img {
        display: block;
        width: 700px;
        justify-self: center;
    }
}