*,
*::before,
*::after {
	box-sizing: border-box;
}

input[type="text"],
input[type="password"] {
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
	margin: 0;
}

.text-field {
	margin-bottom: 1rem;
	position: relative;
}

.text-field__label {
	position: absolute;
	top: 50%;
	left: 0.3125rem;
	display: flex;
	transform: translateY(-50%);
	pointer-events: none;
	border: none;
	background-color: #fff;
	color: #757575;
	margin-bottom: 0.25rem;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
	transition: top 0.1s ease-in-out, scale 0.1s ease-in-out;
}

.text-field__input {
	display: block;
	width: 100%;
	height: calc(2.5rem + 2px);
	padding: 0.5rem 0.75rem;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #212529;
	background-color: #fff;
	background-clip: padding-box;
	border: 1px solid #bdbdbd;
	border-radius: 0.25rem;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.text-field__input::placeholder {
	color: #212529;
	opacity: 0.4;
	color: transparent;
}

.text-field__input::-moz-placeholder {
	color: transparent;
}

.text-field__input:focus {
	color: #212529;
	background-color: #fff;
	border-color: #bdbdbd;
	outline: 0;
	box-shadow: 0 0 0 0.2rem #9e9e9e40;
}

.text-field__input:focus~.text-field__label,
.text-field__input:not(:placeholder-shown)~.text-field__label {
	top: 0;
	transform: translateY(-50%) scale(0.75);
}

.text-field__input:disabled,
.text-field__input[readonly] {
	color: #909090;
	background-color: #f5f5f5;
	opacity: 1;
}

#text-field__svg {
	position: absolute;
	width: 1em;
	height: 1em;
	top: 50%;
	right: .5em;
	transform: translate(0, -50%);
	cursor: pointer;
}