/**
 * J Martin Skincare — Auth pages (Login, Register, Forgot Password)
 */

.jmartin-auth-page {
	margin: 0;
}

.jmartin-auth-hero {
	min-height: calc(100vh - 80px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6rem 1rem 3rem;
	background: url("../images/hero-auth-leaf.jpg") center/cover no-repeat;
	position: relative;
}

.jmartin-auth-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.15);
	backdrop-filter: blur(2px);
}

.jmartin-auth-card {
	position: relative;
	z-index: 1;
	width: min(100%, 480px);
	background: var(--jmartin-cream);
	border-radius: var(--jmartin-radius-lg);
	padding: 2.5rem 2rem;
	box-shadow: var(--jmartin-shadow);
}

.jmartin-auth-card h1 {
	font-size: clamp(1.75rem, 4vw, 2.25rem);
	text-align: center;
	margin: 0 0 0.5rem;
	color: var(--jmartin-olive-dark);
}

.jmartin-auth-card__subtitle {
	text-align: center;
	font-size: 0.85rem;
	color: var(--jmartin-text-muted);
	margin: 0 0 2rem;
}

.jmartin-auth-notice {
	padding: 0.75rem 1rem;
	border-radius: var(--jmartin-radius-sm);
	margin-bottom: 1.5rem;
	font-size: 0.85rem;
}

.jmartin-auth-notice--error {
	background: #fdecea;
	color: #c62828;
	border: 1px solid #f5c6cb;
}

.jmartin-auth-notice--success {
	background: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #c8e6c9;
}

.jmartin-form-field {
	margin-bottom: 1.25rem;
}

.jmartin-form-field label {
	display: block;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--jmartin-olive-dark);
	margin-bottom: 0.5rem;
}

.jmartin-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.jmartin-input-wrap__icon {
	position: absolute;
	left: 1rem;
	color: var(--jmartin-olive-dark);
	opacity: 0.6;
	pointer-events: none;
	display: flex;
}

.jmartin-input-wrap input {
	width: 100%;
	padding: 0.875rem 1rem 0.875rem 2.75rem;
	background: var(--jmartin-input-beige);
	border: none;
	border-radius: var(--jmartin-radius-sm);
	font-family: var(--jmartin-font-body);
	font-size: 0.9rem;
	color: var(--jmartin-text);
	outline: none;
}

.jmartin-input-wrap input::placeholder {
	color: #a0a0a0;
}

.jmartin-input-wrap input:focus {
	box-shadow: 0 0 0 2px var(--jmartin-olive-dark);
}

.jmartin-input-wrap--password input {
	padding-right: 2.75rem;
}

.jmartin-password-toggle {
	position: absolute;
	right: 1rem;
	background: none;
	border: none;
	color: var(--jmartin-olive-dark);
	opacity: 0.6;
	cursor: pointer;
	padding: 0;
	display: flex;
}

.jmartin-form-helper {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.7rem;
	color: var(--jmartin-text-muted);
	margin-top: 0.5rem;
	line-height: 1.5;
}

.jmartin-form-helper svg {
	flex-shrink: 0;
	margin-top: 2px;
}

.jmartin-form-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.5rem;
	font-size: 0.85rem;
}

.jmartin-form-row label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 400;
	cursor: pointer;
}

.jmartin-form-row input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: var(--jmartin-olive-dark);
}

.jmartin-form-row a {
	color: var(--jmartin-olive-dark);
	font-weight: 600;
}

.jmartin-auth-submit {
	width: 100%;
	padding: 1rem;
	background: var(--jmartin-olive-dark);
	color: var(--jmartin-white);
	border: none;
	border-radius: var(--jmartin-radius-sm);
	font-family: var(--jmartin-font-body);
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease;
}

.jmartin-auth-submit:hover {
	background: var(--jmartin-olive-header);
}

.jmartin-auth-divider {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin: 1.5rem 0;
	color: var(--jmartin-text-muted);
	font-size: 0.85rem;
}

.jmartin-auth-divider::before,
.jmartin-auth-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #ddd;
}

.jmartin-auth-footer-link {
	text-align: center;
	font-size: 0.9rem;
}

.jmartin-auth-footer-link a {
	font-weight: 600;
	color: var(--jmartin-olive-dark);
}

@media (max-width: 767px) {
	.jmartin-auth-hero {
		padding: 5rem 1rem 2rem;
		min-height: auto;
	}

	.jmartin-auth-card {
		width: 100%;
		padding: 2rem 1.5rem;
	}
}
