/**
* ! changing default styles of browser
**/

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: sans-serif;
}

.container{
    display: flex;
}

/**
* ! styles for content section
**/
.content{
    display: flex;
    flex-direction: column;
    background-color: #f2796e;
    justify-content: space-around;
    width: 55%;
    min-height: 100vh;
    padding: 10px 20px;
}

.content img{
    height: 50px;
    width: 100px;
}

.image{
    height: 65%;
    background-image: url("./images/illustration.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

.text{
    text-align:center;
    color:white;
    font-size: 18px;
}

/**
* ! styles for form section
**/

form{
    display: flex;
    flex-direction: column;
    justify-content:center;
    width: 45%;
    /* max-width: 400px; */
    box-shadow:2px 2px 4px rgba(0, 0, 0, 0.1);
    padding: 50px;
}

.title{
    font-size: 25px;
    font-weight: bold;
    margin-bottom: 20px;
}

form > div{
    margin-bottom: 15px;
    position: relative;
}

form > div > input{
    width: 100%;
    height: 40px;
    border-radius: 8px;
    outline:none;
    border:2px solid #c4c4c4;
    padding: 0 30px;
    box-shadow:2px 2px 4px rgba(0, 0, 0, 0.1);
}

label{
    display: block;
    margin-bottom: 5px;
}

input:focus{
    border: 2px solid #f2796e;
}

/**
* ! styles for form social section
**/
.btn{
    margin-top: 15px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 15px;
}

.btn-1,
.btn-2{
    padding:5px;
    width: 100%;
    display: flex;
    gap:15px;
    justify-content: center;
    align-items: center;
    border: 2px solid #c4c4c4;
    border-radius: 8px;
    box-shadow:2px 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.btn-2{
    background-color: #4f70b5;
    color:white; 
}

.btn-2>img{
    color:white;
}


.or{
    text-align: center;
    margin-top: 20px;
}

.question{
    font-size: 15px;
}

span{
    color:#f2796e;
    cursor: pointer;
}

img{
    width: 25px;
    height: 25px;
}



/**
* ! styles for form icons
**/


form > div > i{
    position: absolute;
    padding: 10px; 
}

.success-icon, 
.failure-icon{
    right: 0;
    opacity: 0;
}

.failure-icon,
.error{
    color: red;
}

.success-icon{
    color: green;
}

.error{
    font-size: 14.5px;
    margin-top: 5px;
}

/**
* ! styles for submit button
**/

button{
    margin-top: 15px;
    width: 100%;
    height: 45px;
    background-color: #f2796e;
    border: 2px solid #f2796e;
    border-radius: 8px;
    color: #fff;
    font-size: 20px;
    cursor: pointer; 
    box-shadow:2px 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.1s ease;
}

button:hover{
   opacity: 0.7;
}


/**
* ! media Queries for responsive design
**/

@media(max-width:900px) {
    .container{
        flex-direction: column;
    }

    #form, .content{
        width: 100%;
    }
    .btn{
        flex-direction: column;
    }
    .image{
        height: 75vh;
    }
}

@media (max-width: 425px) {
    #form{
        padding:20px;
    } 
}