/**
 * Sildehuset – login og medlemsformularer.
 * Arver skrifttype fra temaet/Elementor. Justér via CSS-variablerne nedenfor
 * (fx i Elementor → Site Settings → Custom CSS).
 */
.slh-login {
	--slh-accent: #3f77e9;
	--slh-accent-contrast: #fff;
	--slh-border: #cbd2dc;
	--slh-radius: 8px;
	--slh-gap: 16px;
	--slh-max: 440px;

	max-width: var(--slh-max);
	margin-inline: auto;
}

.slh-form { display: flex; flex-direction: column; gap: var(--slh-gap); }
.slh-form > * { margin: 0; }
.slh-form__title { margin: 0; }
.slh-form__links { font-size: .9em; }
.slh-form__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.slh-field { display: flex; flex-direction: column; gap: 6px; }
.slh-field label { font-weight: 600; }
.slh-field__hint { margin: 0; font-size: .85em; opacity: .75; }
.slh-field--check label { display: inline-flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }

.slh-login input[type="email"],
.slh-login input[type="text"],
.slh-login input[type="password"] {
	width: 100%;
	box-sizing: border-box;
	min-height: 46px;
	padding: 10px 12px;
	font: inherit;
	font-size: max(16px, 1em); /* ≥16px forhindrer auto-zoom i iOS Safari */
	border: 1px solid var(--slh-border);
	border-radius: var(--slh-radius);
	background: #fff;
	color: inherit;
}
.slh-login input:focus-visible {
	outline: 2px solid var(--slh-accent);
	outline-offset: 1px;
	border-color: var(--slh-accent);
}

.slh-pw { position: relative; }
.slh-pw input { padding-right: 64px !important; }
.slh-pw__toggle {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	padding: 6px 10px;
	border: 0;
	border-radius: calc(var(--slh-radius) - 2px);
	background: transparent;
	color: var(--slh-accent);
	font: inherit;
	font-size: .85em;
	cursor: pointer;
}
.slh-pw__toggle:hover,
.slh-pw__toggle:focus-visible { background: rgba(0, 0, 0, .05); }

.slh-btn,
.slh-login button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 22px;
	border: 1px solid var(--slh-accent);
	border-radius: var(--slh-radius);
	background: var(--slh-accent);
	color: var(--slh-accent-contrast);
	font: inherit;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: filter .15s ease;
}
.slh-btn:hover,
.slh-login button[type="submit"]:hover { filter: brightness(1.08); color: var(--slh-accent-contrast); }
.slh-btn--secondary { background: transparent; color: var(--slh-accent); }
.slh-btn--secondary:hover { color: var(--slh-accent); }
.slh-login button[type="submit"][disabled] { opacity: .6; cursor: progress; }

.slh-notice { padding: 12px 14px; border-radius: var(--slh-radius); border-left: 4px solid; }
.slh-notice p { margin: 0; }
.slh-notice p + p { margin-top: 6px; }
.slh-notice--error { background: #fdecec; border-color: #d63638; color: #6b1112; }
.slh-notice--success { background: #eaf7ee; border-color: #00a32a; color: #0d4a1f; }
.slh-notice--info { background: #eef3fd; border-color: var(--slh-accent); color: #173b82; }

/* Honeypot og skjult brugernavn til password-managere */
.slh-hp,
.slh-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
}
