@import url('https://fonts.googleapis.com/css2?family=Libre+Franklin:wght@300;600;700&display=swap');

:root {
	--white: hsl(0, 0%, 100%);
	--blue: hsl(223, 87%, 63%);
	--paleblue: hsl(223, 100%, 88%);
	--darkblue: hsl(209, 33%, 12%);
	--red: hsl(354, 100%, 66%);
	--gray: hsl(0, 0%, 59%);
}

* {
	box-sizing: border-box;
}

body {
	background-color: var(--white);
	font-family: 'Libre Franklin', 'sans-serif';
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	overflow-x: hidden;
	margin: 0;
	padding: 0 1.5rem;
}

.container {
	display: flex;
	flex: 1 0 auto;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 620px;
	margin: 4rem 0;
}

h1 {
	margin-top: 2rem;
	color: var(--gray);
	font-size: 2.9rem;
	font-weight: 300;
}

h1 strong {
	color: var(--darkblue);
}

p {
	margin: 0;
	margin-top: -1rem;
	font-size: 20px;
}

.form-row {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	width: 100%;
	margin: 2.1rem 0 3rem 0;
}

.form-row input {
	font-family: inherit;
	font-size: 15px;
	width: 80%;
	padding: 0.9rem 1.8rem 0.9rem 1.8rem;
	border: 1px solid var(--paleblue);
	border-radius: 30px;
	margin-right: 0.8rem;
}

.form-row input.error {
	border: 1px solid var(--red);
}

.form-row input:focus {
	outline: none;
}

::placeholder {
	opacity: 0.5;
	color: var(--gray);
}

.form-row button {
	font-family: inherit;
	font-weight: 600;
	background-color: var(--blue);
	color: var(--white);
	border: none;
	border-radius: 30px;
	width: 220px;
	padding: 0.9rem 1.8rem 0.9rem 1.8rem;
	box-shadow: var(--paleblue) 0px 7px 24px;
	cursor: pointer;
}

.form-row button:hover {
	background-color: var(--paleblue);
}

.message {
	display: flex;
	width: 100%;
	font-style: italic;
	font-size: 0.7rem;
	margin-top: -2.5rem;
	margin-bottom: 2.5rem;
	padding-left: 1.8rem;
	text-align: start;
}

#error-message {
	color:var(--red);
}

#success-message {
	color: var(--blue);
}

.hidden {
	display: none !important;
}

#illustration {
	width: 100%;
	margin: 1.8rem 0;
}

.social-buttons {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	margin: 2.5rem 0.3rem;
}

.social {
	color: var(--blue);
	display: flex;
	justify-content: center;
	align-items: center;
	border: 1px solid var(--paleblue);
	border-radius: 50%;
	padding: 0.5rem;
	margin: 0 0.4rem;
	cursor: pointer;
	width: 30px;
	height: 30px;
}

.social:hover {
	color: var(--white);
	background-color: var(--blue);
	border: 1px solid var(--white);
}

i {
	font-size: 0.8rem;
}

#rights {
	color: var(--gray);
	font-size: 0.7rem;
}

footer {
	flex-shrink: 0;
	height: fit-content;
	padding: 0.5rem;
	text-align: center;
	color: var(--white);
	font-size: 0.8rem;
	border-top: 5px;
	background-color: var(--blue);
	width: 100vw;
}

footer a {
	text-decoration: none;
	color: var(--paleblue);
}

footer a:hover {
	color: var(--darkblue);
}

@media(max-width: 635px) {
	#logo {
		margin-bottom: 1rem;
	}

	.container {
		width: 100%;
	}

	h1 {
		text-align: center;
		font-size: 1.6rem;
	}

	#subtitle {
		font-size: 0.9rem;
		margin: 0.7rem 0;
	}

	.form-row {
		flex-direction: column;
	}

	.form-row input {
		width: 100%;
		margin: 0.5rem 0;
	}

	.form-row input.error, .form-row input.success {
		margin-bottom: 2.4rem;
	}

	.form-row button {
		width: 100%;
		margin: 0.4rem 0;
	}

	.message {
		position: absolute;
		display: flex;
		width: 100%;
		font-size: 0.7rem;
		top: 360px;
		justify-content: center;
		padding-left: 0;
	}
	
}