/* Quarto Fuoco — Password strength indicator */

.qf-pw-strength {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 6px;
	font-family: inherit;
	font-size: 12px;
	line-height: 1.3;
	color: #494949;
}

.qf-pw-strength__track {
	flex: 1 1 auto;
	min-width: 80px;
	height: 6px;
	background: #E3D4C6;
	border-radius: 999px;
	overflow: hidden;
}

.qf-pw-strength__bar {
	height: 100%;
	width: 0;
	background: transparent;
	border-radius: 999px;
	transition: width 0.18s ease, background-color 0.18s ease;
}

.qf-pw-strength__label {
	flex: 0 0 auto;
	font-weight: 600;
	min-width: 84px;
	text-align: right;
}

/* Wrap + bottone toggle "occhio" — accoppiato a qf-password-toggle.js */
.qf-pw-wrap {
	position: relative;
	display: block;
}

.qf-pw-wrap > input {
	padding-right: 44px !important;
	width: 100%;
	box-sizing: border-box;
}

/* Selettori specifici + !important per battere gli stili "primary" che il tema/modal applicano ai <button> */
.qf-pw-wrap > button.qf-pw-toggle,
.qf-pw-wrap > .qf-pw-toggle {
	position: absolute !important;
	top: 50% !important;
	right: 8px !important;
	left: auto !important;
	transform: translateY(-50%) !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 32px !important;
	height: 32px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	color: #6F6F6F !important;
	font: inherit !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	cursor: pointer !important;
	border-radius: 6px !important;
	transition: color 0.15s ease, background-color 0.15s ease !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

.qf-pw-wrap > button.qf-pw-toggle:hover,
.qf-pw-wrap > .qf-pw-toggle:hover,
.qf-pw-wrap > button.qf-pw-toggle:focus-visible,
.qf-pw-wrap > .qf-pw-toggle:focus-visible {
	color: #5C2E26 !important;
	background-color: rgba(92, 46, 38, 0.08) !important;
	outline: none !important;
}

.qf-pw-wrap > button.qf-pw-toggle[aria-pressed="true"],
.qf-pw-wrap > .qf-pw-toggle[aria-pressed="true"] {
	color: #5C2E26 !important;
}

.qf-pw-wrap > button.qf-pw-toggle svg,
.qf-pw-wrap > .qf-pw-toggle svg {
	width: 20px;
	height: 20px;
	display: block;
	stroke: currentColor;
	fill: none;
}

/* Stati per score (0–5) */
.qf-pw-strength[data-score="0"] .qf-pw-strength__bar { background: transparent; }
.qf-pw-strength[data-score="1"] .qf-pw-strength__bar { background: #D02718; }
.qf-pw-strength[data-score="2"] .qf-pw-strength__bar { background: #E07918; }
.qf-pw-strength[data-score="3"] .qf-pw-strength__bar { background: #C2A200; }
.qf-pw-strength[data-score="4"] .qf-pw-strength__bar { background: #4CAF50; }
.qf-pw-strength[data-score="5"] .qf-pw-strength__bar { background: #307538; }

.qf-pw-strength[data-score="0"] .qf-pw-strength__label { color: #9A9A9A; }
.qf-pw-strength[data-score="1"] .qf-pw-strength__label { color: #D02718; }
.qf-pw-strength[data-score="2"] .qf-pw-strength__label { color: #B8651A; }
.qf-pw-strength[data-score="3"] .qf-pw-strength__label { color: #8A7300; }
.qf-pw-strength[data-score="4"] .qf-pw-strength__label,
.qf-pw-strength[data-score="5"] .qf-pw-strength__label { color: #307538; }
