/**
 * AAW Account — restyles WooCommerce's lost-password / set-password pages
 * (/my-account/lost-password/), which guest customers land on from the
 * "set your password" link in the new-account email. Same tokens as
 * checkout.css. Markup is WooCommerce's own form-lost-password.php and
 * form-reset-password.php — both render form.woocommerce-ResetPassword.
 *
 * Loaded only on that endpoint — AAW_Frontend::enqueue_checkout_styles().
 */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

body.woocommerce-lost-password {
	--aaw-primary: #000f9f;
	--aaw-primary-dark: #00094f;
	--aaw-border: #e6e7ec;
	--aaw-text: #0a0d2b;
	--aaw-muted: #3a3f63;
	--aaw-danger: #d63638;
	--aaw-font: 'Manrope', system-ui, -apple-system, sans-serif;
	background: #f6f7fb;
}

body.woocommerce-lost-password .site-main {
	padding: 48px 16px 72px;
}

body.woocommerce-lost-password .page-header {
	display: none;
}

body.woocommerce-lost-password .woocommerce {
	max-width: 460px;
	margin: 0 auto;
	font-family: var(--aaw-font);
	color: var(--aaw-text);
}

body.woocommerce-lost-password form.woocommerce-ResetPassword {
	background: #fff;
	border: 1px solid var(--aaw-border);
	border-radius: 20px;
	box-shadow: 0 10px 30px -12px rgba(0, 15, 159, 0.15);
	padding: 32px 28px;
	margin: 0;
}

body.woocommerce-lost-password form.woocommerce-ResetPassword > p:first-child {
	font-size: 15px;
	line-height: 1.6;
	color: var(--aaw-muted);
	margin: 0 0 24px;
}

body.woocommerce-lost-password form.woocommerce-ResetPassword > p:first-child::before {
	display: block;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--aaw-text);
	margin-bottom: 8px;
	content: 'Reset your password';
}

/* The set-password form (reached from the email link) has two password fields. */
body.woocommerce-lost-password form.woocommerce-ResetPassword:has(#password_1) > p:first-child::before {
	content: 'Create your password';
}

body.woocommerce-lost-password .woocommerce-ResetPassword .form-row {
	float: none;
	width: 100%;
	margin: 0 0 18px;
	padding: 0;
}

body.woocommerce-lost-password .woocommerce-ResetPassword label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--aaw-text);
}

body.woocommerce-lost-password .woocommerce-ResetPassword .required {
	color: var(--aaw-danger);
	text-decoration: none;
}

body.woocommerce-lost-password .woocommerce-ResetPassword .password-input {
	display: block;
	position: relative;
}

body.woocommerce-lost-password .woocommerce-ResetPassword input.input-text {
	width: 100%;
	box-sizing: border-box;
	height: 50px;
	padding: 0 16px;
	font-family: var(--aaw-font);
	font-size: 15px;
	color: var(--aaw-text);
	background: #fff;
	border: 1px solid var(--aaw-border);
	border-radius: 12px;
	transition: border-color .15s, box-shadow .15s;
}

body.woocommerce-lost-password .woocommerce-ResetPassword .password-input input.input-text {
	padding-right: 48px;
}

body.woocommerce-lost-password .woocommerce-ResetPassword input.input-text:focus {
	outline: none;
	border-color: var(--aaw-primary);
	box-shadow: 0 0 0 3px rgba(0, 15, 159, 0.12);
}

body.woocommerce-lost-password .woocommerce-ResetPassword .show-password-input {
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	background-color: transparent;
	border: 0;
	padding: 6px;
}

body.woocommerce-lost-password .woocommerce-ResetPassword .woocommerce-password-strength {
	margin-top: 8px;
	padding: 8px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	text-align: left;
}

body.woocommerce-lost-password .woocommerce-ResetPassword .woocommerce-password-hint {
	display: block;
	margin-top: 6px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--aaw-muted);
}

body.woocommerce-lost-password .woocommerce-ResetPassword .clear {
	display: none;
}

body.woocommerce-lost-password .woocommerce-ResetPassword .form-row:last-of-type {
	margin: 8px 0 0;
}

body.woocommerce-lost-password .woocommerce-ResetPassword button.button {
	display: block;
	width: 100%;
	height: 52px;
	font-family: var(--aaw-font);
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	background: var(--aaw-primary);
	border: 0;
	border-radius: 999px;
	cursor: pointer;
	transition: background .15s;
}

body.woocommerce-lost-password .woocommerce-ResetPassword button.button:hover,
body.woocommerce-lost-password .woocommerce-ResetPassword button.button:focus-visible {
	background: var(--aaw-primary-dark);
}

body.woocommerce-lost-password .woocommerce-ResetPassword button.button:disabled {
	opacity: .5;
	cursor: not-allowed;
}

/* Notices: errors ("invalid key"), and the "reset email sent" confirmation. */
body.woocommerce-lost-password .woocommerce-error,
body.woocommerce-lost-password .woocommerce-message,
body.woocommerce-lost-password .woocommerce-info {
	margin: 0 0 16px;
	padding: 14px 18px;
	font-size: 14px;
	line-height: 1.5;
	list-style: none;
	background: #fff;
	border: 1px solid var(--aaw-border);
	border-left: 4px solid var(--aaw-primary);
	border-radius: 12px;
	color: var(--aaw-text);
}

body.woocommerce-lost-password .woocommerce-error {
	border-left-color: var(--aaw-danger);
}

body.woocommerce-lost-password .woocommerce-error::before,
body.woocommerce-lost-password .woocommerce-message::before,
body.woocommerce-lost-password .woocommerce-info::before {
	display: none;
}

@media (max-width: 480px) {
	body.woocommerce-lost-password .site-main {
		padding-top: 24px;
	}

	body.woocommerce-lost-password form.woocommerce-ResetPassword {
		padding: 24px 20px;
	}
}
