:root {
  --color-h1: #004159;
  --color-h1-opa: #00415999;
  --color-h2: #3385A2;
  --color-h3: #99C8D6;
  --color-valid: #28A745;
  --color-invalid: #3385A2;
  --font: sans-serif;
  --font-size-max-high: 50px;
  --font-size-very-high: 40px;
  --font-size-high: 30px;
  --font-size-medium: 20px;
  --font-size-normal: 16px;
  --font-size-small: 12px;
}

body{
	background-color: var(--color-h1);
	font-family: sans-serif;
}

form{
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	border-radius: 10px;
	background-color: white;
	padding: 20px;
	display: flex;
	flex-direction: column;
	width: 400px;
	box-shadow: 0 12px 16px 0 grey,0 17px 50px 0 rgba(0,0,0,.19);
	align-items: center;
}

h1{
	text-transform: uppercase;
	margin: 0px;
	margin-bottom: 20px;
}

p{
	color: red;
	margin: 0px;
	margin-bottom: 20px;
}

.form-group{
	display: flex;
	flex-direction: column;
	position: relative;
	margin: 10px 0;
	width: 100%;
}

.form-group input:not(.password){
	background-color: transparent;
	font-size: var(--font-size-normal);
	outline: 0;
	transition: border-color .3s;
	border: transparent;
	border-bottom: 1px solid black;
	margin-bottom: 1px;
	padding: 10px 5px;
}
.form-group input:hover{
	outline: 0;
	border-bottom-width: 2px;
	margin-bottom: 0;
}

.form-group input[type=password]{
	padding: 10px 35px 10px 5px;
}

.form-group input + .placeholder{
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	background: white;
	padding: 0 5px;
	color: #666;
	pointer-events: none;
	transition: 0.3s ease all;
}

.form-group input:focus + .placeholder,
.form-group input:not(:placeholder-shown) + .placeholder{
	top: -5px;
	font-size: var(--font-size-small);
	color: black;
	translate: translateY(0);
}

.toggle-password{
	background-color: transparent;
	background-image: url(https://hermia-3d.com/static/img/password/eye-opened.svg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: 100%;
	border: none;
	position: absolute;
	right: 0px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	width: 20px;
	height: 20px;
}
.toggle-password:hover{
	background-image: url(https://hermia-3d.com/static/img/password/eye-opened-grey.svg);
}

.toggle-password-show{
	background-image: url(https://hermia-3d.com/static/img/password/eye-closed.svg);
}
.toggle-password-show:hover{
	background-image: url(https://hermia-3d.com/static/img/password/eye-closed-grey.svg);
}

form a{
	text-align: right;
	font-size: var(--font-size-small);
	text-decoration: none;
	margin: -5px -5px 10px 0;
	width: 100%;
	color: black;
	background: transparent;
}
form a:hover{
	text-decoration: underline;
}

input[type=submit]{
	border-radius: 10px;
	background-color: var(--color-valid);
	color: white;
	font-size: var(--font-size-normal);
	border: 1px solid transparent;
	padding: 5px 10px;
	margin: 5px;
	cursor: pointer;
	user-select: none;
	width: 200px;
}
input[type=submit]:hover{
	border-color: black;
}
@media (max-width: 500px){
	form{
		width: 200px;
	}
}