@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;600&display=swap');
* {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}
body {
	font-family: 'Josefin Sans', sans-serif;
	font-size: 16px;
}
header {
	position: absolute;
	height: auto;
	width: 100%;
	padding: 30px;
}
header img {
	width: 150px;
}
.container {
	padding-top: 100px;
	min-height: 100vh;
	width: 100%;
	display: flex;
	flex-direction: column-reverse;
	justify-content: flex-end;
	align-items: center;
	background-image: linear-gradient(135deg, hsl(0, 0%, 100%), hsl(0, 100%, 98%));
	padding-bottom: 50px;
}
.container .left {
	width: 100%;
	padding: 50px 30px 0 30px;
}
.container .right {
	width: 100%;
	height: 300px;
	background-image: url(./images/hero-mobile.jpg);
	background-size: cover;
}
.container .right img {
	width: 100%;
	height: 100%;
}
.container .left h1 {
	letter-spacing: .5rem;
	text-align: center;
	font-size: 3.2rem;
	font-weight: 200;
	text-transform: uppercase;
	color: hsl(0, 36%, 70%);
	line-height: 3.5rem;
}
.container .left h1 span {
	color: hsl(0, 6%, 24%);
	font-weight: 700;
}
.container .left p {
	max-width: 450px;
	text-align: center;
	color: hsl(0, 36%, 70%);
	font-size: .9rem;
	line-height: 1.5rem;
	margin: 20px auto 40px auto;
}
.container form {
	position: relative;
	display: block;
	height: 50px;
	width: 100%;
	max-width: 400px;
	margin: 0 auto;
}
.container form input {
	position: absolute;
	width: 100%;
	outline: none;
	border: 1px solid hsl(0, 36%, 70%);
	height: 100%;
	border-radius: 50px;
	padding-left: 30px;
	font-family: 'Josefin Sans', sans-serif;
	font-size: 1.1rem;
}
.container form label {
	visibility: hidden;
	position: absolute;
}
.container form button {
	cursor: pointer;
	position: absolute;
	right: 0;
	border: none;
	outline: none;
	color: white;
	width: 70px;
	height: 100%;
	border-radius: 50px;
	background-image: linear-gradient(135deg, hsl(0, 80%, 86%), hsl(0, 74%, 74%));
	box-shadow: 0px 0px 18px 1px #f4aaab82;
	transition: .3s ease box-shadow;
}
.container form button:hover {
	background-image: linear-gradient(135deg, hsl(0, 80%, 86%), hsla(0, 52%, 80%, 0.781));
	box-shadow: 0px 0px 13px 2px #f4aaabbf;
}
.container form input::placeholder {
	color: hsl(0, 36%, 70%);
	font-family: 'Josefin Sans', sans-serif;
	font-size: 1.1rem;
	opacity: .8;
}
.container form .error-icon {
	display: inline-block;
	position: absolute;
	right: 85px;
	top: 24%;
	display: none;
}
.container form .error-text {
	position: absolute;
	left: 30px;
	top: 40px;
	font-size: 1rem;
	display: none;
}
.container form.error .error-icon,
.container form.error .error-text {
	display: block;
}
.container form.error input {
	border: 2px solid hsl(0, 93%, 68%);
}

footer {
	padding: 10px 0;
	background-color: black;
	color: white;
	text-align: center;
	font-size: .8rem;
	line-height: 1.2rem;
}
footer a {
	color: aqua;
	text-decoration: none;
}

@media only screen and (min-width: 768px) {
	header {
		padding-left: 10%;
	}
	.container {
		padding-top: 0;
		flex-direction: row;
		padding-bottom: 0;
	}
	.container .right {
		width: 80%;
		height: 100vh;
		background-image: url(./images/hero-desktop.jpg);
	}
	.container .left {
		padding-top: 28vh;
		width: 100%;
		height: 100vh;
		padding-left: 10%;
		background-image: url(./images/bg-pattern-desktop.svg);
		background-size: cover;
		background-position: center;
	}
	.container .left h1 {
		text-align: left;
		font-size: 5rem;
		line-height: 5.5rem;
	}
	.container .left p {
		margin-left: 0;
		text-align: left;
		font-size: 1.1rem;
	}
	.container form {
		margin-left: 0;
	}
	.container form button {
		width: 80px;
	}
}
