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

@font-face {
  font-family: 'Ubuntu';
  src: url("../fonts/Ubuntu-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ubuntu";
  src: url("../fonts/Ubuntu-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
	font-family: "Ubuntu", "Roboto";
	box-sizing: border-box;
}

body {
	min-height: 100svh;
	background-image: url("../images/icarius-jpeg.jpg");
	background-size: cover;
	background-position: center;
}

img {
  display: block;
  max-width: 100%;
}

.container {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 100svh;
	justify-content: space-between;
	padding: 1rem 0 2rem 0;
}

.formDiv {
	/* Blur in .content div */
	backdrop-filter: blur(10px);
	/* 'a' from rgba stands for 'alpha' (opacity) */
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2.5rem;
	/* Shadow that projects the content div */
	box-shadow: 0 8px 32px rgba(0,0,0,0.3);
	gap: 2rem;
}

.hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	/* text-shadow: [displacement-x] [displacement-y] [blur] [color] */
	text-shadow: 0 4px 30px rgba(0, 0, 0, 0.7);
}

svg {
	width: 2rem;
}

.logo {
	display :flex;
	color: white;
	gap: 1rem;
	font-size: 2rem;
}

#welcome {
	margin: 0;
}

form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.formGroup {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

label {
	color: white;
}

input {
	background-color: transparent;
	border: none;
	border-bottom: 1px solid rgba(255,255,255,0.4);
	outline: none;
	width: 100%;
	color: white;
}

input:focus {
	border-bottom: 1px solid white;
}

input:user-invalid {
	border-bottom: 2px solid rgb(229, 33, 33);
}

#subtext{
	color: white;
	font-size: 1rem;
	max-width: 30ch;
	text-align: center;
}

footer {
	color: white;
	font-size: 0.7rem;
}

a {
	text-decoration: none;
	color: white;
	font-weight: bold;
}

a:hover,
a:active {
	color: pink;
	cursor: pointer;
}

button {
	padding: 1rem;
	background-color: pink;
	border: 1px solid pink;
	border-radius: 1.5rem;
	font-family: 'Ubuntu';
	font-size: 1rem;
	color: black;
}

button:hover,
button:active {
	cursor: pointer;
	background-color: rgb(254, 217, 223);
}

.login {
	color: white;
	text-align: center;
}

.formAndButtons {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.heroAndForm {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex-grow: 1;
	gap: 2.5rem;
}

.buttonCreateAccount {
	display: flex;
	justify-content: center;
}

.landscapeImg {
	display: none;
}

#desktopLeftFooter {
	display: none;
}


@media (min-width: 900px) and (orientation: landscape) {

	body {
		background-image: revert;
		background-size: revert;
		background-position: revert;
	}

	.container {
		padding: 0;
		align-items: revert;
	}

	.hero {
		/* 'revert is used' to undo the base settings */
		align-items: center;
		justify-content: center;
		gap: revert;
		/* background image to take part of the lesft side */
		min-width: 40svw;
		background-image: url("../images/icarius-jpeg.jpg");
		background-size: cover;
		background-position: center;
		min-height: 100svh;
	}

	.heroTop,
	.heroBottom {
		height: 50svh;
	}

	.heroTop {
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
	}

	.heroBottom {
		display: flex;
		flex-direction: column;
		justify-content: flex-end;
		padding-bottom: 2rem;
	}

	.formAndButtons {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		width: 60svw;
		min-height: 100svh;
		background-image: url("../images/sky-with-grain.png");
		background-size: cover;
		background-position: center;
	}

	.formDiv {
		width: 25svw;
	}

	.heroAndForm {
		flex-direction: row;
		width: 100%;
		gap: revert;
	}

	#welcome {
		font-size: 4rem;
	}

	svg {
		width: 3rem;
	}

	#subtext {
		font-size: 1.2rem;
	}

	.formGroupTop {
		display: flex;
		gap: 2rem;
	}

	.formGroupBottom {
		display: flex;
		gap: 2rem;
	}

	.formGroupTopLeft {
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}

	.formGroupTopRight {
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}

	footer {
		display: none;
	}

	#desktopLeftFooter {
		display: revert;
		color: white;
	}

}


@media (min-width: 700px) and (orientation: portrait) {

	#welcome {
		font-size: 4rem;
	}

	#subtext {
		font-size: 1.2rem;
	}

	.formGroupTop {
		display: flex;
		gap: 2rem;
	}

	.formGroupBottom {
		display: flex;
		gap: 2rem;
	}

	.formGroupTopLeft {
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}

	.formGroupTopRight {
		display: flex;
		flex-direction: column;
		gap: 1rem;
	}

} 