/* ============================================================
   /membership-login/ — branded wrapper around Simple Membership
   plugin's [swpm_login_form]. Loads only on this page.
   ============================================================ */

.uj-ml-page {
	font: 1rem/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #1f2937;
	padding: 3rem 1.25rem 4rem;
	min-height: 60vh;
	background: linear-gradient(180deg, #FFF5F0 0%, #ffffff 60%);
}
.uj-ml-page__inner {
	max-width: 480px;
	margin: 0 auto;
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */
.uj-ml-page__header {
	text-align: center;
	margin: 0 0 1.5rem;
}
.uj-ml-page__eyebrow {
	margin: 0 0 0.5rem;
	font: 700 0.75rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #B3421D;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.uj-ml-page__heading {
	margin: 0 0 0.75rem !important;
	font: 600 clamp(2rem, 4vw, 2.625rem)/1.1 "Oswald", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif !important;
	color: #B3421D !important;
	letter-spacing: 0.01em;
}
.uj-ml-page__sub {
	margin: 0;
	color: #4b5563;
	font-size: 1rem;
	line-height: 1.55;
}

/* ------------------------------------------------------------
   Form card — wraps the swpm-login-form-inner block
   ------------------------------------------------------------ */
.uj-ml-page__form-card {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 2rem 1.75rem 1.75rem;
	box-shadow: 0 4px 16px rgba(179, 66, 29, 0.08);
}

/* Reset Simple Membership's table-like layout if present */
.uj-ml-page__form-card .swpm-login-form-inner,
.uj-ml-page__form-card .swpm-login-form {
	display: block !important;
	width: 100% !important;
}

/* Style each label */
.uj-ml-page__form-card .swpm-username-label,
.uj-ml-page__form-card .swpm-password-label,
.uj-ml-page__form-card .swpm-label {
	display: block !important;
	margin: 0 0 0.375rem !important;
	font: 600 0.875rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	color: #1f2937 !important;
	letter-spacing: 0;
	text-transform: none;
}

/* Input fields — large, branded focus state */
.uj-ml-page__form-card .swpm-text-field,
.uj-ml-page__form-card input[type="text"],
.uj-ml-page__form-card input[type="email"],
.uj-ml-page__form-card input[type="password"] {
	display: block !important;
	width: 100% !important;
	padding: 0.75rem 0.875rem !important;
	margin: 0 0 1rem !important;
	background: #f9fafb !important;
	border: 1px solid #d1d5db !important;
	border-radius: 6px !important;
	font: 1rem/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	color: #1f2937 !important;
	box-sizing: border-box;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.uj-ml-page__form-card .swpm-text-field:focus,
.uj-ml-page__form-card input[type="text"]:focus,
.uj-ml-page__form-card input[type="email"]:focus,
.uj-ml-page__form-card input[type="password"]:focus {
	outline: none !important;
	border-color: #B3421D !important;
	background: #ffffff !important;
	box-shadow: 0 0 0 3px rgba(179, 66, 29, 0.12) !important;
}

/* "Remember me" checkbox row */
.uj-ml-page__form-card .swpm-before-login-submit-section {
	margin: 0 0 1.25rem !important;
	display: flex !important;
	align-items: center !important;
	gap: 0.5rem !important;
}
.uj-ml-page__form-card .swpm-remember-checkbox,
.uj-ml-page__form-card input[type="checkbox"] {
	width: auto !important;
	margin: 0 !important;
	accent-color: #B3421D;
}
.uj-ml-page__form-card .swpm-rememberme-label,
.uj-ml-page__form-card .swpm-rember-label {
	display: inline !important;
	margin: 0 !important;
	font: 500 0.875rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	color: #4b5563 !important;
	cursor: pointer;
}

/* Submit button — brand-red pill, matches site CTAs */
.uj-ml-page__form-card .swpm-login-form-submit,
.uj-ml-page__form-card .swpm-login-submit input[type="submit"],
.uj-ml-page__form-card input[type="submit"][value*="Login" i],
.uj-ml-page__form-card .swpm-submit-btn-default-style {
	display: block !important;
	width: 100% !important;
	padding: 0.875rem 1.5rem !important;
	margin: 0.25rem 0 1.25rem !important;
	background: #B3421D !important;
	color: #ffffff !important;
	border: 0 !important;
	border-radius: 999px !important;
	font: 600 1rem/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
	letter-spacing: 0.01em !important;
	text-transform: none !important;
	cursor: pointer !important;
	transition: background 0.15s ease, transform 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.uj-ml-page__form-card .swpm-login-form-submit:hover,
.uj-ml-page__form-card .swpm-submit-btn-default-style:hover,
.uj-ml-page__form-card input[type="submit"]:hover {
	background: #8E331A !important;
	transform: translateY(-1px);
}

/* "Forgot password" / "Join us" supplementary links */
.uj-ml-page__form-card .swpm-forgot-pass-link,
.uj-ml-page__form-card .swpm-join-us-link,
.uj-ml-page__form-card .swpm-login-form-pw-reset-link,
.uj-ml-page__form-card .swpm-login-form-register-link {
	display: block;
	margin: 0.625rem 0;
	font-size: 0.875rem;
	text-align: center;
}
.uj-ml-page__form-card .swpm-forgot-pass-link a,
.uj-ml-page__form-card .swpm-join-us-link a,
.uj-ml-page__form-card .swpm-login-form-pw-reset-link a,
.uj-ml-page__form-card .swpm-login-form-register-link a {
	color: #B3421D;
	font-weight: 600;
	text-decoration: none;
}
.uj-ml-page__form-card .swpm-forgot-pass-link a:hover,
.uj-ml-page__form-card .swpm-join-us-link a:hover,
.uj-ml-page__form-card .swpm-login-form-pw-reset-link a:hover,
.uj-ml-page__form-card .swpm-login-form-register-link a:hover {
	text-decoration: underline;
}

/* Login-action / error messages — the plugin always renders an outer
   `<div class="swpm-login-action-msg">` containing an inner empty
   `<span class="swpm-login-widget-action-msg">` placeholder. Strip
   styling from the outer div entirely; only style the inner span when
   it has real text content. Result: empty form = no visible message
   pill; populated message = branded peach-with-brand-red-accent box. */
.uj-ml-page__form-card .swpm-login-action-msg {
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
}
.uj-ml-page__form-card .swpm-login-widget-action-msg {
	display: inline;
}
.uj-ml-page__form-card .swpm-login-widget-action-msg:not(:empty) {
	display: block;
	margin: 0 0 1rem !important;
	padding: 0.625rem 0.875rem !important;
	background: #FFF5F0 !important;
	border-left: 3px solid #B3421D !important;
	border-radius: 4px !important;
	color: #1f2937 !important;
	font-size: 0.9375rem !important;
}

/* ------------------------------------------------------------
   Below-the-form CTA
   ------------------------------------------------------------ */
.uj-ml-page__footer {
	margin: 1.5rem 0 0;
	text-align: center;
	color: #4b5563;
}
.uj-ml-page__footer p {
	margin: 0.5rem 0;
}
.uj-ml-page__cta {
	color: #B3421D;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 2px solid #B3421D;
	padding-bottom: 1px;
	transition: color 0.15s ease;
}
.uj-ml-page__cta:hover {
	color: #8E331A;
	border-color: #8E331A;
}
.uj-ml-page__small {
	font-size: 0.875rem;
	color: #6b7280;
}
.uj-ml-page__small a {
	color: #B3421D;
	font-weight: 600;
	text-decoration: none;
}
.uj-ml-page__small a:hover { text-decoration: underline; }

/* Mobile */
@media (max-width: 600px) {
	.uj-ml-page { padding: 2rem 1rem 3rem; }
	.uj-ml-page__form-card { padding: 1.5rem 1.25rem 1.25rem; }
}
