/* Shared login form-component styling, enqueued for every login template (LoginRenderer). The
   template only frames the form; this file styles the fixed LoginForm itself. It relies on the root
   element carrying .mw_login_page and a .mw_login_c_<corner> class, and on --login-main for the
   accent colour, so the rules apply the same in any template (built-in or plugin). */

.mw_login_page {
	box-sizing: border-box;
	/* fixed base size so the form does not inherit the appearance font size, only the family: heading +
	   text font come from the global appearance variables (set on body by printBodyStyles) */
	font-size: 15px;
	line-height: 1.6;
	font-family: var(--page-text-font-family, inherit);
}

.mw_login_heading,
.mw_login_page .title_element_container {
	font-family: var(--page-title-font-family, inherit);
}

/* forgot / set-password screens on a login page: a bare white page, just the form (no card,
   no background image) */
.mw_login_recovery {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: #fff;
}

.mw_login_recovery_form {
	box-sizing: border-box;
	width: 100%;
	max-width: 400px;
}

/* the recovery heading + text, centred with a gap before the form (like the login heading/text) */
.mw_login_recovery .title_element_container {
	margin: 0 0 10px;
	font-size: 24px;
	text-align: center;
}

.mw_login_recovery p {
	margin: 0 0 30px;
	text-align: center;
	color: #555;
}

.mw_login_logo {
	display: block;
	max-width: 180px;
	height: auto;
	margin: 0 auto 22px;
}

.mw_login_heading {
	margin: 0 0 10px;
	font-size: 24px;
	text-align: center;
}

.mw_login_text {
	margin-bottom: 30px;
	text-align: center;
	color: #555;
}

.mw_login_page .ve_form_row {
	margin-bottom: 14px;
}

/* the .ve_content_form qualifier raises specificity above the theme form reset
   (.ve_content_form input:not(.mw_checkbox){border:0}) so the fields keep their border */
.mw_login_page .ve_content_form .ve_form_text {
	box-sizing: border-box;
	width: 100%;
	height: 52px;
	padding: 0 18px;
	border: 1px solid #d6dad8;
	background: #fff;
	font: inherit;
	font-size: 16px;
	color: #1a1a1a;
	outline: none;
	transition: border-color .15s ease;
}

.mw_login_page .ve_content_form .ve_form_text:focus {
	border-color: var(--login-main);
}

.mw_login_c_rounded .ve_form_text {
	border-radius: 10px;
}

/* round keeps the fields as a rounded rectangle (like the rounded level), not a pill; only the
   button below goes fully round, matching the course design tokens */
.mw_login_c_round .ve_form_text {
	border-radius: 14px;
}

.mw_login_page .mw_password_input_container {
	position: relative;
}

.mw_login_page .mw_password_input_container .ve_form_text {
	padding-right: 44px;
}

/* the extra .mw_password_input_container qualifier outranks the content.css toggle rule
   (top:50%;margin-top:-10px, tuned for a 20px icon) so the 24px icon centres cleanly */
.mw_login_page .mw_password_input_container .mw_password_input_toggle_visibility {
	position: absolute;
	right: 12px;
	top: 50%;
	margin-top: 0;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	cursor: pointer;
	color: #8a8f8c;
}

.mw_login_page .member_login_form_forgot {
	margin-top: 14px;
	font-size: 14px;
	text-align: center;
}

.mw_login_page .member_login_form_forgot a {
	color: var(--login-main);
}

/* the plain login button (mw_login_button, no page-builder preset) takes the login colour */
.mw_login_page .mw_login_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	box-sizing: border-box;
	height: 52px;
	padding: 0 24px;
	border: 0;
	background: var(--login-main);
	color: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: box-shadow .15s ease;
}

.mw_login_c_rounded .mw_login_button {
	border-radius: 10px;
}

.mw_login_c_round .mw_login_button {
	border-radius: 999px;
}

.mw_login_page .mw_login_button:hover {
	box-shadow: 0 14px 32px -12px color-mix(in srgb, var(--login-main) 65%, transparent);
}

/* vertically centre the checkbox with its label (style.css pushes it down with margin-top:5px
   and the flex label has no align-items) */
.mw_login_page .mw_checkbox_label {
	align-items: center;
}

.mw_login_page .mw_checkbox_label .mw_checkbox {
	margin-top: 0;
	margin-bottom: 0;
}

/* keep the checkbox a rounded square: the theme's .ve_form_corners_round input rule (999px)
   would otherwise turn it into a circle. Radius follows the corner level, like the fields. */
.mw_login_page .mw_checkbox {
	border-radius: 4px;
}

.mw_login_c_sharp .mw_checkbox {
	border-radius: 0;
}

.mw_login_c_round .mw_checkbox {
	border-radius: 6px;
}

.mw_login_page .mw_checkbox:checked {
	background-color: var(--login-main);
	border-color: var(--login-main);
}
