/* ==========================================================================
   MEP Login Page
   Styles for the /login/ custom template.
   ========================================================================== */

.mep-login-page {
	min-height: calc(100vh - 82px);
	background: var(--paper, #fff);
}

.mep-login-shell {
	display: flex;
	align-items: center;
	min-height: calc(100vh - 82px);
	background-size: cover;
	background-position: center;
}

.mep-login-container {
	width: min(100%, 520px);
	margin: 0 auto;
	padding: clamp(48px, 6vw, 96px) 0;
}

/* Brand / back-link */
.mep-login-brand {
	text-align: center;
	margin-bottom: 1.5rem;
	font-size: 0.85rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.mep-login-brand a {
	color: inherit;
	text-decoration: none;
}

/* Heading */
.mep-login-heading {
	font-family: var(--serif, Georgia, serif);
	font-size: clamp(30px, 4vw, 48px);
	font-weight: 600;
	line-height: 1.05;
	text-align: center;
	margin: 0 0 2rem;
}

/* Error banner */
.mep-login-error {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	border-radius: 0;
	color: #b91c1c;
	padding: 0.85rem 1rem;
	font-size: 0.9rem;
	margin-bottom: 1.5rem;
}

/* Form fields */
.mep-login-form .mep-field {
	margin-bottom: 1.25rem;
}

.mep-login-form label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 0.4rem;
}

.mep-login-form .mep-input {
	width: 100%;
	padding: 0.75rem 0.85rem;
	border: 1px solid #d1c9bc;
	border-radius: 0;
	font-size: 1rem;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s;
}

.mep-login-form .mep-input:focus {
	outline: none;
	border-color: #7c6a52;
	box-shadow: 0 0 0 3px rgba(124, 106, 82, 0.12);
}

.mep-login-form .mep-input--error {
	border-color: #f87171;
}

/* Remember me / forgot password row */
.mep-field--inline {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.mep-remember-label {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.875rem;
	cursor: pointer;
}

.mep-forgot-link {
	font-size: 0.875rem;
	color: #7c6a52;
	text-decoration: none;
}

.mep-forgot-link:hover {
	text-decoration: underline;
}

/* Submit button */
.mep-btn--primary {
	background: #3b2f1e;
	color: #fff;
	border: none;
	border-radius: 0;
	padding: 0.85rem 1.5rem;
	font-size: 1rem;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s;
}

.mep-btn--primary:hover {
	background: #2a2015;
}

.mep-btn--full {
	width: 100%;
	margin-top: 0.5rem;
}

/* Register link */
.mep-login-register {
	text-align: center;
	margin-top: 1.5rem;
	font-size: 0.9rem;
	color: #4f4a43;
}

.mep-login-register a {
	color: #7c6a52;
	text-decoration: none;
}

.mep-login-register a:hover {
	text-decoration: underline;
}

@media (max-width: 768px) {
	.mep-login-shell {
		min-height: auto;
		background-position: center;
	}

	.mep-login-container {
		width: 100%;
		margin: 0;
		padding: 56px 20px;
	}
}
