/*
 * HB Login page (page-templates/login.php).
 * Ports the Next.js app's /login styling (apps/web/app/login/page.tsx +
 * FormField) onto the MemberPress login form markup. Generic MemberPress
 * form styling (inputs, labels, submit visuals, errors) lives in
 * hb-forms.css, shared with the account template and loaded before this
 * file; this file keeps the login-only layout and overrides.
 *
 * Also covers the forgot-password / reset-password states MemberPress
 * renders on the same page (?action=forgot_password) — same mp-form-row
 * markup.
 */

/* The old Elementor login page sets a full-page yellow-gradient image as
   the body background — a page-level Elementor setting that survives the
   template flip. The React design this ports is a plain white page.
   Flex column pins the site footer to the bottom of the viewport on this
   shorter-than-viewport page (header, page div and footer are all direct
   body children in Hello Elementor). */
body.page-template-login {
	background: #fff !important;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

body.page-template-login .elementor-location-footer {
	margin-top: auto;
}

.hb-login-page {
	/* width:100%: as a flex item of the column-flex body, auto margins
	   would otherwise shrink the container to its content width, which
	   varies between the login / forgot / reset states. */
	width: 100%;
	max-width: 384px;
	margin: 0 auto;
	padding: 48px 16px 96px;
}

.hb-login-page .hb-login-title {
	margin: 0;
	font-family: 'Poppins', sans-serif;
	font-size: 48px;
	line-height: 64px;
	font-weight: 700;
	color: #000;
}

.hb-login-page .hb-login-rule {
	border: 0;
	border-top: 3px solid #000;
	margin: 24px 0 32px;
}

/* ── Google button + divider ─────────────────────────────────────────── */

.hb-login-page .hb-login-google {
	display: flex;
	justify-content: center;
}

.hb-login-page .hb-login-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 0;
}

.hb-login-page .hb-login-divider::before,
.hb-login-page .hb-login-divider::after {
	content: '';
	height: 1px;
	flex: 1;
	background: #DEDEDE;
}

.hb-login-page .hb-login-divider span {
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	line-height: 20px;
	color: #666669;
}

/* ── Login-only MemberPress overrides ────────────────────────────────── */

/* MemberPress prints its own heading ("Request a Password Reset" etc.)
   inside the wrapper on the reset states; the template's h1 already says
   it. */
.hb-login-page .mp_wrapper h3 {
	display: none;
}

/* Full-width submit is a login-page layout choice; the button's visual
   style comes from hb-forms.css. */
.hb-login-page .mp_wrapper input[type='submit'] {
	display: block;
	width: 100%;
	margin-top: 24px;
}

/* Forgot-password link (sits after the form in the shortcode output) */
.hb-login-page .mepr-login-actions {
	margin-top: 16px;
	text-align: right;
}

.hb-login-page .mepr-login-actions a {
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	line-height: 20px;
	color: #1C64FF;
	text-decoration: none;
}

.hb-login-page .mepr-login-actions a:hover {
	text-decoration: underline;
}

/* ── Sign-up footer link ─────────────────────────────────────────────── */

.hb-login-page .hb-login-signup {
	margin: 24px 0 0;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	line-height: 20px;
	color: #666669;
}

.hb-login-page .hb-login-signup a {
	color: #1C64FF;
	text-decoration: none;
}

.hb-login-page .hb-login-signup a:hover {
	text-decoration: underline;
}
