@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    /* Primary */
    --Red: hsl(0, 100%, 74%);
    --Green: hsl(154, 59%, 51%);
    /* Accent */
    --Blue: hsl(248, 32%, 49%);
    --Green-Shadow: hsl(154, 59%, 45%);
    /* Neutral */
    --Dark-Blue: hsl(249, 10%, 26%);
    --Grayish-Blue: hsl(246, 25%, 77%);

    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: white;
    font-size: 16px;

    background-color: var(--Red);
    background-image: url('./images/bg-intro-desktop.png');
    background-position: center;
    background-repeat: no-repeat;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1150px;
    margin: 0 auto;
    min-height: 94vh;
}

.container > div {
    flex: 1;
    padding: 0 20px;
}

h1 {
    font-size: 50px;
    line-height: 58px;
}

p {
    font-size: 16px;
    opacity: 0.8;
}

.box {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 6px rgba(0, 0, 0, 0.2);
    padding: 40px;
    margin-bottom: 25px;
    text-align: center;
}

.box p {
    margin: 0;
}

.box-blue {
    background-color: var(--Blue);
    padding: 20px;
    height: 60px;
    margin-top: 30px;
}

.form-control {
    position: relative;
    margin-bottom: 20px;
}

.form-control small {
    color: var(--Red);
    font-weight: 600;
    position: absolute;
    bottom: -24px;
    right: 0;
    opacity: 0;
    text-align: right;
}

input {
    border-radius: 5px;
    border: 1.3px solid var(--Grayish-Blue);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 15px 25px;
    display: block;
    width: 100%;
}

input:focus {
    border: 1.3px solid var(--Blue);
    outline: none;
}

.form-control.error input {
    border-color: var(--Red);
    color: var(--Red);
}

.form-control.error input::placeholder {
    color: var(--Red);
}

.form-control img {
    opacity: 0;
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    height: 20px;
}

.form-control.error img {
    opacity: 1;
}

.form-control small {
    opacity: 0;
}

.form-control.error small {
    opacity: 1;
}

button {
    background-color: var(--Green);
    border-radius: 8px;
    border: 1px solid var(--Green-Shadow);
    box-shadow: 0 2px var(--Green-Shadow);
    color: white;
    cursor: pointer;
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    padding: 15px 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: 100%;
}

button:focus {
    outline: none;
}

button:active {
    box-shadow: 0 0 var(--Green-Shadow);
    transform: translateY(2px);
}

small {
    display: block;
    color: var(--Grayish-Blue);
    font-size: 11px;
    font-weight: 500;
    margin-top: 15px;
}

small a {
    color: var(--Red);
    font-weight: 600;
    text-decoration: none;
}

.attribution {
    font-size: 11px;
    text-align: center;
}

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

@media screen and (max-width: 830px) {
    body {
        background-image: url('./images/bg-intro-mobile.png');
        background-position: center;
        background-repeat: repeat;
    }
    h1 {
        font-size: 30px;
        line-height: 36px;
        text-align: center;
    }
    p {
        text-align: center;
    }
    .container {
        flex-direction: column;
        margin-top: 100px;
    }
    .box {
        padding: 20px;
    }
    .box-blue {
        height: auto;
    }
}