
credentials, otp, retrievepassword {
	width: calc(100% - 30px);
	max-width: 400px;
	max-height: calc(100% - 30px);
	padding: 2.5px;
	margin: 15px;
	position: absolute;
	top: 30%;left: 50%;
	transform: translate(calc(-50% - 15px), calc(-50% - 15px));
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	-webkit-transition: all 0.3s ease;
	-moz-transition: all 0.3s ease;
	transition: all 0.3s ease;
}

credentials.active, otp.active, retrievepassword.active {
	top: 50%;
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}
credentials > section, otp > section, retrievepassword > section {
	width: 100%;
	width:calc(100% - 5px);
	margin: 2.5px;
	/*margin: unset;*/
	-webkit-transition:all 0.3s ease;
	-moz-transition:all 0.3s ease;
	transition:all 0.3s ease;
	display: none;
	pointer-events: none;

}
credentials > section.active, otp > section.active, retrievepassword > section.active {
	display: block;
	pointer-events: auto;
}


credentials section[for="password"],
retrievepassword section[for="email"] {
	height: 0;
	margin: 0 2.5px;
	transition: all 0.5s ease-out;
	display: block;
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
}
credentials section[for="password"].active,
retrievepassword section[for="email"].active {
	height: auto;
	margin: 2.5px;
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}


credentials > [type="button"], otp > [type="button"], retrievepassword > [type="button"] {
	width:calc(100% - 5px);
	margin: 2.5px;
}
credentials input, credentials button[type="button"],
otp input, otp button[type="button"],
retrievepassword input, retrievepassword button[type="button"] {
	
}
otp {
	display: flex;
	flex-wrap: wrap;
}
otp [type="text"] {
	font-family: "Kanit-Medium";
	font-size: 2.5rem;
	line-height: 2.5rem;
	width: calc(16.666% - 5px);
	margin: 2.5px;
	padding: unset;
	text-align: center;
	user-select: none;
	cursor: text;
}
span[data-error] {
	width:100%;
	margin: unset;
	position: relative; float: left;
}
otp span[data-error] {
	width:calc(100% - 5px);
	margin: 0 2.5px;
}
[for="back-to-login"],
[for="resend"],
[for="forgot-password"] {
	font-size: 16px;
	width: auto;
	position: absolute;
	top: calc(100% + 5px); left: 5px;
	line-height: 1.063rem;
	display: block;
	pointer-events: auto;
	color: rgba(0, 0, 0, 0.5);
}
[for="back-to-login"]::before {content: "Back to login?";}
[for="resend"]::before {content: "Resend?";}
[for="forgot-password"]::before {content: "Forgot Password?";}
