/* Pages Connexion / Inscription — [mk_login] / [mk_register] */

.mk-auth {
	max-width: var(--mk-container, 1140px);
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	gap: 28px;
	align-items: start;
}

@media (min-width: 900px) {
	.mk-auth {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 32px;
	}
}

/* ---------- Carte formulaire ---------- */

.mk-auth-card {
	background: var(--mk-surface, #fff);
	border: 1px solid var(--mk-green-500, #4a8862);
	border-radius: 16px;
	padding: 32px 30px 26px;
	box-shadow: 0 10px 30px rgba(28, 53, 38, 0.08);
}

.mk-auth-title {
	margin: 0 0 6px;
	font-size: 1.55rem;
	text-align: center;
	color: var(--mk-green-900, #1c3526);
}

.mk-auth-sub {
	margin: 0 0 24px;
	text-align: center;
	color: var(--mk-muted, #5f6f66);
	font-size: 0.95rem;
}

.mk-auth-field {
	margin-bottom: 16px;
}

.mk-auth-field label {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	font-size: 0.9rem;
	font-weight: 600;
	margin-bottom: 6px;
	color: var(--mk-text, #24312a);
}

.mk-auth-forgot {
	font-size: 0.82rem;
	font-weight: 500;
	white-space: nowrap;
}

.mk-auth-input {
	position: relative;
	display: flex;
	align-items: center;
}

.mk-auth-icon {
	display: inline-flex;
	width: 18px;
	height: 18px;
	color: var(--mk-muted, #5f6f66);
	flex: none;
}

.mk-auth-icon svg {
	width: 100%;
	height: 100%;
}

.mk-auth-input > .mk-auth-icon {
	position: absolute;
	left: 13px;
	pointer-events: none;
}

.mk-auth-input input {
	width: 100%;
	padding: 12px 14px 12px 42px;
	border-radius: 10px;
	border: 1px solid var(--mk-border, #e4e2da);
	background: var(--mk-bg, #faf9f6);
	font: inherit;
	font-size: 1rem;
	color: var(--mk-text, #24312a);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mk-auth-input input:focus {
	outline: none;
	background: #fff;
	border-color: var(--mk-green-500, #4a8862);
	box-shadow: 0 0 0 3px rgba(74, 136, 98, 0.18);
}

.mk-auth-input input[type="password"] {
	padding-right: 44px;
	letter-spacing: 0.1em;
}

.mk-auth-input input::placeholder {
	color: #9aa69f;
	letter-spacing: normal;
}

.mk-auth-eye {
	position: absolute;
	right: 6px;
	background: none;
	border: none;
	padding: 6px;
	border-radius: 8px;
	cursor: pointer;
	color: var(--mk-muted, #5f6f66);
	display: inline-flex;
}

.mk-auth-eye:hover,
.mk-auth-eye:focus-visible {
	background: var(--mk-green-100, #e6efe9);
	color: var(--mk-green-900, #1c3526);
}

.mk-auth-eye[aria-pressed="true"] {
	color: var(--mk-green-700, #2d5a3f);
}

.mk-auth-hint {
	margin: 6px 0 0;
	font-size: 0.8rem;
	color: var(--mk-muted, #5f6f66);
}

.mk-auth-check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 2px 0 18px;
	font-size: 0.92rem;
	color: var(--mk-muted, #5f6f66);
	cursor: pointer;
}

.mk-auth-check input {
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: var(--mk-green-700, #2d5a3f);
}

.mk-auth-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.mk-auth-error {
	margin: 0 0 14px;
	padding: 10px 14px;
	border-radius: 10px;
	background: #fdecec;
	color: #9b2c2c;
	font-size: 0.9rem;
}

.mk-auth-success {
	margin: 0 0 14px;
	padding: 10px 14px;
	border-radius: 10px;
	background: #e8f6ec;
	color: #1c5c33;
	font-size: 0.9rem;
}

/* Page Mon profil — [mk_profile] : carte seule, centrée */

.mk-profile {
	max-width: 560px;
	margin: 0 auto;
	padding: 0 24px;
}

.mk-auth-submit {
	display: block;
	width: 100%;
	padding: 13px 20px;
	border: none;
	border-radius: 10px;
	background: linear-gradient(90deg, var(--mk-green-900, #1c3526), var(--mk-green-500, #4a8862));
	color: #fff;
	font: inherit;
	font-size: 1.02rem;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(45, 90, 63, 0.28);
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.mk-auth-submit:hover {
	color: #fff;
	filter: brightness(1.07);
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(45, 90, 63, 0.34);
}

.mk-auth-submit:disabled {
	opacity: 0.65;
	cursor: wait;
	transform: none;
}

.mk-auth-switch {
	margin: 18px 0 0;
	text-align: center;
	font-size: 0.92rem;
	color: var(--mk-muted, #5f6f66);
}

.mk-auth-consent {
	margin: 14px 0 0;
	text-align: center;
	font-size: 0.8rem;
	color: var(--mk-muted, #5f6f66);
}

.mk-auth-note {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 22px 0 0;
	padding: 12px 14px;
	border-radius: 10px;
	background: var(--mk-green-100, #e6efe9);
	color: var(--mk-green-900, #1c3526);
	font-size: 0.86rem;
	line-height: 1.45;
}

.mk-auth-note .mk-auth-icon {
	color: var(--mk-green-700, #2d5a3f);
	margin-top: 2px;
}

.mk-auth-card--logged {
	text-align: center;
}

.mk-auth-logged-emoji {
	font-size: 2.6rem;
	line-height: 1;
	margin-bottom: 10px;
}

/* ---------- Colonne argumentaire ---------- */

.mk-auth-aside {
	display: grid;
	gap: 18px;
}

.mk-auth-promo {
	background: linear-gradient(150deg, var(--mk-green-900, #1c3526) 0%, var(--mk-green-700, #2d5a3f) 60%, var(--mk-green-500, #4a8862) 100%);
	color: #fff;
	border-radius: 16px;
	padding: 24px 22px 22px;
	box-shadow: 0 10px 30px rgba(28, 53, 38, 0.18);
}

.mk-auth-promo-title {
	margin: 0 0 16px;
	font-size: 1.1rem;
	color: #fff;
}

.mk-auth-promo-item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	padding: 16px 16px 14px;
	margin-bottom: 12px;
}

.mk-auth-promo-emoji {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.25rem;
}

.mk-auth-promo-item h3 {
	margin: 0 0 4px;
	font-size: 1rem;
	color: #fff;
}

.mk-auth-promo-item p {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.5;
}

.mk-auth-promo-sub {
	margin-top: 8px !important;
	font-size: 0.84rem !important;
	color: rgba(255, 255, 255, 0.8);
}

.mk-auth-promo-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 8px auto 0;
	padding: 8px 16px;
	border-radius: 999px;
	background: var(--mk-amber, #c98a2b);
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
}

.mk-auth-promo > .mk-auth-promo-pill {
	display: flex;
	width: fit-content;
	margin-left: auto;
	margin-right: auto;
	border-top: none;
}

.mk-auth-reviews {
	background: var(--mk-surface, #fff);
	border: 1px solid var(--mk-border, #e4e2da);
	border-radius: 16px;
	padding: 20px 22px 8px;
}

.mk-auth-reviews h2 {
	margin: 0 0 14px;
	font-size: 1.05rem;
}

.mk-auth-review {
	display: flex;
	gap: 14px;
	margin: 0;
	padding: 14px 0;
	border-top: 1px solid var(--mk-border, #e4e2da);
}

.mk-auth-review:first-of-type {
	border-top: none;
	padding-top: 0;
}

.mk-auth-review-avatar {
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--mk-green-700, #2d5a3f);
	color: #fff;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.mk-auth-review:nth-of-type(2n) .mk-auth-review-avatar {
	background: var(--mk-amber, #c98a2b);
}

.mk-auth-review figcaption {
	font-weight: 700;
	font-size: 0.95rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0 10px;
	align-items: baseline;
}

.mk-auth-stars {
	color: var(--mk-amber, #c98a2b);
	letter-spacing: 1px;
	font-size: 0.85rem;
}

.mk-auth-review blockquote {
	margin: 4px 0 0;
	padding: 0;
	border: none;
	font-style: italic;
	font-size: 0.9rem;
	color: var(--mk-muted, #5f6f66);
	line-height: 1.5;
}

.mk-auth-stats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.mk-auth-stat {
	background: var(--mk-green-100, #e6efe9);
	border: 1px solid #d3e2d8;
	border-radius: 12px;
	padding: 14px 8px;
	text-align: center;
}

.mk-auth-stat strong {
	display: block;
	font-size: 1.35rem;
	color: var(--mk-green-700, #2d5a3f);
	line-height: 1.2;
}

.mk-auth-stat span {
	font-size: 0.78rem;
	color: var(--mk-muted, #5f6f66);
}

@media (max-width: 480px) {
	.mk-auth {
		padding: 0 16px;
	}

	.mk-auth-card {
		padding: 26px 20px 22px;
	}

	.mk-auth-stat strong {
		font-size: 1.15rem;
	}
}
