@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*{
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}

body{
    background: hsl(0, 100%, 74%) url("images/bg-intro-desktop.png") no-repeat;
    padding: 40px 5% 20px;
    color: white;
    font-family: poppins;
    font-size: 16px;
    position: relative;
    height: 100vh;
}

.head{
    text-align: center;
    margin-bottom: 15px;
    
}

.text{
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

.trial{
    background-color: hsl(248, 32%, 49%);
    text-align: center;
    font-size: 20px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 0px #da6c5d;
    width: 100%;
    margin-bottom: 40px;
}

.trial span{
    font-weight: 700;
}

.form{
    width: 100%;
    border-radius: 5px;
    padding: 18px 18px 22px 18px ;
    background-color: white;
    margin-bottom: 50px;
    box-shadow: 0 8px 0px #da6c5d;
}

input{
    display: block;
    width: 100%;
    padding: 13px;
    border: 1px solid #e2e2e2;
    border-radius: 3px;
    margin-bottom: 10px;
    color: hsl(249, 10%, 26%);
    font-weight: 700;
}

input:focus{
    outline: 0;
    border: 2px solid hsl(248, 32%, 49%);
}

label.success input{
    border: 3px solid hsl(154, 59%, 51%);
}

label.success input:focus,
label.error input:focus{
    border: 2px solid hsl(248, 32%, 49%);
}

label.error input{
    border: 2px solid hsl(0, 100%, 74%);
}


.label{
    position: relative;
    width: 100%;
    display: inline-block;
    margin: 10px 0px 0px;
}
.icon-error{
    
    display: none;
}

.icon-error.active{
    display: block;
    position: absolute;
    top: 15%;
    right: 7%;
}
.label .error{
    display: block;
    text-align: right;
    color: red;
    font-size: 13px;
}

.btn{
    width: 100%;
    border: 3px;
    background-color: hsl(154, 59%, 51%);
    text-align: center;
    text-transform: capitalize;
    font-size: 16px;
    font-weight: 700;
    padding: 20px;
    box-shadow: 0 3px 1px #34b77f;
    border-radius: 5px;
    margin-bottom: 15px;
    color: white;
}

.btn:hover{
    background-color: #77e2b4;
}

.terms{
    width: 80%;
    margin: auto;
    text-align: center;
    color: hsl(246, 25%, 77%);
    font-size: 10px;
}

.terms span{
    color: hsl(0, 100%, 74%) ;
}
.attribution {
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 11px; 
    text-align: center; 
    width: 100%;
}

.attribution a {
    color: hsl(228, 45%, 44%); 
}

@media (min-width: 700px) {
    body{
        width: 100%;
        height: 100vh;
        padding: 6% 10%;
        display: flex;
        flex-flow: row nowrap;
        justify-content: center;
        align-content: center;
        gap: 6%;
    }
    .head-text,
    .trial-form{
        display: flex;
        flex-flow: column;
        justify-content: center;
    }
    .head-text{
        flex-basis: 40%;
    }
    .trial-form{
        flex-basis: 40%;
    }
    .head,
    .text{
        text-align: left;
    }
    .head{
        font-size: 42px;
    }
    .form{
        margin-bottom: 0%;
    }
    .attribution {
        position: absolute;
        bottom: 10px;
        font-size: 11px; 
        text-align: center; 
        width: 100%;
    }
}