/* prefixed by https://autoprefixer.github.io (PostCSS: v7.0.26, autoprefixer: v9.7.3) */

/************************
    General Styles
************************/

html,
body {
    margin: 0;
    padding: 0;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
}

body {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    background-image:
        url('../images/bg-pattern-desktop.svg');
    background-repeat: no-repeat;
    background-size: 70% 100%;
    overflow: hidden;
}

h1 {
    text-transform: uppercase;
    font-weight: 600;
    color: hsl(0, 6%, 24%);
    line-height: 1.2em;
    font-size: 3em;
    letter-spacing: .3em;
}

p {
    color: #874040;
    line-height: 1.7em;
}

form {
    border: 1px solid hsl(0, 36%, 70%);
    border-radius: 25px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    padding-left: 15px;
    width: 100%;
}


.container {
    display: -ms-grid;
    display: grid;
    -ms-grid-rows: 100px 1fr 50px;
    grid-template-rows: 100px 1fr 50px;
    -ms-grid-columns: 60vw 40vw;
    grid-template-columns: 60vw 40vw;
        grid-template-areas:
        "logo photo"
        "soon photo"
        "footer photo";
    height: 100vh;
}

/************************
    Logo
************************/

.logo {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
    grid-area: logo;
    padding: 50px 15% 0 15%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

/************************
    Photo
************************/

.photo {
    -ms-grid-row: 1;
    -ms-grid-row-span: 3;
    -ms-grid-column: 2;
    grid-area: photo;
    text-align: right;
    height: 100vh;
}

.photo picture {
    -o-object-fit: cover;
       object-fit: cover;
}

.photo img {
    height: 100%;
    width: 100%;
    -o-object-fit: cover;
       object-fit: cover;
}

/************************
    Coming Soon Text
************************/

.coming-soon {
    -ms-grid-row: 2;
    -ms-grid-column: 1;
    grid-area: soon;
    padding: 50px 15%;
}

.coming-soon p {
    margin-bottom: 32px;
    max-width: 500px;
}

.pink-header {
    font-weight: 300;
    color: #874040;
}

/************************
    Form
************************/

.form {
    grid-area: form;
    max-width: 500px;
}

label {
    display: none;
}

.email-input {
    width: 60%;
    padding: 0 5px 0 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    height: 40px;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;

}

.email-address {
    border: none;
    background-color: transparent;
    font-size: 16px;
    color: hsl(0, 36%, 70%);
    width: 100%;
    height: 100%;
}

.email-address:focus,
#submit:focus {
    outline: none;
}

.email-address::-webkit-input-placeholder {
    color: hsl(0, 36%, 70%);
}

.email-address::-moz-placeholder {
    color: hsl(0, 36%, 70%);
}

.email-address:-ms-input-placeholder {
    color: hsl(0, 36%, 70%);
}

.email-address::-ms-input-placeholder {
    color: hsl(0, 36%, 70%);
}

.email-address::placeholder {
    color: hsl(0, 36%, 70%);
}

.error {
    display: none;
    padding-right: 5px;
}

.submit {
    background: -o-linear-gradient(315deg, hsl(0, 80%, 86%), hsl(0, 74%, 74%));
    background: linear-gradient(135deg, hsl(0, 80%, 86%), hsl(0, 74%, 74%));
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    width: 100px;
    height: 50px;
    border-radius: 25px;
    -webkit-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
    z-index: 2;
    border: 1px solid hsl(0, 80%, 86%);
    -webkit-transform: scale(1.05);
        -ms-transform: scale(1.05);
            transform: scale(1.05);
}

.submit:hover {
    -webkit-box-shadow: 5px 5px 10px hsl(0, 80%, 86%);
            box-shadow: 5px 5px 10px hsl(0, 80%, 86%);
    -webkit-transform: scale(1.1);
        -ms-transform: scale(1.1);
            transform: scale(1.1);
}

#submit {
    z-index: 5;
    padding: 15px 40px;
}

.invalid-email,
.valid-email {
    display: none;
    padding-left: 25px;
}

.invalid-email p {
    color: #F96464;
}

/************************
    Footer
************************/

.footer {
    -ms-grid-row: 3;
    -ms-grid-column: 1;
    grid-area: footer;
}

.attribution { font-size: 11px; text-align: center; }
.attribution a { color: hsl(228, 45%, 44%); }


/************************
    Media Queries
************************/

@media (max-width: 768px) {
    .submit {
        width: 70px;
    }
}

@media (max-width: 625px) {
    body {
        background: -o-linear-gradient(315deg, hsl(0, 0%, 100%), hsl(0, 100%, 98%));
        background: linear-gradient(135deg, hsl(0, 0%, 100%), hsl(0, 100%, 98%));
        background-size: 500px 100%;
        text-align: center;
        overflow: auto;
    }

    h1 {
        font-size: 2.5em;
    }

    .container {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
        -ms-grid-rows: 85px 250px 1fr 50px;
        grid-template-rows: 85px 250px 1fr 50px;
            grid-template-areas:
            "logo"
            "photo"
            "soon"
            "footer";
        height: 100%;
        min-height: 100vh;
    }

    .logo {
        padding: 5px 30px;

    }

    .logo img {
        width: 100px;
    }

    .photo {
        height: 250px;
    }

    picture img {
        -o-object-position: top;
           object-position: top;
    }

    .coming-soon {
        padding: 10% 15% 0 15%;
    }

    .notice {
        margin-bottom: 0;
        text-align: left;
    }

    .logo {
        -ms-grid-row: 1;
        -ms-grid-column: 1;
    }

    .photo {
        -ms-grid-row: 2;
        -ms-grid-row-span: 1;
        -ms-grid-column: 1;
    }

    .coming-soon {
        -ms-grid-row: 3;
        -ms-grid-column: 1;
    }

    .footer {
        -ms-grid-row: 4;
        -ms-grid-column: 1;
    }
}

@media (max-width: 400px) {
    .coming-soon {
        padding: 10% 10% 0 10%;
    }

    .coming-soon p,
    .notice p {
        font-size: .85em;
    }
}