/**
 * Password strength meter + confirm match.
 */

.vr-pw-hint {
	margin: 0 0 8px;
	font-size: 12px;
	line-height: 1.4;
	color: var(--vr-muted, #4a5d70);
}

.vr-pw-meter {
	margin-top: 8px;
}

.vr-pw-meter__bars {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px;
	margin-bottom: 6px;
}

.vr-pw-meter__bars span {
	height: 4px;
	border-radius: 2px;
	background: rgba(0, 0, 0, 0.08);
	transition: background 0.18s ease;
}

.vr-pw-meter[data-score='0'] .vr-pw-meter__bars span:nth-child(1) {
	background: #c62828;
}

.vr-pw-meter[data-score='1'] .vr-pw-meter__bars span:nth-child(-n + 2) {
	background: #e6a23c;
}

.vr-pw-meter[data-score='2'] .vr-pw-meter__bars span:nth-child(-n + 3) {
	background: var(--vr-brass, #996f2c);
}

.vr-pw-meter[data-score='3'] .vr-pw-meter__bars span {
	background: #2c7a4a;
}

.vr-pw-meter__label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--vr-ink, #1a2a1f);
	min-height: 1.2em;
}

.vr-pw-meter[data-score='0'] .vr-pw-meter__label {
	color: #c62828;
}

.vr-pw-meter[data-score='1'] .vr-pw-meter__label {
	color: #b86a00;
}

.vr-pw-meter[data-score='2'] .vr-pw-meter__label {
	color: var(--vr-brass, #996f2c);
}

.vr-pw-meter[data-score='3'] .vr-pw-meter__label {
	color: #2c7a4a;
}

.vr-pw-confirm {
	position: relative;
	display: block;
	width: 100%;
}

.vr-pw-confirm input {
	width: 100%;
	box-sizing: border-box;
	padding-right: 42px;
}

.vr-pw-confirm.is-invalid input {
	border-color: #c62828 !important;
	box-shadow: 0 0 0 1px #c62828;
}

.vr-pw-confirm.is-valid input {
	border-color: #2c7a4a !important;
	box-shadow: 0 0 0 1px rgba(44, 122, 74, 0.35);
}

.vr-pw-confirm__tick {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%) scale(0.85);
	width: 18px;
	height: 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #2c7a4a;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.vr-pw-confirm.is-valid .vr-pw-confirm__tick {
	opacity: 1;
	transform: translateY(-50%) scale(1);
}
