/* =========================================================================
   Login — Account Access
   Figma: xvtBBvcGLpPuuhiQZrprpC 85:1031 page · 85:1037 Auth card · 85:1053 mobile
   (prev: t2A4vKP4GwnGSXKBxaVocP 228:1546 / 377:5092 — same layout)
   Scoped to body.page-login / body.um-page-login only.
   Header & footer intentionally untouched.
   Does not style register, password-reset, or account.
   ========================================================================= */

/* ---- Page shell -------------------------------------------------------- */
body.page-login .site-main,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .site-main {
	background: #efebe0;
}

body.page-login .page__head,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .page__head {
	display: none;
}

body.page-login .page,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .page {
	max-width: none;
	width: 100%;
	margin-inline: 0;
	padding: 0;
}

body.page-login .page__content,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .page__content {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: none;
	width: 100%;
	margin-inline: 0;
	padding: 80px 48px;
	box-sizing: border-box;
}

body.page-login .prose > * + *,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .prose > * + * {
	margin-top: 0;
}

body.page-login .page__content > p:empty,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .page__content > p:empty {
	display: none;
}

/* ---- Hero -------------------------------------------------------------- */
body.page-login .page__content > h1,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .page__content > h1 {
	margin: 0;
	max-width: 498px;
	color: #1a1816;
	font-family: var(--font-display);
	font-size: 61px;
	font-weight: 500;
	letter-spacing: -1.83px;
	line-height: 1;
	text-align: center;
}

body.page-login .page__content > p.wp-block-paragraph:first-of-type,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .page__content > p.wp-block-paragraph:first-of-type {
	margin: 16px 0 0;
	color: #5c544a;
	font-family: var(--font-sans);
	font-size: 21px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.3;
	text-align: center;
}

/* 64px between hero group and card */
body.page-login .um.um-login,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um.um-login {
	max-width: 890px !important;
	width: 100% !important;
	margin: 64px auto 0 !important;
	float: none !important;
}

body.page-login .um-login .um-form,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-form {
	margin: 0;
	padding: 32px;
	background: #ffffff;
	border: 1px solid #e7e2d7;
	border-radius: 16px;
	box-shadow: none;
}

body.page-login .um-login .um-form::before,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-form::before {
	display: block;
	margin: 0 0 48px;
	color: #1a1816;
	font-family: var(--font-display);
	font-size: 27px;
	font-weight: 500;
	letter-spacing: -0.54px;
	line-height: 1;
	content: "Log in";
}

body.page-login .um-login .um-form form,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-form form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 12px;
	row-gap: 0;
	align-items: center;
	margin: 0;
}

body.page-login .um-login .um-row,
body.page-login .um-login .um-col-1,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-row,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-col-1 {
	grid-column: 1 / -1;
	/* No extra bottom margin — field gaps handle Top Align 16px spacing */
	margin: 0 !important;
	padding: 0;
	float: none;
	width: 100%;
	order: 0;
}

body.page-login .um-login .um-col-alt,
body.page-login .um-login .um-col-alt-b,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-col-alt,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-col-alt-b {
	display: contents;
}

body.page-login .um-login .um-clear,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-clear {
	display: none;
}

/* ---- Fields ------------------------------------------------------------ */
body.page-login .um-login .um-field,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-field {
	margin: 0 0 16px;
	padding: 0;
}

body.page-login .um-login .um-field-label,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-field-label {
	/* Figma Input itemSpacing = 8 */
	margin: 0 0 8px !important;
	padding: 0 !important;
	border: 0 !important;
	float: none !important;
}

body.page-login .um-login .um-field-label label,
body.page-login .um-login .um-field label,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-field-label label,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-field label {
	margin: 0 !important;
	color: #1a1816 !important;
	font-family: var(--font-sans) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
}

body.page-login .um-login .um-field-area,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-field-area {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
}

body.page-login .um-login .um-form input[type="text"],
body.page-login .um-login .um-form input[type="email"],
body.page-login .um-login .um-form input[type="password"],
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-form input[type="text"],
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-form input[type="email"],
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-form input[type="password"] {
	width: 100% !important;
	max-width: none !important;
	min-height: 50px;
	padding: 13px 14px !important;
	background: #ffffff !important;
	border: 1px solid #d8d1c2 !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	color: #1a1816 !important;
	font-family: var(--font-sans) !important;
	font-size: 16px !important;
	line-height: 1.5 !important;
}

body.page-login .um-login .um-form input:focus,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-form input:focus {
	outline: none !important;
	border-color: #a03038 !important;
	box-shadow: 0 0 0 3px color-mix(in srgb, #a03038 18%, transparent) !important;
}

body.page-login .um-login .um-form input::placeholder,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-form input::placeholder {
	color: #6e665a;
	opacity: 1;
}

/* Honeypot only — do not hide remember-me (.um-field-c) */
body.page-login .um-login .um_request_name,
body.page-login .um-login label[for*="um_request"],
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um_request_name,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login label[for*="um_request"] {
	display: none !important;
}

/*
 * UM DOM order is: remember → Login CTA → Register → Forgot.
 * Figma 85:1037 wants: remember | forgot, then CTA, then switch.
 * display:contents on .um-col-alt* + matching order pulls remember+forgot onto one row.
 */
body.page-login .um-login .um-field-c,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-field-c {
	display: block !important;
	grid-column: 1;
	order: 1;
	margin: 0 0 48px !important;
	padding: 0;
}

/* ---- Remember + forgot ------------------------------------------------- */
body.page-login .um-login .um-field-checkbox,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-field-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
}

