:root {
	--main-color: #df5f4b;
}

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

body {
	font-family: "Roboto", sans-serif;
	background-color: #ffe5e1;
	display: flex;
	align-items: center;
	min-height: 100vh;
}

.form {
	background-color: #fff;
	width: 90%;
	max-width: 400px;
	margin: 0 auto;
	padding: 4.5em 3em;
	border-radius: 20px;
	box-shadow: 0 5px 10px -5px rgb(0, 0, 0, 0.4);
	text-align: center;
}

.form__logo {
	width: 90px;
	margin-bottom: 1rem;
}
.form__title {
	font-size: 0.9rem;
	margin-bottom: 0.5em;
	text-transform: uppercase;
}

.form__paragraph {
	font-size: 0.8em;
	font-weight: 200;
}

.form__link {
	font-weight: 500;
	color: #000;
}

.form__container {
	margin-top: 3em;
	display: flex;
	flex-direction: column;
	gap: 2em;
}

.form__group {
	position: relative;
	--color: #5757577e;
}

.form__input {
	width: 100%;
	background: none;
	font-family: inherit;
	font-size: 0.8rem;
	color: #706c6c;
	padding: 0.6em 0.3em;
	border: none;
	outline: none;
	border-bottom: 1px solid var(--color);
}

.form__input:not(:placeholder-shown) + .form__label,
.form__input:focus + .form__label {
	transform: translateY(-12px) scale(0.7);
	transform-origin: top left;
	--color: #e5341a;
}

.form__label {
	color: var(--color);
	cursor: pointer;
	position: absolute;
	top: 0;
	left: 5px;
	font-size: 0.8em;
	transform: translateY(10px);
	transition: transform 0.5s, color 0.3s;
}

.form__submit {
	background-color: var(--main-color);
	color: #fff;
	font-family: inherit;
	font-size: 1rem;
	padding: 0.8em 0;
	border: none;
	border-radius: 1em;
}

.form__line {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 1px;
	background-color: var(--main-color);
	transform: scale(0);
	transform-origin: left bottom;
	transition: transform 0.4s;
}

.form__input:not(:placeholder-shown) ~ .form__line,
.form__input:focus ~ .form__line {
	transform: scale(1);
}

.form__back {
	display: flex;
	flex-direction: column;
	align-items: end;
}

.form__back--index {
	margin-top: 1.5rem;
	font-weight: 300;
	text-decoration: none;
	color: gray;
	font-size: 0.7rem;
}
