body{
    display: flex;
    justify-content: center;
    align-content: center;
}

#form-wrapper{
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    background-color: rgb(var(--main-light-color));
}

form{
    margin: auto;
    width: 100%;
    padding: 20px;
}

#background{
    background-color: #2040b4;
    background-image: url("/assets/img/user-access-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 80%;
    display: none;
}

.form-item{
    position: relative;
    padding-top: 20px;
    margin-bottom: 20px;
}

.form-item label {
    color: rgba(var(--main-dark-color), 0.9);
}

.form-item input[type="text"]+label,
.form-item input[type="password"]+label,
.form-item input[type="email"]+label{
    position: absolute;
    left: 0;
    pointer-events: none;
    top: 30px;
    transition: all .4s;
    transform: translateY(-30px) scale(0.8);
    transform-origin: 0 50%;
}

input[type="text"],
input[type="password"],
input[type="email"]{
    width: 100%
}

.form-item input[type="text"]::placeholder,
.form-item input[type="password"]::placeholder,
.form-item input[type="email"]::placeholder{
    color: transparent;
    user-select: none;
}

.form-item [type="text"]:placeholder-shown+label,
.form-item [type="password"]:placeholder-shown+label,
.form-item [type="email"]:placeholder-shown+label{
    transform: translateX(5px);
    color: rgba(var(--main-dark-color), 0.4);
}

.form-item [type="text"]:focus+label,
.form-item [type="password"]:focus+label,
.form-item [type="email"]:focus+label{
    transform: translateY(-30px) scale(0.8);
    color: rgba(var(--main-dark-color), 0.9);
}



input{
    outline: none;
}


input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    border: 2px solid rgb(var(--sub-light-color));
    border-width: 0 0 1px 0;
    -webkit-text-fill-color:  rgb(var(--main-dark-color));
    -webkit-box-shadow: 0 0 0 1000px rgba(var(--main-dark-color),0.05) inset;
    transition: background-color 5000s ease-in-out 0s;
}

input[type="submit"],
button{
    border: 2px solid  rgb(var(--main-dark-color));
    background-color: transparent;
    color:  rgb(var(--main-dark-color));
    padding: 10px 20px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 999px;
}



@media screen and (min-width:760px) {
    #background{
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 80px;
        text-shadow:  rgb(var(--main-light-color)) 8px 8px 0;
    }

    #form-wrapper{
        width: 450px;
        min-width: 20%;
        max-width: 100%;
    }
}


@media screen and (min-width:1400px){
    #background{
        font-size: 190px;

    }
}