/* Fenêtre « Espace membre » (app/Views/front/partials/member_login.php). Styles isolés sous .ml-dialog pour ne pas
   hériter de Bootstrap 3 ni des feuilles du site. Rose du site #f76171 ; boutons en #d23c4b (texte blanc lisible). */

/* Police du site (fichiers déjà servis pour l'accueil), pour un rendu identique sur toutes les pages. */
@font-face { font-family: 'ML Roboto'; font-weight: 400; font-display: swap; src: url('new/fonts/Roboto-Regular.woff') format('woff'); }
@font-face { font-family: 'ML Roboto'; font-weight: 700; font-display: swap; src: url('new/fonts/Roboto-Bold.woff') format('woff'); }

html.ml-lock { overflow: hidden; }

.ml-dialog {
	width: min(440px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: 16px;
	background: #fff;
	color: #333;
	box-shadow: 0 24px 60px rgba(40, 20, 30, .28);
	overflow: auto;
	font-family: 'ML Roboto', 'Helvetica Neue', Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
}
.ml-dialog[open] { animation: ml-in .18s ease-out; }
.ml-dialog::backdrop { background: rgba(35, 25, 30, .55); }
@keyframes ml-in { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .ml-dialog[open] { animation: none; } }

.ml-dialog *, .ml-dialog *::before, .ml-dialog *::after { box-sizing: border-box; }
.ml-dialog [hidden] { display: none !important; }

.ml-box { position: relative; padding: 36px 36px 28px; }

.ml-close {
	position: absolute; top: 14px; right: 14px;
	display: flex; align-items: center; justify-content: center;
	width: 36px; height: 36px; padding: 0;
	border: 0; border-radius: 50%; background: transparent; color: #777; cursor: pointer;
}
.ml-close:hover { background: #f4f1f2; color: #333; }

.ml-head { display: flex; flex-direction: column; align-items: center; margin-bottom: 6px; }
.ml-mark {
	display: flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; margin-bottom: 12px;
	border-radius: 50%; background: #fdecee; color: #f76171;
}
.ml-dialog .ml-title {
	margin: 0; padding: 0;
	font-family: inherit; font-size: 24px; font-weight: 500; line-height: 1.3; letter-spacing: 0; text-transform: none;
	color: #2b2b2b; text-align: center;
}
.ml-dialog .ml-lead { margin: 6px 0 24px; color: #6b6b6b; font-size: 14.5px; text-align: center; }

.ml-form { margin: 0; }
.ml-field { margin-bottom: 18px; }
.ml-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ml-dialog label {
	display: block; margin: 0 0 6px; padding: 0;
	font-size: 14px; font-weight: 500; color: #444;
}

.ml-dialog .ml-field input.ml-input {
	display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px;
	border: 1px solid #d6d2d4; border-radius: 10px; background: #fff; box-shadow: none;
	font: inherit; font-size: 16px; line-height: normal; color: #2b2b2b;
	transition: border-color .15s, box-shadow .15s;
}
.ml-dialog .ml-field input.ml-input:focus { outline: none; border-color: #f76171; box-shadow: 0 0 0 3px rgba(247, 97, 113, .22); }

.ml-password { position: relative; }
.ml-dialog .ml-password input.ml-input { padding-right: 92px; }
.ml-toggle {
	position: absolute; top: 6px; right: 6px; height: 36px; padding: 0 12px;
	border: 0; border-radius: 8px; background: transparent; color: #555; font: inherit; font-size: 13.5px; cursor: pointer;
}
.ml-toggle:hover { background: #f4f1f2; color: #2b2b2b; }

.ml-link {
	padding: 0; border: 0; background: none; cursor: pointer;
	font: inherit; font-size: 13.5px; color: #c13442; text-decoration: none;
}
.ml-link:hover, .ml-foot a:hover { text-decoration: underline; }

.ml-submit {
	display: block; width: 100%; height: 50px; margin-top: 26px; padding: 0 16px;
	border: 0; border-radius: 10px; background: #d23c4b; color: #fff; cursor: pointer;
	font: inherit; font-size: 16px; font-weight: 500; letter-spacing: .2px;
	transition: background-color .15s;
}
.ml-submit:hover { background: #b8303f; }
.ml-submit:disabled { background: #b8303f; opacity: .75; cursor: progress; }

.ml-dialog button:focus-visible, .ml-dialog a:focus-visible { outline: 2px solid #d23c4b; outline-offset: 2px; }

.ml-dialog .ml-foot {
	margin: 22px 0 0; padding-top: 18px; border-top: 1px solid #eee;
	font-size: 14px; color: #6b6b6b; text-align: center;
}
.ml-foot a { color: #c13442; font-weight: 500; text-decoration: none; }

@media (max-width: 480px) {
	.ml-box { padding: 32px 22px 22px; }
	.ml-dialog .ml-title { font-size: 22px; }
}
