*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: hsl(234, 29%, 20%);
    font-family: "Roboto", sans-serif;
}

main{
    height: 460px;
    width: 720px;
    background-color: white;
    border-radius: 25px;
    display: flex;
    flex-direction: row;

}

#img-desktop img{
    height: 420px;
    margin-left: 20px;
    margin-top: 20px;
    margin-right: 20px;
    
}

#main{
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 50px;
    margin-top: 60px;
}

#list{
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#main h1 {
    font-size: xx-large;
    font-weight: 900;
    color: hsl(234, 29%, 20%);
 
    
}

#main p{
    font-weight: 600;
    color: hsl(234, 29%, 20%);
    
}

input{
    height: 40px;
    width: 350px;
    margin-top: 15px;
    border-radius: 10px;
    
}


button{
    height: 42px;
    width: 350px;
    margin-top: 15px;
    border-radius: 10px;
    border: 2px solid black;
    background-color: hsl(234, 29%, 20%);
    color: white;
    font-weight: bolder;
    cursor: pointer;
    transition: .5s;
    font-size: 0.7rem;
}

/*<--success-msg-->*/
#success-msg{
display: none;
    height: 460px;
    width: 450px;
    background-color: white;
    border-radius: 10px;
}

#success-msg img{
    margin-left: 40px;
    margin-top: 30px;
}
#success-msg h1{
     margin-left: 60px;
    margin-top: 30px;
    font-weight: bolder;
    font-size: 3rem;
}

#success-msg p{
    margin-left: 60px;
    margin-top: 30px;
}
#disabled{
    margin-left: 60px;
    margin-top: 30px;
    font-size: 1rem;
    cursor: pointer;
} 


/*<--------- Media Query for Tablets---------->*/


/*<--------- Media Query for Tablets & Mobile ---------->*/

@media (max-width: 770px) {

    main {
        flex-direction: column-reverse; 
        width: 90%;
        height: auto;
        border-radius: 15px;
        overflow: hidden;
    }

    #img-desktop img {
        height: auto;
        width: 100%;
        background-image: url(illustration-sign-up-tablet.svg);
        margin: 0;
        border-radius: 0 0 15px 15px;
        object-fit: cover;
    }

    #main {
        margin: 30px 20px;
        align-items: center;
        text-align: center;
    }

    #main h1 {
        font-size: 2rem;
    }

    input,
    button {
        width: 100%;
    }

    #success-msg {
        width: 90%;
        height: auto;
        border-radius: 15px;
    }

    #success-msg h1,
    #success-msg p,
    #disabled {
        margin-left: 20px;
        margin-right: 20px;
    }

    #success-msg h1 {
        font-size: 2rem;
        margin-top: 20px;
    }

    #disabled {
        width: 80%;
        margin: 20px auto;
         margin-left: 40px;
    }

}

/*<--------- Media Query for Small Phones (350px) ---------->*/
 
@media (max-width: 320px) {

    body {
        padding: 10px;
    }

    main {
        flex-direction: column-reverse;
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    #img-desktop img {
        
        margin: 0;
        background-image: url(illustration-sign-up-mobile.svg);
        border-radius: 0 0 10px 10px;
        object-fit: cover;
    }

    #main {
        margin: 20px 10px;
        gap: 15px;
        align-items: center;
        text-align: center;
    }

    #main h1 {
        font-size: 1.6rem;
    }

    #main p {
        font-size: 0.9rem;
    }

    input,
    button {
        width: 100%;
        
    }

    button {
        padding: 10px;
    }

    #success-msg {
        width: 100%;
        height: auto;
        padding: 20px 10px;
        border-radius: 10px;
    }

    #success-msg img {
        margin-left: 0;
        display: block;
        margin: 20px auto 0;
    }

    #success-msg h1,
    #success-msg p {
        margin: 20px 10px 0;
        text-align: center;
        font-size: 1.5rem;
    }

    #disabled {
        width: 90%;
        margin: 20px auto;
        font-size: 0.9rem;
       
    }
}

