/**
 * WooCommerce lost-password screens (/my-account/lost-password/).
 * Centred card. Palette follows the Kaapia logo: purple, teal, gold.
 */
body.woocommerce-lost-password .site-content {
	background:
		radial-gradient(ellipse 55% 45% at 100% 0%, rgba(106, 45, 255, 0.1), transparent 55%),
		radial-gradient(ellipse 45% 40% at 0% 100%, rgba(22, 199, 199, 0.1), transparent 55%),
		#f7f8fc;
}

body.woocommerce-lost-password .woocommerce {
	max-width: none;
	width: 100%;
	float: none;
}

.kaapia-lp {
	display: flex;
	justify-content: center;
	padding: 4.5rem 1rem 6rem;
}

.kaapia-lp__card {
	position: relative;
	width: 100%;
	max-width: 480px;
	padding: 2.75rem 2.25rem 2rem;
	text-align: center;
	background: #fff;
	border: 1px solid #e3e7ef;
	border-radius: 24px;
	box-shadow: 0 24px 64px rgba(11, 22, 72, 0.1);
	overflow: hidden;
}

.kaapia-lp__card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 5px;
	background: linear-gradient(90deg, #3b1796, #6a2dff 55%, #16c7c7);
}

.kaapia-lp__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 68px;
	margin: 0 auto 1.25rem;
	border-radius: 20px;
	background: linear-gradient(135deg, rgba(106, 45, 255, 0.14), rgba(22, 199, 199, 0.16));
	color: #6a2dff;
}

.kaapia-lp__icon--ok {
	color: #0f9d93;
}

.kaapia-lp__title {
	margin: 0 0 1.6rem;
	font-size: 1.7rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: #0b1648;
}

.kaapia-lp__text {
	margin: -0.6rem 0 1.75rem;
	font-size: 0.97rem;
	line-height: 1.65;
	color: #5a6478;
}

.kaapia-lp__form {
	margin: 0;
	padding: 0;
	border: 0;
	text-align: left;
}

.kaapia-lp__field {
	width: 100%;
	float: none;
	margin: 0 0 1.25rem;
	padding: 0;
}

.kaapia-lp__field label {
	display: block;
	margin: 0 0 0.45rem;
	font-size: 0.84rem;
	font-weight: 600;
	color: #0b1648;
}

.kaapia-lp__field input.input-text {
	width: 100%;
	min-height: 52px;
	padding: 0.85rem 1rem;
	border: 1px solid #d9dfe9;
	border-radius: 12px;
	background: #fbfcfe;
	font: inherit;
	font-size: 0.97rem;
	color: #0b1648;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.kaapia-lp__field input.input-text::placeholder {
	color: #9aa3b5;
}

.kaapia-lp__field input.input-text:hover {
	border-color: #bcc5d4;
}

.kaapia-lp__field input.input-text:focus {
	outline: none;
	border-color: #6a2dff;
	background: #fff;
	box-shadow: 0 0 0 4px rgba(106, 45, 255, 0.14);
}

.kaapia-lp__actions {
	margin: 0;
	padding: 0;
}

