/* Inlogschermen van het CMS (inloggen, wachtwoord vergeten, nieuw wachtwoord, installatie).
   Herkenbaar met het oude CMS: linnen achtergrond, kaart met slogan en EasyFlex-logo,
   oranje knop, lettertype Armata en een donkere voetbalk. Alleen geladen door
   layouts/guest.php, bovenop cms.css; de rest van het CMS verandert niet. */

@font-face {
	font-family: "Armata";
	src: url("login/armata-latin-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

.login-page {
	--ef-orange: #f7941e;
	--ef-orange-dark: #d97a0b;
	--ef-ink: #2b2b2b;
	--ef-muted: #6b6b6b;
	--ef-line: #e3e3e3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 22px;
	min-height: 100vh;
	padding: 32px 16px;
	background: #5d5d5d url("login/linnen.jpg") repeat;
	background-image: linear-gradient(rgba(30, 30, 30, .35), rgba(30, 30, 30, .55)), url("login/linnen.jpg");
	color: var(--ef-ink);
	font-family: "Armata", "Segoe UI", Roboto, Arial, sans-serif;
	font-synthesis: none;
}

.login {
	width: 100%;
	max-width: 480px;
	overflow: hidden;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .2);
}

/* Bovenste deel: slogan en logo, zoals het oude CMS */
.login-brand {
	padding: 20px 24px 16px;
	text-align: center;
	border-bottom: 3px solid var(--ef-orange);
	background: linear-gradient(#fff, #f7f7f7);
}
.login-tagline { margin: 0 0 8px; color: var(--ef-muted); font-size: .95rem; letter-spacing: .01em; }
.login-logo { display: block; width: 260px; max-width: 100%; height: auto; margin: 4px auto 6px; }

/* Onderste deel: het formulier */
.login-panel { padding: 22px 32px 26px; }
.login-panel .field { margin-bottom: 14px; }
.login-panel h1 { margin: 0 0 4px; font-size: 1.35rem; font-weight: 400; color: var(--ef-ink); }
.login-intro { margin: 0 0 16px; color: var(--ef-muted); font-size: .92rem; }
.login-panel .field > label, .login-panel legend { font-weight: 400; color: var(--ef-ink); }
.login-panel input[type="email"], .login-panel input[type="password"], .login-panel input[type="text"], .login-panel select {
	padding: 10px 12px;
	border: 1px solid #cfcfcf;
	border-radius: 6px;
	font: inherit;
	transition: border-color .15s, box-shadow .15s;
}
.login-panel input:focus, .login-panel select:focus { border-color: var(--ef-orange); outline: 0; box-shadow: 0 0 0 3px rgba(247, 148, 30, .25); }
.login-panel .help { color: var(--ef-muted); }

/* Hoe lang ingelogd blijven: keuzelijst */
.login-panel .login-duration { margin-bottom: 20px; }
.login-duration .help { font-size: .8rem; }

/* Knoppen: oranje "Inloggen", grijs "Wachtwoord vergeten" (zoals het oude CMS) */
.login-page .btn { border-radius: 6px; font-weight: 400; letter-spacing: .02em; }
.login-page .btn-primary { padding: 10px 18px; background: var(--ef-orange); border-color: var(--ef-orange); color: #fff; }
.login-page .btn-primary:hover, .login-page .btn-primary:focus-visible { background: var(--ef-orange-dark); border-color: var(--ef-orange-dark); color: #fff; }
.login-page .btn:focus-visible { outline: 3px solid rgba(247, 148, 30, .45); outline-offset: 2px; }
.login-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.login-actions .btn { white-space: nowrap; }
.login-actions .btn-primary { flex: 1 1 150px; order: 2; }
.login-actions .btn-secondary { flex: 1 1 150px; order: 1; padding: 10px 18px; background: #ececec; border-color: #d6d6d6; color: #333; }
.login-actions .btn-secondary:hover { background: #e2e2e2; border-color: #c4c4c4; color: #222; }

.login-page .guest-link { margin-top: 18px; }
.login-page .guest-link a { color: var(--ef-orange-dark); }
.login-page .alert { border-radius: 6px; font-size: .92rem; }

/* Voetbalk */
.login-footer {
	width: 100%;
	max-width: 480px;
	padding: 11px 10px;
	background: rgba(40, 40, 40, .75);
	border-radius: 6px;
	color: #b5b5b5;
	font-size: .68rem;
	letter-spacing: .06em;
	text-align: center;
	text-transform: uppercase;
}
.login-footer span { display: inline-block; }
.login-footer span + span::before { content: "|"; margin: 0 7px; color: #8a8a8a; }

@media (max-width: 480px) {
	.login-page { justify-content: flex-start; padding-top: 20px; }
	.login-brand { padding: 20px 18px 16px; }
	.login-panel { padding: 22px 20px 24px; }
	.login-actions .btn-primary { order: 1; }
	.login-actions .btn-secondary { order: 2; }
	/* Smal scherm: voetbalk zonder scheidingstekens, zodat een nieuwe regel niet met | begint */
	.login-footer span { margin: 0 6px; }
	.login-footer span + span::before { content: none; }
}

@media (prefers-reduced-motion: reduce) {
	.login-panel input { transition: none; }
}
