/**
 * Dealum SSO — login page styles
 *
 * Scoped under .vane-dealum-login to prevent leakage.
 * Enqueued from dealum-sso.php on the MemberPress login page only.
 */

.vane-dealum-login {
	max-width: 570px;
	margin: 2rem auto 0;
	text-align: center;
}

/* --- SSO error notice ------------------------------------------------ */
/* Rendered above the MemberPress form when the Dealum flow fails or is
   cancelled. Uses settled brand tokens only (navy on card grey). */

.vane-dealum-login__notice {
	max-width: 570px;
	margin: 2rem auto 1.5rem;
	padding: 0.875rem 1.25rem;
	border: 1px solid #00385E;
	border-radius: 8px;
	background: #F9F9F8;
	color: #00385E;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.9375rem;
	line-height: 1.5;
	text-align: center;
}

/* --- "or" divider --------------------------------------------------- */

.vane-dealum-login__divider {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
	color: #6b6b6b;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.vane-dealum-login__divider::before,
.vane-dealum-login__divider::after {
	content: '';
	flex: 1 1 auto;
	height: 1px;
	background: #e0e0e0;
}

/* --- Supporting label ----------------------------------------------- */

.vane-dealum-login__label {
	margin: 0 0 0.875rem;
	color: #00385E;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.9375rem;
	line-height: 1.4;
	text-align: center;
}

/* --- Button --------------------------------------------------------- */
/* Plain anchor output by dealum-sso.php — no plugin classes involved. */

.vane-dealum-login__button a {
	display: inline-block;
	box-sizing: border-box;
	padding: 0.8125rem 1.875rem;
	border: 1px solid #00385E;
	border-radius: 999px;
	background: #00385E;
	color: #ffffff;
	font-family: 'Montserrat', sans-serif;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-align: center;
	text-decoration: none;
	text-shadow: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease;
}

.vane-dealum-login__button a:hover,
.vane-dealum-login__button a:focus {
	background: #ffffff;
	color: #00385E;
	text-decoration: none;
}

.vane-dealum-login__button a:focus-visible {
	outline: 2px solid #00385E;
	outline-offset: 2px;
}

/* --- Mobile --------------------------------------------------------- */

@media (max-width: 640px) {
	.vane-dealum-login {
		max-width: 100%;
	}

	.vane-dealum-login__button a {
		display: block;
		width: 60%;
		margin-left: auto;
		margin-right: auto;
	}
}

/* ==========================================
   FOOTER WAVE SPACER
   Full-bleed via viewport-width breakout, since
   this sits inside the content container rather
   than a custom template.
   ========================================== */

.vane-login-wave {
	position: relative;
	left: 50%;
	width: 100vw;
	margin-left: -50vw;
	margin-top: 120px;
	margin-bottom: -1px; /* kills the subpixel seam against the footer */
	line-height: 0;
	font-size: 0;
}

.vane-login-wave img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 767px) {
	.vane-login-wave {
		margin-top: 100px;
	}
}

/* ==========================================================================
   MemberPress — Forgot Password / Reset Password
   /login/?action=forgot_password
   ========================================================================== */

.mp_wrapper {
	max-width: 520px;
	margin: 72px auto 40px;
	padding: 0 24px;
	font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
	box-sizing: border-box;
}

/* Page heading — covers both the template h1/h2 and one placed just above the form */
h1:has(+ .mp_wrapper),
h2:has(+ .mp_wrapper),
.mp_wrapper h1,
.mp_wrapper h2 {
	max-width: 520px;
	margin: 72px auto 8px;
	padding: 0 24px;
	font-family: 'Montserrat', sans-serif;
	font-size: 32px;
	line-height: 1.2;
	font-weight: 700;
	color: var(--vane-navy, #00385E);
	text-align: center;
}

h1:has(+ .mp_wrapper) + .mp_wrapper,
h2:has(+ .mp_wrapper) + .mp_wrapper {
	margin-top: 0;
}

.mp_wrapper .mepr-form {
	margin: 0;
	padding: 32px;
	background: var(--vane-panel, #F9F9F8);
	border: 1px solid var(--vane-hairline, #DFE2DB);
	border-radius: 10px;
}

.mp_wrapper .mp-form-row {
	margin-bottom: 20px;
}

.mp_wrapper .mp-form-label,
.mp_wrapper .mp-form-label label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--vane-navy, #00385E);
}

.mp_wrapper input[type="text"],
.mp_wrapper input[type="email"],
.mp_wrapper input[type="password"] {
	display: block;
	width: 100%;
	max-width: 100%;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 15px;
	color: #1A1A1A;
	background: #FFFFFF;
	border: 1px solid var(--vane-hairline, #DFE2DB);
	border-radius: 6px;
	box-sizing: border-box;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mp_wrapper input[type="text"]:focus,
.mp_wrapper input[type="email"]:focus,
.mp_wrapper input[type="password"]:focus {
	outline: none;
	border-color: var(--vane-navy, #00385E);
	box-shadow: 0 0 0 3px rgba(0, 56, 94, 0.12);
}

.mp_wrapper .mepr_bottom_of_form {
	margin-top: 24px;
}

.mp_wrapper input[type="submit"],
.mp_wrapper .mepr-share-button,
.mp_wrapper button[type="submit"] {
	display: block;
	width: 100%;
	padding: 14px 28px;
	font-family: 'Montserrat', sans-serif;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	color: #FFFFFF;
	background: var(--vane-navy, #00385E);
	border: 1px solid var(--vane-navy, #00385E);
	border-radius: 999px;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mp_wrapper input[type="submit"]:hover,
.mp_wrapper input[type="submit"]:focus,
.mp_wrapper .mepr-share-button:hover,
.mp_wrapper .mepr-share-button:focus,
.mp_wrapper button[type="submit"]:hover,
.mp_wrapper button[type="submit"]:focus {
	background: #ffffff;
	color: #00385E;
	text-decoration: none;
}


.mp_wrapper input[type="submit"]:focus-visible,
.mp_wrapper .mepr-share-button:focus-visible,
.mp_wrapper button[type="submit"]:focus-visible {
	outline: 2px solid #00385E;
	outline-offset: 2px;
}
/* Notices */
.mp_wrapper .mepr_error,
.mp_wrapper .mepr_success {
	max-width: 100%;
	margin: 0 0 20px;
	padding: 14px 16px;
	font-size: 14px;
	line-height: 1.5;
	border-radius: 6px;
}

.mp_wrapper .mepr_error {
	color: #7A1F1F;
	background: #FBEDED;
	border: 1px solid #F0C9C9;
}

.mp_wrapper .mepr_success {
	color: #14502F;
	background: #EDF7F1;
	border: 1px solid var(--vane-mint, #ABE2C7);
}

.mp_wrapper .mepr_error ul,
.mp_wrapper .mepr_success ul {
	margin: 0;
	padding-left: 18px;
}

/* Tighten the gap into the Dealum SSO block below */
.mp_wrapper + .vane-sso-divider,
.mp_wrapper + .vane-sso-wrap {
	margin-top: 8px;
}

@media (max-width: 600px) {
	.mp_wrapper {
		margin-top: 48px;
	}

	h1:has(+ .mp_wrapper),
	h2:has(+ .mp_wrapper) {
		margin-top: 48px;
		font-size: 26px;
	}

	.mp_wrapper .mepr-form {
		padding: 24px 20px;
	}
}