*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* Adding basic styles */
body{
    background-color: black;
    height: 100svh;
    height: 100vh;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    font-family: 'Lato', sans-serif;
}
/* actual form container inside form-heading and form itself */
.form-container{
    width: min(400px,80vw);
    min-height: 300px;
    border:solid 1px grey;
    border-radius: 5px;
    padding:8px;
}
/* two headings */
h1{
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 3rem;
    font-size: 2rem;
    color: rgb(235, 235, 235);
    font-weight: 100;
}
/* main heading */
.header{
    background-color: rgba(255, 255, 255,0.2);
    border-radius: 5px;
    line-height: 1.5;
    margin: 1em;
}

.heading{
    font-size: 2.5rem;
    margin-top: 2rem;
    margin-bottom: 0;
    padding: 1rem;
}
.header>p{
    padding: 2rem;
}

/* Basic form styling */
.form-row input{
    width: 300px;
    max-width: 70vw;
}

.form-btn{
    text-align: center;
    max-width: 100%;
}
/* Button Styling */
.form-btn button{
    padding: 10px min(50px,10vw);
    background-color: rgba(255, 255, 255,0.2);
    border:1px solid rgba(255, 255, 255,0.5);
    border-radius: 5px;
    color: white;
    margin: 1rem 0;
    font-family: 'Lato', sans-serif;

}
button:hover{
    background-color: rgba(0,0,0,.3);
}

/* input state styling */
input{
    border-radius: 4px;
    height: 2.3rem;
    padding: 6px 0 0 6px ;
    margin: .8rem;
    color: white;
    font-family: 'Lato', sans-serif;

}
input:valid{
    border:solid 2px green ;
    background-color: transparent;
}
input:invalid{
    border: solid 2px red;
    background-color: transparent;

}


/* if the placeholder is there  */
input:placeholder-shown{
    background-color: transparent;
    border:2px solid rgb(195, 195, 195);
}

/* while focusing */
input:focus{
    outline: none;
    background-color: transparent;

}

/* while focusing the placeholder be. */
input:focus::placeholder{
    color:transparent;
}
/* placeholder's  */
input::placeholder{
    color:#fff;
    font-weight: 600;
}

/* Label Styling */
label{
    position: absolute;
    top:15px;
    left:20px;
    font-size: .6em;
    display: none;
    font-weight:normal;
    font-family: 'Lato', sans-serif;

}

/* while focusing or valid or there's no placeholder  */
input:focus+label , input:valid+label {
    display: block;
}
input:not(:placeholder-shown)+label{
    display: block;
}


/* .form-row div container adjustment for label postioning */
.form-row{
    text-align: center;
    position: relative;
    width:330px;
    max-width: 100%;
    margin: 0 auto;
    border:solid transparent
}

/* Background image */
body{
    background-image: url(./mars-photo-daniel-unsplash.jpeg);
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
    background-attachment: fixed

}

/* Glass Effect */
.form-container{
    background-color: rgba(255,255,255,.1);
    backdrop-filter: blur(1px);
    border:1px solid rgba(255,255,255,.1)
}
/* While the password is wrong */
.status{
    font-size: .6rem;
    color:red;
    text-align: start;
    margin-left: 13px;
}
/* Login */
.login{
    text-align: center;
    margin: 1rem;
}
.login > a{
    color:rgb(171, 171, 171)
}

/* while screen is > 850px */
@media only screen and (max-width:850px) {
    body{
        display: block;
        height: 100vh;
        background-image: url(./mars-photo-daniel-unsplash.jpeg);
    }
    .form-container{
        margin:2rem auto;
        padding: .5rem 0;

    }
    label{
        left:25px:
    }
    
    .form-container >h1{
        margin: 1rem;
    }
    .heading{
        margin-bottom: 0;
        padding: 0;
    }
    .header>p{
        padding: 1rem;
        font-size:.8rem;
    }
}
