@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

:root {
    --selection-clr: #178573;
    --white-clr: #fff;
    --shadow-clr: #aaa;
    --light-clr-1: #cbfff6a6;
    --light-clr-2: #2ba38f80;
    --dark-clr-1: #2ba38f;
    --dark-clr-2: #178573;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins;
}

body {
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: center;
}

body::selection {
    background-color: var(--selection-clr);
    color: var(--white-clr);
}

.container {
    height: 95%;
    width: 97%;
    box-shadow: 0 0 0.4rem var(--shadow-clr);
    border-radius: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-part {
    height: 100%;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--light-clr-1);
    border-radius: 0.5rem 0 0 0.5rem;
}

.image-part {
    height: 100%;
    width: 52%;
    background-image: url('../img/sideImage3.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    border-radius: 0 0.5rem 0.5rem 0;
    border: none;
}

form {
    box-shadow: 0 0.2rem 0.2rem var(--shadow-clr);
    border-radius: 0.5rem;
    height: 80%;
    width: 60%;
    background-color: var(--white-clr);
    position: relative;
}

.logo {
    background-image: url('../img/logo.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    height: 3.5rem;
    width: 6rem;
    position: absolute;
    top: 3%;
    left: calc((100% - 6rem) / 2);
}

.form-heading {
    text-align: center;
    margin-top: 6rem;
    margin-bottom: 2rem;
}

.email-label,
.pass-label {
    margin-bottom: 0.5rem;
    font-weight: 900;
    padding-left: 2rem;
}

.pass-label {
    display: flex;
    justify-content: space-between;
}

.email-input,
.pass-input {
    margin-bottom: 0.5rem;
    height: 8%;
    position: relative;
}

.pass-input>i {
    font-size: 1.3rem;
    color: var(--dark-clr-2);
    position: absolute;
    top: 0%;
    right: 9%;
    height: 100%;
    width: 10%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#email,
#pass {
    width: 83%;
    margin-left: 2rem;
    height: 100%;
    padding-left: 1rem;
    border-radius: 0.5rem;
    border: none;
    outline: none;
    border: 1px solid var(--dark-clr-1);
    transition: box-shadow 0.2s;

    /* &:focus {
        box-shadow: 0 0 0 0.2rem var(--light-clr-2);
    } */

}

#email:focus,
#pass:focus {
    box-shadow: 0 0 0 0.2rem var(--light-clr-2);
}

#email::placeholder,
#pass::placeholder {
    color: var(--dark-clr-1);
}

.remember-me {
    margin: 1rem 0 1rem 2rem;
}

.remember-me>label {
    cursor: pointer;
    margin-left: 1rem;
}

.login-btn {
    width: 80%;
    height: 10%;
    margin-left: 10%;
    font-size: 1.5rem;
    border-radius: 0.3rem;
    border: none;
    background-color: var(--dark-clr-1);
    color: var(--white-clr);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: background-color 0.2s;

    /* &:hover {
        background-color: var(--dark-clr-2);
        transform: scale(1.03);
    } */

}

.login-btn:hover {
    background-color: var(--dark-clr-2);
    transform: scale(1.03);
}

/* Responsive css */

@media only screen and (max-width: 1024px) {
    form {
        width: 70%;
    }
}

@media only screen and (max-width: 820px) {

    .container {
        position: relative;
    }

    form {
        height: 80%;
    }

    .form-part {
        position: absolute;
        width: 80%;
        height: 60%;
        border-radius: 0.3rem;
    }

    .image-part {
        width: 100%;
    }

}

@media only screen and (max-width: 480px) {

    .container {
        height: 98%;
    }

    .form-part {
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 0.3rem;
        backdrop-filter: blur(0.3rem);
    }

    .image-part {
        background-size: cover;
    }

    form {
        height: 60%;
        width: 90%;
    }

}

@media only screen and (max-width: 430px) {

    form {
        height: 60%;
        width: 95%;
    }

}

@media only screen and (max-width: 414px) {

    form {
        height: 75%;
        width: 95%;
    }

}


@media only screen and (max-width: 375px) and (max-height: 667px) {

    form {
        height: 85%;
        width: 95%;
    }

}

@media only screen and (max-width: 320px) {

    form {
        height: 95%;
    }

}


/* Responsive css */