/* Belépés — Million Homes (ingatlan-modul, includes/belepes/).
 * Design-forrás: Downloads/Milionshome/0817 „Million Homes - Belépés".
 * Minden design-system token konkrét értékre feloldva (nincs :root, nincs var()).
 * Méretek px-ben. Mobil breakpoint a fájl végén (@media max-width: 900px).
 * A fájl végén a wp-login.php reset-képernyők minimál brandingje (body.login).
 */

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: "Instrument Sans", system-ui, sans-serif;
	color: #141210;
	background: #f6f3ee;
}

a { color: #AF7366; text-decoration: none; }
a:hover { color: #c9a558; }

/* ---- Layout: 2 oszlopos rács (bal márkapanel + jobb űrlap) ---- */
.lg-layout {
	display: grid;
	grid-template-columns: 1.05fr 1fr;
	min-height: 100vh;
	background: #f6f3ee;
	color: #141210;
}

/* ---- BAL — filmes márkapanel ---- */
.lg-brand {
	position: relative;
	overflow: hidden;
	height: 100vh;
	display: block;
	/* Kép nélküli tartalék (még nincs feltöltve kép) */
	background: #141210;
}

.lg-brand-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	animation: mh-ken 26s ease-out infinite alternate;
}

.lg-brand-scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(11, 10, 9, 0.62) 0%, rgba(11, 10, 9, 0.30) 34%, rgba(11, 10, 9, 0.28) 62%, rgba(11, 10, 9, 0.88) 100%);
}

.lg-brand-inner {
	position: relative;
	z-index: 1;
	height: 100%;
	padding: 64px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	color: #ffffff;
}

.lg-brand-top {
	display: flex;
	align-items: center;
	gap: 14px;
}

.lg-brand-logo {
	height: 34px;
	filter: brightness(0) invert(1);
}

/* Logó-fallback: a weboldal neve szövegként */
.lg-brand-logoszoveg {
	font-family: "Schibsted Grotesk", system-ui, sans-serif;
	font-weight: 700;
	font-size: 20px;
	letter-spacing: -0.01em;
	color: #ffffff;
}

.lg-brand-copy { max-width: 22ch; }

.lg-brand-title {
	margin: 0;
	font-family: "Schibsted Grotesk", system-ui, sans-serif;
	font-weight: 700;
	font-size: 46px;
	line-height: 1.02;
	letter-spacing: -0.02em;
}

.lg-brand-lead {
	margin: 20px 0 0;
	max-width: 34ch;
	font-size: 16px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.72);
}

/* ---- Eyebrow (arany felirat vonallal) ---- */
.lg-eyebrow {
	margin: 0 0 18px;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	font-family: "Schibsted Grotesk", system-ui, sans-serif;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.28em;
	color: #AF7366;
}

.lg-brand-copy .lg-eyebrow { margin: 0 0 20px; }

