@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@300;400;600&display=swap");

:root {
	/* Colors */

	/* Primary */

	--desaturated-red: hsl(0, 36%, 70%);
	--soft-red: hsl(0, 93%, 68%);

	/* Neutral */

	--dark-grayish-red: hsl(0, 6%, 24%);

	/* ### Gradients */
	--gradient-1: linear-gradient(135deg, hsl(0, 0%, 100%), hsl(0, 100%, 98%));
	--gradient-2: linear-gradient(135deg, hsl(0, 80%, 86%), hsl(0, 74%, 74%));

	--box-shadow: hsl(0, 80%, 86%) 0px 8px 24px;

	/* Typography */

	--font-size: 16px;
	--font-family: "Josefin Sans", sans-serif;
	--font-weight-light: 300;
	--font-weight-medium: 400;
	--font-weight-bold: 600;
}

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

html {
	font-size: var(--font-size);
	font-family: var(--font-family);
}
body {
	min-height: 100vh;
	background: var(--gradient-1);
}

.header {
	padding: 2rem;
}
.header__logo {
	width: 6.5rem;
	height: auto;
}

picture img {
	min-width: 100%;
}

.content {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 2rem;
}

.content__header {
	text-align: center;
	color: var(--dark-grayish-red);
	font-weight: var(--font-weight-bold);
	padding: 2rem 2rem 1rem 2rem;
	font-size: 2.5rem;
	text-transform: uppercase;
	letter-spacing: 1rem;
}

.content__header span {
	font-weight: var(--font-weight-light);
	color: var(--desaturated-red);
}

.content__text {
	text-align: center;
	color: var(--desaturated-red);
	line-height: 1.4rem;
	font-size: 0.9rem;
}

.input__container {
	width: 100%;
	position: relative;
	margin-top: 2rem;
}
.input {
	border: 1px solid var(--desaturated-red);
	border-radius: 2rem;
	padding: 1rem 2rem;
	width: 100%;
	color: var(--dark-grayish-red);
	outline: none;
}

.input::placeholder {
	color: var(--desaturated-red);
	opacity: 0.4;
}

.input__button {
	background: var(--gradient-2);
	padding: 0.92rem 1.9rem;
	border: none;
	border-radius: 2rem;
	position: absolute;
	right: -1px;
	top: -1px;
	box-shadow: var(--box-shadow);
}
.input__button:hover,
.input__button:active {
	background: hsl(0, 80%, 86%);
}
.input--error .input {
	border-color: var(--soft-red);
	border-width: 2px;
}
.input--error .input__button::before {
	content: url(/images/icon-error.svg);
	position: absolute;
	right: 5rem;
}
.input__text {
	display: none;
}
.input--error .input__text {
	display: block;
	color: var(--soft-red);
	font-size: 0.8rem;
	padding: 0.5rem 2rem;
}
@media only screen and (min-width: 1000px) {
	body {
		background: url("images/bg-pattern-desktop.svg");
		background-repeat: no-repeat;
		background-size: cover;
	}

	.header {
		padding: 4rem 6rem;
	}
	.header__logo {
		width: 8rem;
	}
	main {
		padding: 4rem;
		height: 100%;
	}
	.content {
		max-width: 30rem;
	}
	.content__header,
	.content__text {
		text-align: left;
		padding: 0rem;
	}

	.content__header {
		font-size: 3rem;
		margin-bottom: 2rem;
	}

	picture {
		position: fixed;
		z-index: 1;
		right: 0;
		top: 0;
	}
	picture img {
		height: 100vh;
	}
}
