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

body {
	font-family: 'Mulish', sans-serif;
	min-height: 100vh;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	background-color: rgb(8, 20, 31);
	color: white;
}

h1 {
	padding: 100px;
	font-size: 46px;
}

.container {
	width: 50%;
	position: relative;
	height: 50px;
	overflow: hidden;
	background-color: rgb(8, 20, 31);
}

.input {
	width: 100%;
	height: 100%;
	padding-top: 20px;
	border: none;
	outline: none;
	font-size: 18px;
	color: rgb(219, 219, 219);
	background-color: rgb(8, 20, 31);
}

.input-label {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	border-bottom: 1px solid rgb(196, 196, 196);
}

.input-label::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	border-bottom: 3px solid dodgerblue;
	left: 0;
	bottom: -1px;
	transform: translateX(-101%);
	transition: all 0.4s ease;
}

.label-name {
	position: absolute;
	bottom: 5px;
	left: 0;
	transition: all 0.3s ease;
	font-size: 18px;
	font-weight: 600;
}

.input:focus + .input-label .label-name,
.input:valid + .input-label .label-name {
	transform: translateY(-150%);
	font-size: 14px;
	color: dodgerblue;
}

.input:focus + .input-label::after,
.input:valid + .input-label::after {
	transform: translateX(0);
}
