/* smartEngin Courses – eigene Kundenanmeldung (1.5.0, Gestaltung 1.5.1).
 *
 * Diese Datei gehoert zu einer EIGENSTAENDIGEN Seite (kein Theme, kein
 * wp_head()). Deshalb steht hier bewusst KEINE doppelte Klasse wie in
 * seco-frontend.css / seco-member.css: es gibt kein fremdes CSS, gegen das
 * sich etwas behaupten muesste. Aus demselben Grund laeuft hier auch kein
 * JavaScript – die Seite muss unter einer strengen Content-Security-Policy
 * vollstaendig bedienbar bleiben. (Das Augen-Symbol im Passwortfeld auf
 * Pierres Bild kommt vom Browser selbst, nicht von uns.)
 *
 * ZWEI BAUFORMEN
 *   ohne Bild  – schlichte Karte in der Mitte auf ruhigem Grund.
 *   mit Bild   – `.seco-lg--split`: links das grosse Bild, rechts eine weisse
 *                Spalte mit Logo und Formular. AUF DEM HANDY FAELLT DAS BILD
 *                WEG (Pierre, 19.09.2026): auf einem schmalen Schirm draengt
 *                es das Formular nach unten, und genau das will niemand, der
 *                sich nur anmelden moechte.
 *
 * Logo, Bild, Knopffarbe und Akzentfarbe kommen aus dem Reiter
 * „Grundkonfig Login-Startseite" und werden im Kopf der Seite als Variablen
 * gesetzt. Ohne eigene Wahl gelten die Markenfarben.
 */

.seco-lg {
	--lg-bg: #EAECE7;
	--lg-card: #ffffff;
	--lg-ink: #1c2b36;
	--lg-muted: #5f6b73;
	--lg-line: rgba(16, 35, 50, 0.16);
	/* Knopf und Links sind GETRENNT einstellbar: auf Pierres Vorlage ist der
	   Knopf blau und die Links sind gruen. */
	--lg-btn: #37B971;
	--lg-btn-hover: #1f6b45;
	--lg-btn-fg: #ffffff;
	--lg-link: #1f6b45;
	--lg-error-bg: rgba(165, 42, 44, 0.10);
	--lg-error-fg: #a52a2c;
	--lg-ok-bg: rgba(55, 185, 113, 0.14);
	--lg-ok-fg: #1c7a49;

	margin: 0;
	padding: 24px 16px 48px;
	min-height: 100vh;
	box-sizing: border-box;
	background: var(--lg-bg);
	color: var(--lg-ink);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
}

.seco-lg--hell {
	--lg-bg: #ffffff;
	--lg-card: #f7f8f6;
	--lg-line: #e7e9e6;
}

.seco-lg--dunkel {
	--lg-bg: #0f1c27;
	--lg-card: #16273a;
	--lg-ink: #e8edf1;
	--lg-muted: #9fb0bd;
	--lg-line: rgba(255, 255, 255, 0.16);
	--lg-error-bg: rgba(255, 154, 156, 0.12);
	--lg-error-fg: #ff9a9c;
	--lg-ok-bg: rgba(111, 219, 160, 0.14);
	--lg-ok-fg: #6fdba0;
}

