/**
 * Lost Password Page - Militra Theme Styles
 *
 * Styled with design tokens for consistency with the theme
 * @package Militra_Com
 */

/* Main Container - Target only the form wrapper */
.woocommerce-lost-password .woocommerce-ResetPassword {
	max-width: 480px;
	margin: 60px auto;
	padding: 40px;
	background: var(--color-background);
	border-radius: var(--border-radius-lg);
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

/* Page Title */
.woocommerce-lost-password .woocommerce-ResetPassword h2 {
	font-family: var(--font-family-heading);
	font-size: var(--font-size-2xl);
	font-weight: var(--font-weight-bold);
	color: var(--color-headings-general);
	margin: 0 0 var(--spacing-4) 0;
	line-height: 1.2;
}

/* Description Text */
.woocommerce-lost-password .woocommerce-ResetPassword > p {
	font-family: var(--font-family-body);
	font-size: var(--font-size-base);
	color: var(--color-text-muted);
	line-height: 1.6;
	margin: 0 0 var(--spacing-6) 0;
}

/* Form Container */
.woocommerce-lost-password .woocommerce-ResetPassword form {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-6);
}

/* Form Row */
.woocommerce-lost-password .woocommerce-ResetPassword .form-row {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-2);
	margin-bottom: 0;
}

/* Form Labels */
.woocommerce-lost-password .woocommerce-ResetPassword label {
	font-family: var(--font-family-body);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-medium);
	color: var(--color-headings-general);
	margin: 0;
	display: block;
}

.woocommerce-lost-password .woocommerce-ResetPassword label .required {
	color: var(--color-primary);
	margin-left: 2px;
}

/* Form Inputs - Match button width and styling */
.woocommerce-lost-password .woocommerce-ResetPassword input[type="text"],
.woocommerce-lost-password .woocommerce-ResetPassword input[type="email"],
.woocommerce-lost-password .woocommerce-ResetPassword .woocommerce-Input {
	width: 100%;
	padding: var(--spacing-4) var(--spacing-5);
	border: 1px solid #e6e8ec;
	border-radius: var(--border-radius-md);
	font-family: var(--font-family-body);
	font-size: var(--font-size-base);
	color: var(--color-text);
	background: var(--color-background);
	transition: all 0.2s ease;
	line-height: 1.5;
	box-sizing: border-box;
}

.woocommerce-lost-password .woocommerce-ResetPassword input[type="text"]:focus,
.woocommerce-lost-password .woocommerce-ResetPassword input[type="email"]:focus,
.woocommerce-lost-password .woocommerce-ResetPassword .woocommerce-Input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(255, 117, 68, 0.1);
}

.woocommerce-lost-password .woocommerce-ResetPassword input[type="text"]::placeholder,
.woocommerce-lost-password .woocommerce-ResetPassword input[type="email"]::placeholder,
.woocommerce-lost-password .woocommerce-ResetPassword .woocommerce-Input::placeholder {
	color: #a8adb7;
}

/* Submit Button - Using design tokens button styling */
.woocommerce-lost-password .woocommerce-ResetPassword button[type="submit"],
.woocommerce-lost-password .woocommerce-ResetPassword input[type="submit"],
.woocommerce-lost-password .woocommerce-ResetPassword .woocommerce-Button {
	width: 100%;
	padding: var(--spacing-4) var(--spacing-6);
	background-color: var(--color-secondary);
	color: #ffffff;
	border: none;
	border-radius: var(--border-radius-md);
	font-family: var(--font-family-body);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-medium);
	cursor: pointer;
	transition: all 0.3s ease;
	line-height: 1.5;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	box-sizing: border-box;
}

.woocommerce-lost-password .woocommerce-ResetPassword button[type="submit"]:hover,
.woocommerce-lost-password .woocommerce-ResetPassword input[type="submit"]:hover,
.woocommerce-lost-password .woocommerce-ResetPassword .woocommerce-Button:hover {
	background-color: var(--color-primary);
	color: #ffffff;
	box-shadow: 0 4px 12px rgba(255, 117, 68, 0.2);
}

.woocommerce-lost-password .woocommerce-ResetPassword button[type="submit"]:active,
.woocommerce-lost-password .woocommerce-ResetPassword input[type="submit"]:active,
.woocommerce-lost-password .woocommerce-ResetPassword .woocommerce-Button:active {
	transform: translateY(0);
	box-shadow: 0 2px 6px rgba(255, 117, 68, 0.15);
}