body.page-login .um-login .um-field-checkbox label,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-field-checkbox label {
	display: flex !important;
	align-items: center;
	gap: 8px;
	margin: 0 !important;
	cursor: pointer;
	font-size: inherit !important;
	font-weight: 400 !important;
}

body.page-login .um-login .um-field-checkbox-state,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-field-checkbox-state {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 18px !important;
	height: 18px !important;
	flex-shrink: 0;
	margin: 0 !important;
	border: 1px solid #d8d1c2 !important;
	border-radius: 4px !important;
	background: #ffffff !important;
	box-sizing: border-box;
}

body.page-login .um-login .um-field-checkbox-state i,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-field-checkbox-state i {
	display: none;
}

body.page-login .um-login .um-field-checkbox input[type="checkbox"]:checked + .um-field-checkbox-state,
body.page-login .um-login .um-field-checkbox-state.checked,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-field-checkbox input[type="checkbox"]:checked + .um-field-checkbox-state,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-field-checkbox-state.checked {
	background: #a03038;
	border-color: #a03038;
}

body.page-login .um-login .um-field-checkbox-option,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-field-checkbox-option {
	margin: 0 !important;
	padding: 1px 0 0 18px !important;
	color: #5c544a !important;
	font-family: var(--font-sans) !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 18px !important;
}

body.page-login .um-login a.um-link-alt,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login a.um-link-alt {
	grid-column: 2;
	order: 1;
	justify-self: end;
	align-self: center;
	margin: 0 0 48px !important;
	color: #a03038 !important;
	font-family: var(--font-sans);
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 18px;
	text-decoration: none !important;
	text-align: right;
}

body.page-login .um-login a.um-link-alt:hover,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login a.um-link-alt:hover {
	color: #7a242b !important;
	text-decoration: underline !important;
}

/* ---- CTA + switch ------------------------------------------------------ */
body.page-login .um-login .um-left.um-half,
body.page-login .um-login .um-right.um-half,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-left.um-half,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-right.um-half {
	float: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.page-login .um-login .um-left.um-half,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-left.um-half {
	grid-column: 1 / -1;
	order: 2;
}

body.page-login .um-login .um-right.um-half,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-right.um-half {
	grid-column: 1 / -1;
	order: 3;
	margin-top: 8px !important;
	text-align: left;
}

body.page-login .um-login .um-form input[type="submit"].um-button,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-form input[type="submit"].um-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	min-height: 45px !important;
	margin: 0 !important;
	padding: 13px 24px !important;
	background: #a03038 !important;
	border: 1px solid #a03038 !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	color: #fff7f0 !important;
	cursor: pointer;
	font-family: var(--font-sans) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	letter-spacing: 0 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
}

body.page-login .um-login .um-form input[type="submit"].um-button:hover,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-form input[type="submit"].um-button:hover {
	background: #7a242b !important;
	border-color: #7a242b !important;
}

body.page-login .um-login .um-right.um-half::before,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-right.um-half::before {
	content: "New to OTS? ";
	color: #6e665a;
	font-family: var(--font-sans);
	font-size: 12px;
	font-weight: 400;
	line-height: 18px;
}

body.page-login .um-login a.um-button.um-alt,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login a.um-button.um-alt {
	display: inline !important;
	width: auto !important;
	min-height: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 18px !important;
	text-align: left;
	text-decoration: none !important;
	text-transform: none !important;
}

body.page-login .um-login a.um-button.um-alt::after,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login a.um-button.um-alt::after {
	content: "Create an account";
	color: #a03038 !important;
	font-family: var(--font-sans);
	font-size: 12px;
	font-weight: 400;
	line-height: 18px;
}

body.page-login .um-login a.um-button.um-alt:hover::after,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login a.um-button.um-alt:hover::after {
	color: #7a242b !important;
	text-decoration: underline;
}

/* Notices / errors */
body.page-login .um-login .um-notice,
body.page-login .um-login .um-field-error,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-notice,
body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-field-error {
	grid-column: 1 / -1;
}

/* ---- Mobile ------------------------------------------------------------ */
@media (max-width: 640px) {
	body.page-login .page__content,
	body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .page__content {
		padding: 48px 24px 0;
		align-items: stretch;
	}

	body.page-login .page__content > h1,
	body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .page__content > h1 {
		max-width: none;
		font-size: 40px;
		letter-spacing: -1.2px;
		text-align: left;
	}

	body.page-login .page__content > p.wp-block-paragraph:first-of-type,
	body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .page__content > p.wp-block-paragraph:first-of-type {
		max-width: none;
		margin-top: 24px;
		margin-bottom: 48px;
		font-size: 19px;
		line-height: 1.3;
		text-align: left;
	}

	body.page-login .um.um-login,
	body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um.um-login {
		max-width: none !important;
		width: 100vw !important;
		margin: 0 0 0 calc(50% - 50vw) !important;
	}

	body.page-login .um-login .um-form,
	body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-form {
		padding: 48px 24px;
		/* Figma mobile card is full-bleed with sand border, no radius */
		border: 1px solid #e7e2d7;
		border-left: 0;
		border-right: 0;
		border-radius: 0;
	}

	body.page-login .um-login .um-form::before,
	body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-form::before {
		margin-bottom: 32px;
		font-size: 23px;
		letter-spacing: -0.69px;
	}

	body.page-login .um-login .um-field-c,
	body.page-login .um-login a.um-link-alt,
	body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login .um-field-c,
	body.um-page-login:not(.page-ots-membership):not(.page-template-template-membership) .um-login a.um-link-alt {
		margin-bottom: 32px !important;
	}
}
