/**
 * EistrupWeb Login CVI
 * Venstre: login-formular. Højre: WP Fundament-panel med billedbaggrund.
 */

html,
body.login {
	height: 100%;
}

body.login {
	background: #FFFFFF !important;
	font-family: 'DM Sans', -apple-system, sans-serif;
	color: #354B48;
	margin: 0 !important;
	padding: 0 !important;
	min-height: 100vh;
}

/* Skjul WordPress' sprog-switcher, den bryder 50/50-layoutet */
body.login .language-switcher {
	display: none !important;
}

/* =========================================================================
   LEFT SIDE — LOGIN FORM
   Bruges som almindelig block-element. Position: fixed på fundament-panelet
   garanterer split-layout uden at vi skal ændre body's display.
========================================================================= */
#login {
	position: relative !important;
	z-index: 10 !important;
	width: 50% !important;
	max-width: 560px;
	padding: 80px 48px !important;
	margin: 0 !important;
	box-sizing: border-box !important;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}

#login > * {
	width: 100%;
	max-width: 360px;
}

body.login h1 a {
	background-image: none;
	background: none;
	width: auto;
	height: auto;
	padding: 0;
	margin: 0 auto 32px;
	text-indent: 0;
	font-family: 'Manrope', sans-serif;
	font-weight: 600;
	font-size: 1.5rem;
	color: #022824;
	text-decoration: none;
	overflow: visible;
	display: block;
	text-align: center;
	line-height: 1.2;
	letter-spacing: -0.015em;
}

body.login h1 a::before {
	content: "EistrupWeb";
	display: block;
	color: #022824;
}

body.login h1 a::after {
	content: "Hjemmesider bygget på tillid";
	display: block;
	font-family: 'DM Sans', sans-serif;
	font-weight: 400;
	font-size: 0.8125rem;
	color: #6B8885;
	margin-top: 4px;
	letter-spacing: 0;
}

#loginform,
#registerform,
#lostpasswordform {
	background: #FFFFFF;
	border: 1px solid #E8F0EF;
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba(2, 40, 36, 0.09), 0 1px 2px rgba(2, 40, 36, 0.06);
	padding: 28px 24px;
	font-family: 'DM Sans', sans-serif;
}

body.login label {
	color: #4A6360;
	font-family: 'DM Sans', sans-serif;
	font-weight: 500;
	font-size: 0.875rem;
}

body.login input[type="text"],
body.login input[type="password"],
body.login input[type="email"] {
	border: 1px solid #D1DFDE;
	border-radius: 8px;
	background: #FFFFFF;
	color: #022824;
	font-family: 'DM Sans', sans-serif;
	padding: 10px 12px;
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.login input[type="text"]:focus,
body.login input[type="password"]:focus,
body.login input[type="email"]:focus {
	border-color: #009E97;
	box-shadow: 0 0 0 3px rgba(0, 158, 151, 0.12);
	outline: none;
}

body.login .button.button-large,
body.login .button-primary {
	background: #009E97;
	border-color: #009E97;
	color: #FFFFFF;
	text-shadow: none;
	box-shadow: 0 1px 2px rgba(2, 40, 36, 0.1);
	border-radius: 8px;
	font-family: 'DM Sans', sans-serif;
	font-weight: 600;
	letter-spacing: 0.01em;
	padding: 10px 22px;
	height: auto;
	line-height: 1.4;
	transition: all 0.15s ease;
	width: 100%;
}

body.login .button.button-large:hover,
body.login .button-primary:hover,
body.login .button.button-large:focus,
body.login .button-primary:focus {
	background: #024C48;
	border-color: #024C48;
	color: #FFFFFF;
	transform: translateY(-1px);
	box-shadow: 0 4px 6px rgba(2, 40, 36, 0.09);
}

body.login #nav,
body.login #backtoblog {
	text-align: center;
	padding: 12px 0;
	margin: 0;
}

body.login #nav a,
body.login #backtoblog a {
	color: #6B8885;
	font-family: 'DM Sans', sans-serif;
	font-size: 0.8125rem;
	text-decoration: none;
	transition: color 0.15s ease;
}

body.login #nav a:hover,
body.login #backtoblog a:hover,
body.login #nav a:focus,
body.login #backtoblog a:focus {
	color: #009E97;
	box-shadow: none;
}

body.login .privacy-policy-page-link a {
	color: #A3B8B6;
	font-size: 0.75rem;
}

body.login .privacy-policy-page-link a:hover {
	color: #009E97;
}

body.login .message,
body.login #login_error {
	border-radius: 8px;
	background: #FFFFFF;
	border-left-width: 4px;
	box-shadow: 0 1px 2px rgba(2, 40, 36, 0.06);
	font-family: 'DM Sans', sans-serif;
	font-size: 0.875rem;
	color: #354B48;
}

body.login .message {
	border-left-color: #009E97;
}

body.login #login_error {
	border-left-color: #EF4444;
}

body.login .forgetmenot label {
	font-weight: 400;
	color: #6B8885;
}

/* =========================================================================
   RIGHT SIDE — WP FUNDAMENT PANEL (image background)
========================================================================= */
.ew-login-fundament-panel {
	position: fixed !important;
	top: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 50% !important;
	background-color: #022824 !important;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 48px;
	box-sizing: border-box;
	overflow: hidden;
	z-index: 1;
}

/* Subtle dark gradient at bottom to ensure tagline readability on any image */
.ew-login-fundament-panel::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 40%;
	background: linear-gradient(to top, rgba(2, 40, 36, 0.7) 0%, rgba(2, 40, 36, 0) 100%);
	pointer-events: none;
	z-index: 1;
}

/* Fallback (typographic) when image not uploaded */
.ew-login-fundament-fallback {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	text-align: center;
	z-index: 1;
}

.ew-login-fundament-wp {
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 3rem;
	color: #5FD5CF;
	letter-spacing: -0.02em;
	line-height: 1;
}

.ew-login-fundament-name {
	font-family: 'Manrope', sans-serif;
	font-weight: 400;
	font-size: 1.5rem;
	color: #FFFFFF;
	letter-spacing: -0.01em;
	line-height: 1;
	margin-top: 4px;
}

.ew-login-fundament-tagline {
	font-family: 'DM Sans', sans-serif;
	font-weight: 400;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.88);
	line-height: 1.5;
	max-width: 380px;
	text-align: center;
	position: relative;
	z-index: 2;
	letter-spacing: 0.005em;
}

/* =========================================================================
   RESPONSIVE
========================================================================= */
@media (max-width: 900px) {
	#login {
		width: 100% !important;
		max-width: 100% !important;
		padding: 48px 24px !important;
		min-height: auto;
	}

	.ew-login-fundament-panel {
		position: relative !important;
		top: auto !important;
		right: auto !important;
		bottom: auto !important;
		width: 100% !important;
		min-height: 280px;
		padding: 32px 24px;
	}

	.ew-login-fundament-wp {
		font-size: 2.25rem;
	}

	.ew-login-fundament-name {
		font-size: 1.25rem;
	}

	.ew-login-fundament-tagline {
		font-size: 0.8125rem;
	}
}

@media (max-width: 640px) {
	#login {
		padding: 32px 20px;
	}

	.ew-login-fundament-panel {
		min-height: 220px;
		padding: 24px 20px;
	}
}
