h1 {
    color: #0d6efd;
    font-size: 4rem;
    text-align: left;
    margin: 0;
}

h2 {
    font-size: 2.2rem;
    text-align: left;
    margin: 0;
}

#pageContainer {
    padding-left: 10%;
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10%;
    background-color: #f0f2f5;
}

#sectionTitles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 40%;
    text-align: justify;
    gap: 15px;
}

#bothSections {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 50px;
    width: 50%;
}

.registerOrLoginCard {
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    padding: 24px;
    height: fit-content;
    width: 80%;
    background-color: #ffffff;
}

.registerOrLoginForm {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 3px;

}

.invalid {
    color: rgb(241, 64, 64);
    font-size:x-small;
    font-style: italic;
    align-self: flex-start;
    margin-bottom: 0;
}

@media screen and (max-width: 900px) {
    #pageContainer {
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 50px;
    }

    #bothSections {
        flex-direction: row;
        width: 100%;
    }


    .registerOrLoginCard {
        width: 45%;
    }
}


@media screen and (max-width: 670px) {

    #pageContainer {
        gap: 40px
    }

    #sectionTitles {
        gap: 10px;
    }


    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    h3 {
        font-size: 1rem;
    }

    #bothSections {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }

    .registerOrLoginCard {
        width: 60%;
    }
}

@media screen and (max-width: 480px) {
    .registerOrLoginCard {
        width: 80%;
    }
}