.kaapia-lp__submit,
.woocommerce .kaapia-lp__submit.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 0.85rem 1.5rem;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(135deg, #6a2dff 0%, #3b1796 100%);
	color: #fff;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 12px 26px rgba(106, 45, 255, 0.3);
	transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

.kaapia-lp__submit:hover,
.kaapia-lp__submit:focus,
.woocommerce .kaapia-lp__submit.button:hover,
.woocommerce .kaapia-lp__submit.button:focus {
	background: linear-gradient(135deg, #7a3dff 0%, #4a1fb0 100%);
	color: #fff;
	filter: brightness(1.04);
	transform: translateY(-1px);
	box-shadow: 0 16px 32px rgba(106, 45, 255, 0.38);
}

.kaapia-lp__submit:active {
	transform: translateY(0);
}

.kaapia-lp__submit:focus-visible {
	outline: 3px solid rgba(106, 45, 255, 0.35);
	outline-offset: 2px;
}

.kaapia-lp__back {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-top: 1.5rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #5a6478;
	text-decoration: none;
	cursor: pointer;
}

.kaapia-lp__back:hover {
	color: #6a2dff;
}

body.woocommerce-lost-password .woocommerce-message,
body.woocommerce-lost-password .woocommerce-error,
body.woocommerce-lost-password .woocommerce-info {
	max-width: 480px;
	margin: 1.5rem auto 0;
	border-radius: 12px;
}

@media (max-width: 520px) {
	.kaapia-lp {
		padding: 2.5rem 0.9rem 4rem;
	}

	.kaapia-lp__card {
		padding: 2.25rem 1.25rem 1.5rem;
	}
}

/* Confirmation screen */
.kaapia-lp__badge {
	display: inline-block;
	margin: 0 0 0.75rem;
	padding: 0.3rem 0.85rem;
	border-radius: 999px;
	background: rgba(22, 199, 199, 0.14);
	color: #0b7f78;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.kaapia-lp__title + .kaapia-lp__text,
.kaapia-lp__badge + .kaapia-lp__title {
	margin-top: 0;
}

.kaapia-lp__badge + .kaapia-lp__title {
	margin-bottom: 0.7rem;
}

.kaapia-lp__text {
	margin-top: 0;
}

.kaapia-lp__tips {
	display: flex;
	flex-direction: column;
	gap: 0.7rem;
	margin: 0 0 1.75rem;
	padding: 1.1rem 1.15rem;
	list-style: none;
	text-align: left;
	background: #f7f8fc;
	border: 1px solid #e8ecf3;
	border-radius: 16px;
}

.kaapia-lp__tips li {
	display: flex;
	align-items: flex-start;
	gap: 0.7rem;
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.5;
	color: #3d4656;
}

.kaapia-lp__tips svg {
	flex: 0 0 auto;
	margin-top: 0.1rem;
	color: #6a2dff;
}

.kaapia-lp__submit--link {
	text-align: center;
}

/* Reset (new password) form */
.kaapia-lp__pass {
	position: relative;
	display: block;
}

.kaapia-lp__field .kaapia-lp__pass input.input-text {
	padding-right: 3.1rem;
}

.kaapia-lp__eye {
	position: absolute;
	top: 50%;
	right: 0.45rem;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: #6b7280;
	cursor: pointer;
}

.kaapia-lp__eye:hover,
.kaapia-lp__eye[aria-pressed="true"] {
	color: #6a2dff;
	background: rgba(106, 45, 255, 0.07);
}

.kaapia-lp__eye svg[hidden] {
	display: none;
}

.kaapia-lp__hints {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: -0.35rem 0 1.4rem;
	padding: 0;
	list-style: none;
}

.kaapia-lp__hints li {
	margin: 0;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	background: rgba(106, 45, 255, 0.08);
	color: #5b22e6;
	font-size: 0.78rem;
	font-weight: 600;
}

/* WooCommerce password strength meter, if it is loaded */
body.woocommerce-lost-password .woocommerce-password-strength {
	margin-top: 0.5rem;
	padding: 0.45rem 0.75rem;
	border-radius: 10px;
	font-size: 0.82rem;
	font-weight: 600;
	text-align: left;
}

body.woocommerce-lost-password .woocommerce-password-hint {
	display: block;
	margin-top: 0.4rem;
	font-size: 0.8rem;
	line-height: 1.5;
	color: #5a6478;
	text-align: left;
}

/* WooCommerce gives .form-row-first / .form-row-last a 47% float; make the fields full width. */
.woocommerce form.kaapia-lp__form .form-row,
.woocommerce form.kaapia-lp__form .form-row-first,
.woocommerce form.kaapia-lp__form .form-row-last,
.woocommerce form.kaapia-lp__form .kaapia-lp__field,
form.kaapia-lp__form .kaapia-lp__field {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin-left: 0;
	margin-right: 0;
	box-sizing: border-box;
}

.woocommerce form.kaapia-lp__form .kaapia-lp__field input.input-text,
form.kaapia-lp__form .kaapia-lp__field input.input-text,
.kaapia-lp__pass {
	display: block;
	width: 100% !important;
	max-width: none !important;
	box-sizing: border-box;
}
