/* ── Login / Register page styles ─────────────────────────────────────────── */

html,
body.login {
	height: 100%;
}

body.login {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 20px;
	box-sizing: border-box;
	background-color: #111;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}

body.login::before {
	content: '';
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 0;
}

body.login #login {
	position: relative;
	z-index: 1;
	background: #ffffff;
	border-radius: 8px;
	padding: 32px 32px 24px;
	box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
	margin: 0;
	width: 360px;
	max-width: calc(100vw - 40px);
}

body.login #loginform,
body.login #registerform {
	border: none;
	box-shadow: none;
	padding: 0;
	margin-top: 0;
}

/* "Register For This Site" message — centered, no left border */
body.login p.message {
	text-align: center;
	border-left: none;
	border-bottom: 2px solid #eee;
	padding: 0 0 16px;
	margin: 0 0 16px;
	color: #333;
	font-size: 14px;
}

/* "Registration confirmation will be emailed to you." */
body.login #reg_passmail {
	text-align: center;
	color: #666;
	font-size: 13px;
}

/* Register / Login button — full-width and centered */
body.login p.submit {
	text-align: center;
	padding: 0;
}

body.login p.submit .button-primary {
	width: 100%;
	float: none;
	display: block;
	box-sizing: border-box;
}

/* Nav links and back link below the card */
body.login #nav,
body.login #backtoblog {
	position: relative;
	z-index: 1;
	text-align: center;
}

/* Language switcher footer strip */
body.login #language-switcher {
	position: relative;
	z-index: 1;
	background: transparent;
	border-top: 1px solid rgba(255, 255, 255, 0.2);
	color: rgba(255, 255, 255, 0.7);
}

body.login #language-switcher select,
body.login #language-switcher .button {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border-color: rgba(255, 255, 255, 0.3);
}

/* Ensure all direct children of body sit above the ::before overlay */
body.login > * {
	position: relative;
	z-index: 1;
}
