/* Page de connexion admin — identité Maestra (logo 2026).

   Parti pris : flat. Aucun dégradé, aucune ombre portée, aucun effet de verre.
   La hiérarchie vient de la taille, de la graisse et de l'espace — la seule
   couleur d'accent est celle du logo.

   Chargé via loadConfig() > theme.addCustomCSS : le <link> est injecté dans le
   <head> par pageTheme, donc le lockup est stylé dès la première frame (pas de FOUC).

   Le SVG du logo est portrait (775×968) : on pilote toujours la hauteur, la
   largeur suit. width/height restent posés sur les <img> pour réserver la place
   avant décodage. */

/* ===================================================================
   Panneau formulaire — lockup marque (mark + wordmark + surtitre)
   =================================================================== */
.auth-login__brand {
	display: flex;
	align-items: center;
	gap: 1.125rem;
	margin-bottom: 2.75rem;
}

.auth-login__brand-mark {
	display: block;
	flex: 0 0 auto;
	height: 4rem;
	width: auto;
}

.auth-login__brand-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	line-height: 1.1;
}

.auth-login__brand-name {
	font-size: 1.875rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--bs-heading-color, #111c2d);
}

.auth-login__brand-tag {
	margin-top: 0.45rem;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--bs-secondary-color, #5a6a85);
}

[data-bs-theme='dark'] .auth-login__brand-name {
	color: #ffffff;
}

/* Cartes étroites (mobile) : le surtitre en capitales espacées est ce qui
   contraint la largeur, on réduit l'ensemble du lockup plutôt que de le laisser
   passer sur deux lignes. */
@media (max-width: 575.98px) {
	.auth-login__brand {
		gap: 0.875rem;
		margin-bottom: 2.25rem;
	}

	.auth-login__brand-mark {
		height: 3.25rem;
	}

	.auth-login__brand-name {
		font-size: 1.625rem;
	}

	.auth-login__brand-tag {
		font-size: 0.6875rem;
		letter-spacing: 0.08em;
	}
}

/* Copyright ancré en pied du panneau formulaire, hors du flux pour ne pas
   décaler le centrage vertical de la carte. */
.auth-login__copyright {
	position: absolute;
	right: 0;
	bottom: 1.75rem;
	left: 0;
	margin: 0;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-align: center;
	color: var(--bs-secondary-color, #5a6a85);
}

.auth-login__copyright a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s linear;
}

.auth-login__copyright a:hover,
.auth-login__copyright a:focus-visible {
	color: var(--bs-primary, #00a1ff);
}

/* ===================================================================
   Panneau de présentation (colonne sombre)
   =================================================================== */
.auth-login__hero-brand {
	position: absolute;
	top: 2.25rem;
	left: 2.5rem;
	z-index: 5;
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	text-decoration: none;
}

.auth-login__hero-brand-mark {
	display: block;
	height: 2.25rem;
	width: auto;
}

.auth-login__hero-brand-name {
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: #ffffff;
	transition: opacity 0.15s linear;
}

.auth-login__hero-brand:hover .auth-login__hero-brand-name {
	opacity: 0.7;
}

.auth-login__hero-brand:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 4px;
}

/* Filigrane : remplace l'ancien .circle-bottom du thème. Débordement volontaire
   hors de l'angle, rattrapé par le .overflow-hidden de la colonne. */
.auth-login__hero-watermark {
	position: absolute;
	right: -10%;
	bottom: -10%;
	z-index: 1;
	height: 32rem;
	width: auto;
	opacity: 0.14;
	pointer-events: none;
	user-select: none;
}

@media (max-width: 1399.98px) {
	.auth-login__hero-watermark {
		height: 25rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.auth-login__hero-brand-name {
		transition: none;
	}
}
