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

html {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

.main {
    background-image: linear-gradient(to right, rgba(246, 28, 28, 0.5), rgba(246, 28, 28, 0.5)), url("./images/bg-intro-desktop.png");
    height: 100vh;
    padding: 100px 150px;
}

.registration {
    display: flex;
}

.registration__title {
    flex: 0 0 50%;
    padding: 150px 80px 80px 0;
}

.secondary-text {
    color: rgb(241, 235, 235);
    font-size: 12px;
    font-weight: 500;
}

.primary-text {
    color: #fff;
    font-size: 45px;
    padding-bottom: 30px;
    line-height: 1.1;
}

.registration__form {
    flex: 0 0 50%;
}

.form__head {
    width: 100%;
    background-color: hsl(248, 32%, 49%);
    border-radius: 10px;
    box-shadow: 0 8px 2px -1px rgba(0, 0, 0, 0.3);
    padding: 15px;
    margin-bottom: 15px;
}

.tertiary-text {
    text-align: center;
    color: #fff;
    font-weight: 600;
}

.sub-text {
    color: hsl(246, 25%, 77%);
}

.form {
    background-color: #fff;
    width: 100%;
    padding: 40px 40px;
    border-radius: 10px;
    box-shadow: 0 8px 2px -1px rgba(0, 0, 0, 0.3);
}

.form__group {
    margin-bottom: 10px;
    position: relative;
}

.form__group[data-error] .form__input {
    border: 1px solid red;
    color: red;
    background-color: #fff;
    background-image: url('./images/icon-error.svg');
    background-repeat: no-repeat;
    background-position: right;
}

.form__group[data-error]::after {
    content: attr(data-error);
    font-size: 14px;
    font-style: italic;
    color: red;
    background-color: #fff;
    text-align: right;
    display: block;
}

.form__input {
    width: 100%;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    transition: border 0.4s, background-image .1s;
}

.submit {
    background-color: hsl(154, 59%, 51%);
    color: #fff;
    font-weight: 400;
}

.form-text {
    font-size: 10px;
    text-align: center;
    color: hsl(246, 25%, 77%);
}

.form-sub {
    color: hsl(0, 100%, 74%);
    font-weight: 700;
}


/* MEDIA QUERY */
@media (max-width: 600px) {
    .main {
        background-image: linear-gradient(to right, rgba(246, 28, 28, 0.5), rgba(246, 28, 28, 0.5)), url("./images/bg-intro-mobile.png");
        padding: 30px;
        width: 100%;
        height: 100%;
    }

    .registration {
        flex-direction: column;
        width: 100%;
    }

    .registration__title {
        flex: 0 0 0;
        padding: 50px 30px;
        width: 100%;
    }

    .registration__form {
        flex: 0 0 0;
        width: 100%;
    }

    .primary-text {
        font-size: 45px;
        padding: 10px 30px;
    }
}

@media (max-width: 375px) {
    .main {
        background-image: linear-gradient(to right, rgba(246, 28, 28, 0.5), rgba(246, 28, 28, 0.5)), url("./images/bg-intro-mobile.png");
        padding: 20px;
        width: 100%;
        height: 100%;
        font-size: 15px;
    }

    .registration {
        flex-direction: column;
        width: 100%;
    }

    .registration__title {
        flex: 0 0 0;
        padding: 50px 10px;
        width: 100%;
    }

    .registration__form {
        flex: 0 0 0;
        width: 100%;
    }

    .primary-text {
        font-size: 30px;
        padding: 0 16px 30px 16px;
    }

    .form {
        padding: 20px;
    }

    .form-text {
        text-align: center;
        padding: 0 20px;
    }
}
