/**
 * eh-auth-gate — styles génériques (page-level, pas scopés à une modale).
 *
 * Calque les états visuels du DOI (.eh-doi-*) renommés en .eh-gate-* pour
 * éviter toute collision avec la modale DOI legacy. Couleurs et radius
 * alignés sur la grammaire EH (bleu primary #337ab7, success #5cb85c).
 */

/* ── Wrapper et form de base ──────────────────────────────────────────── */

.eh-gate-wrap {
	max-width: 480px;
	margin: 30px auto;
	font-family: 'Montserrat', 'Verdana', Geneva, sans-serif;
}

.eh-gate-wrap h1,
.eh-gate-wrap h2,
.eh-gate-wrap h3 {
	color: #1c2b3a;
	font-weight: 700;
	margin: 0 0 14px;
}

.eh-gate-wrap p {
	color: #3c4858;
	line-height: 1.55;
}

.eh-gate-form .form-group {
	margin-bottom: 14px;
}

.eh-gate-form .form-control {
	width: 100%;
	height: 44px;
	border: 1px solid #c7d2db;
	box-shadow: none;
	padding: 6px 12px;
	border-radius: 4px;
}

.eh-gate-form .form-control:focus {
	border-color: #337ab7;
	box-shadow: 0 0 0 3px rgba(51, 122, 183, 0.15);
	outline: 0;
}

.eh-gate-form .btn-primary {
	display: block;
	width: 100%;
	background-color: #337ab7;
	border: 0;
	color: #ffffff;
	padding: 14px 24px;
	font-weight: 700;
	font-size: 15px;
	border-radius: 6px;
	cursor: pointer;
}

.eh-gate-form .btn-primary:hover,
.eh-gate-form .btn-primary:focus {
	background-color: #286090;
	outline: 0;
}

/* ── Onglets de bascule (compte / pas de compte) ──────────────────────── */

.eh-gate-tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 15px;
}

.eh-gate-tab {
	flex: 1;
	padding: 8px 12px;
	border-radius: 4px;
	border: 1px solid #c7d2db;
	background: #fff;
	cursor: pointer;
	transition: all 0.15s ease-in-out;
	opacity: 0.55;
}

.eh-gate-tab.active {
	background-color: #337ab7;
	border-color: #337ab7;
	color: #fff;
	opacity: 1;
}

/* ── Encart "email reconnu" (bleu info, accueillant) ──────────────────── */

.eh-gate-known-info {
	background-color: #d9edf7;
	border: 1px solid #bce8f1;
	color: #31708f;
	padding: 12px 14px;
	border-radius: 4px;
	margin-bottom: 15px;
	font-size: 14px;
}

.eh-gate-known-info strong {
	color: #245269;
}

/* ── Encart "email inconnu" (bleu doux, accueillant aussi) ────────────── */

.eh-gate-unknown-info {
	background-color: #eaf3fb;
	border: 1px solid #cfe2f3;
	color: #2c5d8a;
	padding: 12px 14px;
	border-radius: 4px;
	margin-bottom: 15px;
	font-size: 14px;
}

/* ── Encart erreur (rose pâle, calme) ─────────────────────────────────── */

.eh-gate-error {
	background-color: #fff3f3;
	border: 1px solid #ebccd1;
	color: #a94442;
	padding: 10px 14px;
	border-radius: 4px;
	margin-bottom: 14px;
}

/* ── État champ email reconnu ─────────────────────────────────────────── */

.eh-gate-email-known input[type="email"],
.eh-gate-email-known input[name="log"] {
	background-color: #f5f5f5;
}

.eh-gate-email-known-hint {
	margin-top: -10px;
	margin-bottom: 15px;
	font-size: 12px;
	color: #5cb85c;
}

/* ── Mise en évidence champ password (bascule "compte existant") ──────── */

.eh-gate-pwd-emphasis input[type="password"] {
	border: 2px solid #337ab7;
	box-shadow: 0 0 0 3px rgba(51, 122, 183, 0.15);
}

.eh-gate-pwd-emphasis label {
	font-weight: bold;
	color: #337ab7;
}

/* ── Légal en bas (texte secondaire) ──────────────────────────────────── */

.eh-gate-legal {
	font-size: 0.82em;
	color: #8a95a3;
	line-height: 1.45;
	margin: 14px 0 0;
	text-align: center;
}

@media (max-width: 600px) {
	.eh-gate-wrap {
		padding: 20px 16px;
		margin: 16px auto;
	}
}
