/*
	@modCssClasses
	@customTag: password-box
	--theme-transitionDuration 			0.15s
	--theme-highlightedBackgroundColor 	rgba(0, 0, 0, 0.1)
	--theme-errorBackgroundColor 		rgba(255, 0, 0, 0.2)
	--theme-mainFont 					rgba(0, 0, 0, 1)
	--theme-errorFont 					rgba(255, 68, 68, 1)
	--theme-inputBackgroundColor 		rgba(0, 0, 0, 0)
*/




password-box {
	display: block;
	border-top-left-radius: 0.5rem;
	border-top-right-radius: 0.5rem;
	border-bottom-right-radius: 0.5rem;
	border-bottom-left-radius: 0.5rem;
	overflow: hidden;
	padding-top: 0.5rem;
	padding-right: 0.5rem;
	padding-bottom: 0.5rem;
	padding-left: 0.5rem;
	margin-top: 0;
	margin-right: 0;
	margin-bottom: 4rem;
	margin-left: 0;
	background-color: var(--theme-highlightedBackgroundColor, rgba(0, 0, 0, 0.1));
	min-height: 4.2rem;
	transition-property: background-color;
	transition-duration: var(--theme-transitionDuration, 0.15s);
}

password-box.error {
	background-color: var(--theme-errorBackgroundColor, rgba(255, 0, 0, 0.2));
}

password-box .upperRow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.8rem;
	font-weight: 600;
	gap: 0.5rem;
}

password-box .upperRow .title {
	color: var(--theme-mainFont, rgba(0, 0, 0, 1));
	opacity: 0.6;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: max-content;
	transition-property: color;
	transition-duration: var(--theme-transitionDuration, 0.15s);
	font-weight: 400;
	line-height: 1.2rem;
}

password-box .upperRow .errorElem {
	color: var(--theme-errorFont, rgba(255, 68, 68, 1));
	opacity: 0;
	line-height: 1.2rem;
	transition-property: opacity;
	transition-duration: var(--theme-transitionDuration, 0.15s);
}

password-box.error .upperRow .errorElem {
	opacity: 1;
}

password-box .body {
	display: flex;
	align-items: center;
}

password-box .body .inputElem {
	flex: 1;
	padding-top: 0;
	padding-right: 0.25rem;
	padding-bottom: 0;
	padding-left: 0.25rem;
	background-color: var(--theme-inputBackgroundColor, rgba(0, 0, 0, 0));
	font-weight: 600;
	line-height: 2rem;
	width: 0;
	color: var(--theme-mainFont, rgba(0, 0, 0, 1));
	transition-property: color, opacity;
	transition-duration: var(--theme-transitionDuration, 0.15s);
}

password-box .body .inputElem:disabled {
	opacity: 0.6;
}

password-box .body .icon {
	height: 2rem;
	display: flex;
	max-width: 2rem;
	opacity: 0.6;
	justify-content: center;
	cursor: pointer;
	transition-property: opacity;
	transition-duration: var(--theme-transitionDuration, 0.15s);
}

password-box .body .icon:hover {
	opacity: 1;
}

password-box .body .icon svg {
	width: 66%;
	fill: var(--theme-mainFont, rgba(0, 0, 0, 1));
	transition-property: fill;
	transition-duration: var(--theme-transitionDuration, 0.15s);
}