.lg-eyebrow--gold300 { color: #e6cd94; }

.lg-line {
	width: 24px;
	height: 1px;
	background: #c9a558;
}

.lg-line--gold300 { background: #e6cd94; }

/* ---- JOBB — belépési űrlap ---- */
.lg-main {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 72px 56px;
	min-height: 100vh;
}

.lg-card {
	width: 100%;
	max-width: 420px;
	animation: mh-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lg-mobile-logo { display: none; }

.lg-title {
	margin: 0;
	font-family: "Schibsted Grotesk", system-ui, sans-serif;
	font-weight: 700;
	font-size: 42px;
	line-height: 1.04;
	letter-spacing: -0.02em;
	color: #141210;
}

.lg-lead {
	margin: 14px 0 0;
	font-size: 16px;
	line-height: 1.6;
	color: rgb(20 18 16 / 62%);
}

.lg-form {
	margin-top: 34px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.lg-label {
	display: block;
	margin: 0 0 8px;
	font-family: "Schibsted Grotesk", system-ui, sans-serif;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.16em;
	color: rgb(20 18 16 / 52%);
}

.lg-label-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin: 0 0 8px;
}

.lg-forgot { font-size: 12px; font-weight: 500; }

/* ---- Mezők ---- */
.lg-field {
	width: 100%;
	padding: 15px 16px;
	border-radius: 12px;
	border: 1px solid rgb(20 18 16 / 10%);
	background: #ffffff;
	font-family: "Instrument Sans", system-ui, sans-serif;
	font-size: 16px;
	color: #141210;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.lg-field::placeholder { color: rgb(20 18 16 / 52%); }

.lg-field:focus {
	outline: none;
	border-color: #c9a558;
	box-shadow: 0 0 0 3px rgb(201 165 88 / 22%);
}

.lg-pw-wrap { position: relative; }

.lg-field--pw { padding-right: 74px; }

.lg-pw-toggle {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 8px 12px;
	font-family: "Schibsted Grotesk", system-ui, sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgb(20 18 16 / 52%);
}

.lg-pw-toggle:hover { color: #AF7366; }

/* ---- Emlékezz rám ---- */
.lg-remember {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
	font-size: 13px;
	color: rgb(20 18 16 / 62%);
}

.lg-remember input {
	width: 17px;
	height: 17px;
	accent-color: #c9a558;
	cursor: pointer;
}

/* ---- Hiba- és állapotüzenetek (előre beégetve, PHP/JS csak láthatóságot vált) ---- */
.lg-error {
	padding: 12px 14px;
	border-radius: 10px;
	background: rgb(178 42 42 / 8%);
	border: 1px solid rgb(178 42 42 / 22%);
	font-size: 13px;
	color: #8f2a2a;
}

.lg-note {
	padding: 12px 14px;
	border-radius: 10px;
	background: rgb(20 18 16 / 5%);
	border: 1px solid rgb(20 18 16 / 12%);
	font-size: 13px;
	color: rgb(20 18 16 / 78%);
}

.lg-note--ok {
	background: rgb(201 165 88 / 10%);
	border: 1px solid rgb(201 165 88 / 35%);
	color: #7a6120;
}

/* ---- Honeypot (képernyőn kívül, botoknak) ---- */
.lg-honeypot {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---- Gomb (design-system Button, px-re feloldva) ---- */
.lg-submit-row { margin-top: 4px; }

.mh-btn {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 14px 28px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: #141210;
	color: #ffffff;
	font-family: "Schibsted Grotesk", system-ui, sans-serif;
	font-weight: 600;
	font-size: 13px;
	line-height: 1;
	letter-spacing: 0.02em;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	position: relative;
	isolation: isolate;
	transition: background 320ms, color 320ms, border-color 320ms, transform 320ms, filter 320ms;
}

.mh-btn--lg {
	min-height: 52px;
	padding: 16px 34px;
	font-size: 14px;
}

.mh-btn--block { width: 100%; }

.mh-btn--primary { background: #141210; color: #ffffff; }
.mh-btn--primary:hover { background: #c9a558; color: #141210; }

/* Másodlagos (ghost) gomb — az elfelejtett-jelszó űrlaphoz */
.mh-btn--ghost {
	background: transparent;
	border-color: rgb(20 18 16 / 20%);
	color: #141210;
}
.mh-btn--ghost:hover {
	border-color: #c9a558;
	background: transparent;
	color: #AF7366;
}

.mh-btn:active { transform: translateY(0) scale(0.98); }

.mh-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px #c9a558, 0 0 0 5px rgb(201 165 88 / 25%);
}

.mh-btn[disabled],
.mh-btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }

/* Töltésállapot: a spinner előre a markupban van, CSS mutatja */
.mh-btn[data-loading="true"] { color: transparent; pointer-events: none; }
.mh-btn__spin {
	display: none;
	position: absolute;
	inset: 0;
	margin: auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid #ffffff;
	border-top-color: transparent;
	color: #ffffff;
	animation: mh-btn-spin 0.7s linear infinite;
}
.mh-btn[data-loading="true"] .mh-btn__spin { display: block; }
.mh-btn--ghost .mh-btn__spin {
	border-color: #141210;
	border-top-color: transparent;
	color: #141210;
}

/* ---- Elfelejtett jelszó — kis másodlagos űrlap ---- */
.lg-forgot-block {
	margin-top: 26px;
	padding-top: 26px;
	border-top: 1px solid rgb(20 18 16 / 10%);
}

.lg-form--forgot {
	margin-top: 0;
	gap: 16px;
}

.lg-forgot-lead {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: rgb(20 18 16 / 62%);
}

.lg-forgot-back {
	font-size: 13px;
	font-weight: 500;
	text-align: center;
}

/* ---- Súgó + lábléc ---- */
.lg-help {
	margin-top: 30px;
	padding-top: 26px;
	border-top: 1px solid rgb(20 18 16 / 10%);
}

.lg-help p {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: rgb(20 18 16 / 52%);
}

.lg-foot {
	margin-top: 40px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	color: rgb(20 18 16 / 52%);
}

/* ---- Vissza a főoldalra — a bejelentkezés alatt ---- */
.lg-back-home {
	margin-top: 28px;
	font-family: "Schibsted Grotesk", system-ui, sans-serif;
	font-size: 14px;
	font-weight: 500;
	color: #AF7366;
}

.lg-back-home:hover { color: #c9a558; }

/* ---- Önálló animációk (saját maguk futnak, JS-függőség nélkül) ---- */
@keyframes mh-ken {
	0% { transform: scale(1); }
	100% { transform: scale(1.08); }
}

@keyframes mh-rise {
	0% { opacity: 0; transform: translateY(22px); }
	100% { opacity: 1; transform: translateY(0); }
}

@keyframes mh-btn-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.lg-brand-img { animation: none; }
	.lg-card { animation: none; }
	.mh-btn__spin { animation-duration: 1.4s; }
}

/* ======================================================================
 * Mobil (≤900px): a bal filmes márkapanel (.lg-brand) csak desktopon fér
 * el értelmesen (100vh magas képsáv) — mobilon elrejtjük, és helyette a
 * kártya tetején jelenik meg a kis logó (.lg-mobile-logo, a markupban már
 * eleve csak erre a célra van előkészítve).
 * ====================================================================== */
@media (max-width: 900px) {
	.lg-layout {
		display: block;
	}

	.lg-brand {
		display: none;
	}

	.lg-main {
		min-height: 100vh;
		padding: 48px 24px 64px;
	}

	.lg-mobile-logo {
		display: flex;
		justify-content: center;
		margin-bottom: 32px;
	}

	.lg-mobile-logo .lg-brand-logo {
		height: 30px;
		/* A logókép eleve fehér tintával készült (a sötét márkapanelhez) —
		   világos háttéren brightness(0)-lal sötét sziluettként jelenítjük meg. */
		filter: brightness(0);
	}

	.lg-mobile-logo .lg-brand-logoszoveg {
		color: #141210;
	}

	.lg-title {
		font-size: 34px;
	}
}

/* ======================================================================
 * wp-login.php reset-képernyők (rp/resetpass) minimál brandingje.
 * A redirect-őrs (includes/belepes/redirects.php) a legtöbb wp-login
 * kérést átirányítja; ezekre a core képernyőkre csak szín/font esik.
 * ====================================================================== */
body.login {
	background: #f6f3ee;
	font-family: "Instrument Sans", system-ui, sans-serif;
}

body.login .login h1 a {
	background-size: contain;
}

body.login .login form .input,
body.login input[type="text"],
body.login input[type="email"],
body.login input[type="password"] {
	border-color: rgb(20 18 16 / 10%);
	border-radius: 12px;
	font-family: "Instrument Sans", system-ui, sans-serif;
	box-shadow: none;
}

body.login .login form .input:focus {
	border-color: #c9a558;
	box-shadow: 0 0 0 3px rgb(201 165 88 / 22%);
}

body.login .login .message {
	border-left-color: #c9a558;
}

body.login .login #login_error {
	border-left-color: #b22a2a;
}

body.login .button-primary {
	background: #141210;
	border-color: #141210;
	color: #ffffff;
	border-radius: 999px;
	font-family: "Schibsted Grotesk", system-ui, sans-serif;
	font-weight: 600;
	transition: background 320ms, border-color 320ms, color 320ms;
}

body.login .button-primary:hover,
body.login .button-primary:focus {
	background: #c9a558;
	border-color: #c9a558;
	color: #141210;
}

body.login a { color: #AF7366; }
