/* FinallyWay password popups — retrieve + reset.
   Adapted from the Claude Design mockups, scoped under .fw-pp-* to avoid
   collisions with theme/Elementor styles. */

.fw-pp-overlay {
	--fw-ink: #2b2630;
	--fw-muted: #948e9e;
	--fw-faint: #b8b2c2;
	--fw-line: #ece6f1;
	--fw-pink: #e81e9d;
	--fw-purple: #8a3bd6;
	--fw-blue: #19a6e8;
	--fw-grad: linear-gradient(105deg, #e81e9d 0%, #8a3bd6 52%, #19a6e8 100%);
	--fw-grad-soft: linear-gradient(135deg, #fdf2f9 0%, #f6f1fc 50%, #eef8fd 100%);
	--fw-green: #2f9e6a;
	--fw-amber: #e6932a;
	--fw-red: #d83a62;

	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 22px;
	box-sizing: border-box;
}

.fw-pp-overlay[hidden] {
	display: none;
}

.fw-pp-overlay *,
.fw-pp-overlay *::before,
.fw-pp-overlay *::after {
	box-sizing: border-box;
}

.fw-pp-backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(40, 28, 58, 0.42);
	background-image:
		radial-gradient(900px 500px at 100% -10%, rgba(232, 30, 157, 0.30) 0%, rgba(232, 30, 157, 0) 60%),
		radial-gradient(900px 520px at 0% 110%, rgba(25, 166, 232, 0.30) 0%, rgba(25, 166, 232, 0) 60%);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.fw-pp-modal {
	position: relative;
	width: 100%;
	max-width: 440px;
	background: #fff;
	border-radius: 22px;
	box-shadow: 0 30px 70px rgba(70, 30, 110, 0.28), 0 8px 24px rgba(70, 30, 110, 0.16);
	overflow: hidden;
	font-family: "Heebo", system-ui, sans-serif;
	color: var(--fw-ink);
	text-align: center;
	-webkit-font-smoothing: antialiased;
	animation: fw-pp-pop 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (prefers-reduced-motion: reduce) {
	.fw-pp-modal {
		animation: none;
	}
}

@keyframes fw-pp-pop {
	from {
		opacity: 0;
		transform: translateY(14px) scale(0.96);
	}

	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.fw-pp-accent {
	height: 6px;
	background: var(--fw-grad);
}

.fw-pp-body {
	padding: 30px 34px;
}

.fw-pp-close {
	position: absolute;
	top: 16px;
	inset-inline-start: 16px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--fw-line);
	background: #fff;
	color: var(--fw-muted);
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
	z-index: 3;
	padding: 0;
}

.fw-pp-close:hover {
	background: #faf7fd;
	color: var(--fw-ink);
	border-color: #e2dbec;
}

.fw-pp-close svg {
	width: 16px;
	height: 16px;
}

.fw-pp-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin-bottom: 22px;
}

.fw-pp-brand img {
	height: 22px;
	width: auto;
	display: block;
}

.fw-pp-wordmark {
	font-weight: 600;
	letter-spacing: 0.4em;
	font-size: 14px;
	color: var(--fw-ink);
	padding-right: 0.4em;
}

.fw-pp-hero {
	width: 66px;
	height: 66px;
	margin: 4px auto 18px;
	border-radius: 19px;
	background: var(--fw-grad-soft);
	border: 1px solid var(--fw-line);
	display: grid;
	place-items: center;
	color: var(--fw-purple);
}

.fw-pp-hero svg {
	width: 30px;
	height: 30px;
}

.fw-pp-hero--done {
	background: #eaf7f0;
	border-color: #d4ede0;
	color: var(--fw-green);
}

.fw-pp-title {
	font-family: "Karantina", "Heebo", sans-serif;
	font-weight: 700;
	font-size: 40px;
	line-height: 1;
	margin: 0 0 10px;
	letter-spacing: 0.01em;
	color: var(--fw-ink);
}

.fw-pp-sub {
	margin: 0 auto 24px;
	max-width: 33ch;
	font-size: 15px;
	line-height: 1.65;
	color: #5f5868;
}

.fw-pp-sub b {
	color: var(--fw-ink);
	font-weight: 600;
}

.fw-pp-form {
	text-align: start;
}

.fw-pp-field {
	margin-bottom: 16px;
}

.fw-pp-lbl {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: var(--fw-muted);
	margin-bottom: 6px;
	padding-inline-start: 2px;
}

.fw-pp-pw {
	position: relative;
}

.fw-pp-input {
	width: 100%;
	border: 1.5px solid var(--fw-line);
	background: #fcfafd;
	border-radius: 12px;
	padding: 14px 15px;
	font-family: "Heebo", sans-serif;
	font-size: 15px;
	color: var(--fw-ink);
	transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.fw-pp-input--pw {
	padding-inline-start: 46px;
	text-align: right;
	direction: ltr;
	letter-spacing: 0.02em;
}

.fw-pp-input::placeholder {
	color: var(--fw-faint);
	letter-spacing: normal;
}

.fw-pp-input:focus {
	outline: none;
	border-color: var(--fw-purple);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(138, 59, 214, 0.08);
}

.fw-pp-input.is-invalid {
	border-color: var(--fw-red);
	box-shadow: 0 0 0 4px rgba(226, 71, 109, 0.08);
}

.fw-pp-input.is-ok {
	border-color: #bfe4cf;
}

.fw-pp-eye {
	position: absolute;
	left: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 32px;
	height: 32px;
	border: none;
	background: transparent;
	color: var(--fw-faint);
	cursor: pointer;
	border-radius: 8px;
	display: grid;
	place-items: center;
	padding: 0;
	transition: color 0.15s, background 0.15s;
}

.fw-pp-eye:hover {
	color: var(--fw-muted);
	background: #f5f1f8;
}

.fw-pp-eye svg {
	width: 19px;
	height: 19px;
}

.fw-pp-eye.is-on {
	color: var(--fw-purple);
}

.fw-pp-strength {
	display: flex;
	gap: 5px;
	margin: 10px 2px 0;
}

.fw-pp-strength i {
	height: 5px;
	flex: 1;
	border-radius: 3px;
	background: #eee6f1;
	transition: background 0.25s;
}

.fw-pp-strength.s1 i:nth-child(1) {
	background: var(--fw-red);
}

.fw-pp-strength.s2 i:nth-child(-n+2) {
	background: var(--fw-amber);
}

.fw-pp-strength.s3 i {
	background: var(--fw-green);
}

.fw-pp-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 8px 2px 0;
	gap: 10px;
	min-height: 16px;
}

.fw-pp-hint {
	font-size: 12px;
	color: var(--fw-faint);
}

.fw-pp-hint.is-bad {
	color: var(--fw-red);
}

.fw-pp-strength-label {
	font-size: 12px;
	font-weight: 600;
}

.fw-pp-strength-label.s1 {
	color: var(--fw-red);
}

.fw-pp-strength-label.s2 {
	color: var(--fw-amber);
}

.fw-pp-strength-label.s3 {
	color: var(--fw-green);
}

.fw-pp-note {
	min-height: 16px;
	font-size: 12.5px;
	margin: 8px 2px 0;
	padding-inline-start: 2px;
	display: flex;
	align-items: center;
	gap: 5px;
	opacity: 0;
	transition: opacity 0.15s;
}

.fw-pp-note.is-show {
	opacity: 1;
}

.fw-pp-note svg {
	width: 13px;
	height: 13px;
	flex: none;
}

.fw-pp-note--good {
	color: var(--fw-green);
}

.fw-pp-note--bad {
	color: var(--fw-red);
}

.fw-pp-cta {
	width: 100%;
	border: none;
	border-radius: 14px;
	background: var(--fw-grad);
	color: #fff;
	font-family: "Heebo", sans-serif;
	font-weight: 600;
	font-size: 16.5px;
	padding: 16px;
	cursor: pointer;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	box-shadow: 0 10px 24px rgba(180, 40, 150, 0.24);
	transition: transform 0.12s, box-shadow 0.12s, filter 0.12s;
	margin-top: 22px;
}

.fw-pp-cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 30px rgba(180, 40, 150, 0.30);
	filter: saturate(1.05);
    color: white;
}

.fw-pp-cta:active {
	transform: translateY(0);
}

.fw-pp-cta.is-loading {
	opacity: 0.7;
	pointer-events: none;
}

.fw-pp-cta svg {
	width: 17px;
	height: 17px;
}

.fw-pp-back {
	text-align: center;
	margin-top: 18px;
	font-size: 14px;
	color: var(--fw-muted);
}

.fw-pp-back a {
	color: var(--fw-purple);
    font-size: inherit;
	font-weight: 600;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.fw-pp-back a:hover {
	text-decoration: underline;
}

.fw-pp-back a svg {
	width: 14px;
	height: 14px;
}

.fw-pp-secure {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	margin-top: 18px;
	color: var(--fw-faint);
	font-size: 12.5px;
}

.fw-pp-secure svg {
	width: 13px;
	height: 13px;
	color: var(--fw-green);
}

.fw-pp-view[hidden] {
	display: none;
}

html.fw-pp-open,
body.fw-pp-open {
	overflow: hidden;
}

.fw-pp-toast {
	position: fixed;
	z-index: 100000;
	bottom: 26px;
	left: 50%;
	transform: translateX(-50%) translateY(14px);
	background: #2b2630;
	color: #fff;
	font-family: "Heebo", system-ui, sans-serif;
	font-size: 13.5px;
	font-weight: 500;
	padding: 11px 18px;
	border-radius: 999px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s, transform 0.25s;
}

.fw-pp-toast.is-show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

@media (max-width: 440px) {
	.fw-pp-body {
		padding: 26px 22px;
	}

	.fw-pp-title {
		font-size: 34px;
	}
}