/* «Не помню пароль» (/my-account/lost-password/): поля и кнопки форм WooCommerce
   в карточке формы входа itor-auth (auth.css — переменные и .itor-auth-*). Всё под .itor-lostpass. */

body.itor-lostpass-page { margin: 0; background: var(--itor-auth-bg); }

.itor-lostpass a.itor-auth-logo { text-decoration: none; }
.itor-lostpass .screen-reader-text {
	position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.itor-lostpass form { margin: 0; }
.itor-lostpass form > p:first-child,
.itor-lostpass .woocommerce-message + p {
	margin: -8px 0 20px; font-size: 14px; line-height: 1.5; color: var(--itor-auth-muted); text-align: center;
}
/* Специфичнее, чем .woocommerce form .form-row-first (47%, float) и поля Astra/WooCommerce */
.itor-lostpass .lost_reset_password .form-row { margin: 0 0 16px; padding: 0; float: none; width: auto; }
.itor-lostpass .clear { display: none; }
.itor-lostpass label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 500; line-height: 1.4; color: var(--itor-auth-text); }
.itor-lostpass .required { color: var(--itor-auth-error); text-decoration: none; border: 0; }

.itor-lostpass .lost_reset_password .form-row input.input-text {
	width: 100%; box-sizing: border-box; min-height: 48px; padding: 13px 16px;
	border: 1px solid var(--itor-auth-input-border); border-radius: var(--itor-auth-radius-sm);
	background: var(--itor-auth-input-bg); font-family: inherit; font-size: 16px; line-height: 1.3; color: var(--itor-auth-text);
	outline: none; box-shadow: none; transition: border-color .15s, box-shadow .15s;
}
.itor-lostpass .lost_reset_password .form-row input.input-text:focus { border-color: var(--itor-auth-input-focus); box-shadow: var(--itor-auth-shadow-focus); }

/* Показ пароля WooCommerce (кнопка внутри .password-input) */
.itor-lostpass .password-input { position: relative; display: block; }
.itor-lostpass .lost_reset_password .password-input input.input-text { padding-right: 48px; }
.itor-lostpass .show-password-input {
	position: absolute; top: 50%; right: 4px; transform: translateY(-50%);
	width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; color: var(--itor-auth-muted);
}

/* .lost_reset_password — специфичнее, чем .woocommerce button.button у WooCommerce и Astra */
.itor-lostpass .lost_reset_password .woocommerce-Button,
.itor-lostpass .itor-lostpass__btn {
	display: flex; align-items: center; justify-content: center; box-sizing: border-box;
	width: 100%; min-height: 48px; margin: 8px 0 0; padding: 14px 16px;
	border: 0; border-radius: var(--itor-auth-radius-sm); background: var(--itor-auth-primary); color: var(--itor-auth-primary-text);
	font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: background .15s;
}
.itor-lostpass .lost_reset_password .woocommerce-Button:hover,
.itor-lostpass .itor-lostpass__btn:hover { background: var(--itor-auth-primary-hover); color: var(--itor-auth-primary-text); }
.itor-lostpass .lost_reset_password .woocommerce-Button:focus-visible,
.itor-lostpass .itor-lostpass__btn:focus-visible,
.itor-lostpass a:focus-visible { outline: 2px solid var(--itor-auth-input-focus); outline-offset: 2px; }

/* Уведомления WooCommerce: ошибка и «письмо отправлено» */
.itor-lostpass .woocommerce-error,
.itor-lostpass .woocommerce-message,
.itor-lostpass .woocommerce-info {
	list-style: none; margin: 0 0 16px; padding: 10px 14px; border: 0; border-radius: var(--itor-auth-radius-sm);
	font-size: 13px; line-height: 1.4;
}
.itor-lostpass .woocommerce-error { background: rgba(210, 47, 79, .08); color: var(--itor-auth-error); }
.itor-lostpass .woocommerce-message { background: rgba(31, 138, 79, .08); color: var(--itor-auth-success); }
.itor-lostpass .woocommerce-info { background: var(--itor-auth-bg); color: var(--itor-auth-text); }
.itor-lostpass .woocommerce-error li { margin: 0; padding: 0; }
/* WooCommerce переводит фокус на уведомление скриптом — рамку фокуса у него не показываем */
.itor-lostpass .woocommerce-error:focus,
.itor-lostpass .woocommerce-message:focus,
.itor-lostpass .woocommerce-info:focus { outline: none; }
.itor-lostpass .woocommerce-error::before,
.itor-lostpass .woocommerce-message::before,
.itor-lostpass .woocommerce-info::before { content: none; display: none; }

/* Индикатор надёжности нового пароля и подсказка WooCommerce */
.itor-lostpass .woocommerce-password-strength {
	margin: 8px 0 0; padding: 6px 10px; border-radius: var(--itor-auth-radius-sm);
	font-size: 13px; font-weight: 600; line-height: 1.4; text-align: left;
}
.itor-lostpass .woocommerce-password-hint { display: block; margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: var(--itor-auth-muted); }

.itor-lostpass .itor-auth-footer-link { line-height: 1.6; }

@media (max-width: 480px) {
	.itor-lostpass.itor-auth-wrap { padding-top: 32px; }
	.itor-lostpass .itor-auth-card { padding: 28px 20px 24px; }
}