/* Back to Login Link - Only inside form */
.woocommerce-lost-password .woocommerce-ResetPassword > p > a {
	color: var(--color-primary);
	text-decoration: none;
	font-weight: var(--font-weight-medium);
	transition: opacity 0.2s ease;
}

.woocommerce-lost-password .woocommerce-ResetPassword > p > a:hover {
	opacity: 0.8;
	text-decoration: underline;
}

/* Messages */
.woocommerce-lost-password .woocommerce-message,
.woocommerce-lost-password .woocommerce-info,
.woocommerce-lost-password .woocommerce-error {
	max-width: 480px;
	margin: 20px auto;
	padding: var(--spacing-4) var(--spacing-5);
	border-radius: var(--border-radius-md);
	font-family: var(--font-family-body);
	font-size: var(--font-size-base);
	border-left: 4px solid;
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: var(--spacing-3);
	line-height: 1.5;
}

.woocommerce-lost-password .woocommerce-message {
	background: #f0fdf4;
	border-color: #22c55e;
	color: #166534;
}

.woocommerce-lost-password .woocommerce-info {
	background: #f0f9ff;
	border-color: #3b82f6;
	color: #1e40af;
}

.woocommerce-lost-password .woocommerce-error {
	background: #fef2f2;
	border-color: #ef4444;
	color: #991b1b;
}

/* Remove default message icons */
.woocommerce-lost-password .woocommerce-message::before,
.woocommerce-lost-password .woocommerce-info::before,
.woocommerce-lost-password .woocommerce-error::before {
	display: none;
}

/* Message close button */
.woocommerce-lost-password .woocommerce-message .button,
.woocommerce-lost-password .woocommerce-info .button,
.woocommerce-lost-password .woocommerce-error .button {
	margin: 0;
	padding: var(--spacing-2) var(--spacing-4);
	background: transparent;
	color: inherit;
	border: 1px solid currentColor;
	border-radius: var(--border-radius-sm);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-medium);
	text-decoration: none;
	display: inline-block;
	transition: all 0.2s ease;
}

.woocommerce-lost-password .woocommerce-message .button:hover,
.woocommerce-lost-password .woocommerce-info .button:hover,
.woocommerce-lost-password .woocommerce-error .button:hover {
	background: currentColor;
	color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
	.woocommerce-lost-password .woocommerce-ResetPassword {
		margin: 40px 20px;
		padding: var(--spacing-6);
		border-radius: var(--border-radius-md);
	}

	.woocommerce-lost-password .woocommerce-ResetPassword h2 {
		font-size: var(--font-size-xl);
	}

	.woocommerce-lost-password .woocommerce-message,
	.woocommerce-lost-password .woocommerce-info,
	.woocommerce-lost-password .woocommerce-error {
		margin: 20px;
	}
}

@media (max-width: 480px) {
	.woocommerce-lost-password .woocommerce-ResetPassword {
		margin: 20px;
		padding: var(--spacing-5);
	}

	.woocommerce-lost-password .woocommerce-ResetPassword h2 {
		font-size: var(--font-size-lg);
	}

	.woocommerce-lost-password .woocommerce-ResetPassword button[type="submit"],
	.woocommerce-lost-password .woocommerce-ResetPassword input[type="submit"] {
		padding: var(--spacing-3) var(--spacing-5);
	}
}

/* Loading State */
.woocommerce-lost-password .woocommerce-ResetPassword.processing {
	opacity: 0.6;
	pointer-events: none;
}

.woocommerce-lost-password .woocommerce-ResetPassword.processing button[type="submit"]::after {
	content: "...";
	margin-left: 4px;
	animation: dots 1.5s infinite;
}

@keyframes dots {
	0%, 20% { content: "."; }
	40% { content: ".."; }
	60%, 100% { content: "..."; }
}

/* Accessibility */
.woocommerce-lost-password .woocommerce-ResetPassword input:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

.woocommerce-lost-password .woocommerce-ResetPassword button:focus-visible {
	outline: 2px solid var(--color-primary);
	outline-offset: 2px;
}

/* Print Styles */
@media print {
	.woocommerce-lost-password .woocommerce-ResetPassword {
		box-shadow: none;
		border: 1px solid #e6e8ec;
	}
}