.seco-lg *,
.seco-lg *::before,
.seco-lg *::after {
	box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   Bauform MIT Bild: zwei Spalten
   -------------------------------------------------------------------------- */

.seco-lg--split {
	display: flex;
	align-items: stretch;
	padding: 0;
	background: var(--lg-card);
}

.seco-lg__art {
	flex: 1 1 auto;
	min-width: 0;
	background-color: var(--lg-bg);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

/* Die Spalte gibt es im Markup immer; Wirkung hat sie nur MIT Bild. Ohne Bild
   bleibt sie ein durchsichtiger Rahmen um die Karte. */
.seco-lg--split .seco-lg__panel {
	flex: 0 0 clamp(360px, 38vw, 560px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 36px;
	background: var(--lg-card);
}

/* In der Zwei-Spalten-Form ist die Karte keine Karte mehr, sondern schlicht
   der Inhalt der rechten Spalte. */
.seco-lg--split .seco-lg__box {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	max-width: 340px;
}

.seco-lg__logo {
	display: block;
	max-width: 260px;
	max-height: 90px;
	width: auto;
	height: auto;
	margin: 0 auto 30px;
}

/* --------------------------------------------------------------------------
   Bauform OHNE Bild: Karte in der Mitte
   -------------------------------------------------------------------------- */

.seco-lg__box {
	max-width: 420px;
	margin: 40px auto 0;
	padding: 26px 26px 22px;
	background: var(--lg-card);
	border: 1px solid var(--lg-line);
	border-radius: 14px;
}

.seco-lg__title {
	margin: 0 0 18px;
	font-size: 21px;
	line-height: 1.3;
	font-weight: 700;
}

/* Steht ein Logo ueber dem Formular, traegt es die Ueberschrift – der Titel
   bleibt fuer Vorlese-Programme stehen, ist aber nicht mehr zu sehen. */
.seco-lg__title--versteckt {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.seco-lg__lead {
	margin: 0 0 16px;
	color: var(--lg-muted);
	font-size: 14px;
}

.seco-lg__error,
.seco-lg__notice {
	margin: 0 0 16px;
	padding: 10px 12px;
	border-radius: 9px;
	font-size: 14px;
}

.seco-lg__error {
	background: var(--lg-error-bg);
	color: var(--lg-error-fg);
}

.seco-lg__notice {
	background: var(--lg-ok-bg);
	color: var(--lg-ok-fg);
}

.seco-lg__form p {
	margin: 0 0 14px;
}

.seco-lg__form label {
	display: block;
	margin-bottom: 5px;
	font-size: 13px;
	font-weight: 600;
}

.seco-lg__form input[type="text"],
.seco-lg__form input[type="password"] {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--lg-line);
	border-radius: 9px;
	background: #ffffff;
	color: #1c2b36;
	font: inherit;
}

.seco-lg__form input[type="text"]:focus,
.seco-lg__form input[type="password"]:focus {
	outline: 2px solid var(--lg-btn);
	outline-offset: 1px;
}

.seco-lg__remember {
	margin-bottom: 20px;
}

.seco-lg__remember label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	font-size: 14px;
	margin-bottom: 0;
}

.seco-lg__remember input {
	margin: 0;
}

.seco-lg__btn {
	width: 100%;
	padding: 12px 18px;
	border: 0;
	border-radius: 8px;
	background: var(--lg-btn);
	color: var(--lg-btn-fg);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.seco-lg__btn:hover,
.seco-lg__btn:focus {
	background: var(--lg-btn-hover);
}

.seco-lg__links,
.seco-lg__home {
	margin: 14px 0 0;
	font-size: 14px;
	text-align: center;
}

.seco-lg__home {
	margin-top: 10px;
	font-size: 13px;
}

/* In der Zwei-Spalten-Form stehen beide Links unmittelbar untereinander
   unter dem Knopf – so wie auf Pierres Vorlage. */
.seco-lg--split .seco-lg__links {
	margin-top: 22px;
}

.seco-lg a {
	color: var(--lg-link);
}

.seco-lg--dunkel a {
	color: var(--lg-link);
}

/* Lockvogelfeld: fuer Menschen unsichtbar, fuer Maschinen ausfuellbar.
   Bewusst NICHT display:none – manche Maschinen ueberspringen das. */
.seco-lg__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Der zweite Faktor (SECO_TwoFactor) zeichnet sein Formular selbst und nutzt
   dabei dieselben Klassen; diese Ergaenzungen betreffen nur seine Eigenheiten. */
.seco-lg__form .description {
	margin-top: -8px;
	color: var(--lg-muted);
	font-size: 12px;
}

.seco-lg__secondary {
	width: 100%;
	padding: 10px 16px;
	border: 1px solid var(--lg-line);
	border-radius: 8px;
	background: transparent;
	color: inherit;
	font: inherit;
	cursor: pointer;
}

.seco-lg details {
	margin-top: 14px;
	font-size: 13px;
	color: var(--lg-muted);
}

.seco-lg summary {
	cursor: pointer;
}

/* --------------------------------------------------------------------------
   Handy: das grosse Bild faellt weg, es bleibt nur das Anmeldefeld
   (Pierre, 19.09.2026)
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
	.seco-lg--split .seco-lg__art {
		display: none;
	}

	.seco-lg--split .seco-lg__panel {
		flex: 1 1 100%;
		padding: 32px 20px 48px;
		align-items: flex-start;
	}

	.seco-lg--split .seco-lg__box {
		max-width: 400px;
		margin: 0 auto;
	}
}

@media (max-width: 480px) {
	.seco-lg__box {
		margin-top: 12px;
		padding: 20px 18px 18px;
	}

	.seco-lg--split .seco-lg__box {
		padding: 0;
	}

	.seco-lg__logo {
		max-width: 200px;
		margin-bottom: 24px;
	}
}
