* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-size: 62.5%;
	font-family: sans-serif;
	background-color: #e5e5f7;
	background-image: radial-gradient(#c657d8 .1rem, transparent .1rem), radial-gradient(#c657d8 .1rem, #e5e5f7 .1rem);
	background-size: 1rem 1rem;
	background-position: 0 0, 1rem 1rem;
	display: flex;
	min-height: 100vh;
}

.form {
	background-color: #fff;
	margin: auto;
	width: 90%;
	max-width: 24rem;
	padding: 3.5rem 4rem;
	border-radius: 1rem;
	box-shadow: 0 .5rem 1rem -.5rem rgba(0,0,0, 30%);
	text-align: center;
}

.form__title {
	font-size: 1.7rem;
	margin-bottom: .5rem;
}

.form__paragraph {
	font-size: .7rem;
	font-weight: 300;
}

.form__link {
	font-weight: 400;
	color: #000;
}

.form__container {
	margin-top: 2rem;
	display: grid;
	gap: 2rem;
}

.form__group {
	position: relative;
	color: #57577e;
}

.form__input {
	font-family: sans-serif;
	font-size: 1rem;
	width: 100%;
	background: none;
	color: #70706c6c;
	font-size: 1rem;
	padding: .4rem;
	border: none;
	outline: none;
	border-bottom: .1rem solid #57577e;
}

.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
	transform: translateY(-.8rem) scale(.7);
	transform-origin: left top;
	color: #3866f2;
}

.form__input:not(:placeholder-shown) {
	color: #4d4646;
}

.form__label {
	color: #57577e;
	cursor: pointer;
	position: absolute;
	top: 0;
	left: .2rem;
	transform: translateY(.8rem);
	transition: transform .5s, color .3s;
}

.form__submit {
	font-family: sans-serif;
	font-size: 1rem;
	font-weight: 300;
	padding: .6rem 0;
	border: none;
	border-radius: .5rem;
	background: #3866f2;
	color: #fff;
}

.form__line {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: .1rem;
	background-color: #3866f2;
	transform: scale(0);
	transform: left bottom;
	transition: transform .4s;
}

.form__input:focus ~ .form__line,
.form__input:not(:placeholder-shown) ~ .form__line {
	transform: scale(1);
}

@media screen and (max-width: 425px){
	.form__title {
		font-size: 1.4rem;
	}

	.form__paragraph {
		font-size: .5rem;
	}
}