/* Mise en page "carte centrée" des pages de compte (mot de passe perdu, activation)
   Utilisée par mdp_perdu2.php et activer_mdp_perdu.php, en complément de StyleSPICA.css */

:root {
	--spica-violet: #3903A5;
	--spica-violet-fonce: #2a0279;
	--spica-fond: #f3f1f8;
	--spica-bordure: #d4cfe0;
	--spica-texte: #222;
	--spica-gris: #666;
	--spica-vert: #1e7b34;
	--spica-rouge: #b3261e;
}

body {
	margin: 0;
	padding: 16px;
	background: var(--spica-fond);
	color: var(--spica-texte);
	font-size: 14px;
	min-height: 100vh;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
}

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

.carte {
	width: 100%;
	max-width: 440px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(57, 3, 165, 0.10);
	padding: 32px 32px 24px;
}

.carte-entete { text-align: center; margin-bottom: 24px; }
.carte-entete img { width: 110px; max-width: 110px; height: auto; }
.carte-entete h1 { color: var(--spica-violet); font-size: 22px; margin: 12px 0 4px; letter-spacing: 1px; }
.carte-entete h2 { color: var(--spica-gris); font-size: 15px; margin: 0; }

.champ { margin-bottom: 16px; }
.champ label { display: block; font-weight: bold; margin-bottom: 6px; }

.champ input {
	width: 100%;
	padding: 10px 12px;
	font-size: 14px;
	font-family: inherit;
	border: 1px solid var(--spica-bordure);
	border-radius: 8px;
	transition: border-color .15s, box-shadow .15s;
}
.champ input:focus {
	outline: none;
	border-color: var(--spica-violet);
	box-shadow: 0 0 0 3px rgba(57, 3, 165, 0.15);
}

/* Champ mot de passe avec l'œil à l'intérieur */
.champ-mdp { position: relative; }
.champ-mdp input { padding-right: 42px; }
.champ-mdp button {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	border: 0;
	background: none;
	color: var(--spica-gris);
	padding: 6px 8px;
	cursor: pointer;
	font-size: 15px;
}
.champ-mdp button:hover, .champ-mdp button:focus { color: var(--spica-violet); }

/* Critères du mot de passe, cochés en direct */
.criteres { list-style: none; margin: -4px 0 16px; padding: 0; font-size: 13px; color: var(--spica-gris); }
.criteres li { margin: 3px 0; }
.criteres li i { width: 16px; text-align: center; margin-right: 6px; color: #bbb; }
.criteres li.ok { color: var(--spica-vert); }
.criteres li.ok i { color: var(--spica-vert); }

.bouton {
	display: block;
	width: 100%;
	padding: 11px;
	font-size: 15px;
	font-family: inherit;
	font-weight: bold;
	color: #fff;
	background: var(--spica-violet);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	text-align: center;
	transition: background .15s, opacity .15s;
}
.bouton:hover { background: var(--spica-violet-fonce); color: #fff; }
.bouton:disabled { opacity: .45; cursor: not-allowed; }

.alerte { border-radius: 8px; padding: 12px 14px; margin-bottom: 20px; line-height: 1.45; }
.alerte i { margin-right: 6px; }
.alerte-erreur { background: #fdecea; color: var(--spica-rouge); border: 1px solid #f5c2bd; }
.alerte-succes { background: #e8f5ec; color: var(--spica-vert); border: 1px solid #b9dfc3; }

/* Libellé avec un lien aligné à droite (ex. "Mot de passe oublié ?") */
.label-ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.label-ligne label { margin-bottom: 0; }
.label-ligne a { font-size: 13px; color: var(--spica-violet); }
.label-ligne a:hover { text-decoration: underline; }

.case-a-cocher { display: flex; align-items: center; gap: 8px; margin: 4px 0 20px; cursor: pointer; color: var(--spica-gris); }
.case-a-cocher input { width: 16px; height: 16px; margin: 0; accent-color: var(--spica-violet); cursor: pointer; }

.lien-retour { display: block; text-align: center; margin-top: 18px; color: var(--spica-violet); }
.lien-retour:hover { text-decoration: underline; }
