/* ============================================================
 * Styles du système d'authentification / inscription
 * Overlay inscription, formulaire, états
 * ============================================================ */

/* ---------- OVERLAY INSCRIPTION ---------- */
.me-auth-overlay {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(15, 23, 42, 0.8);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	animation: me-auth-fade-in 0.3s ease-out;
}

@keyframes me-auth-fade-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes me-auth-slide-up {
	from { transform: translateY(30px); opacity: 0; }
	to { transform: translateY(0); opacity: 1; }
}

.me-auth-modal {
	background: #fff;
	border-radius: 16px;
	max-width: 480px;
	width: 100%;
	padding: 32px;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
	animation: me-auth-slide-up 0.3s ease-out;
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
}

.me-auth-modal h2 {
	font-size: 22px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 6px 0;
}

.me-auth-modal .me-auth-subtitle {
	font-size: 13px;
	color: #64748b;
	margin: 0 0 24px 0;
	line-height: 1.5;
}

/* ---------- FORMULAIRE ---------- */
.me-auth-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.me-auth-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.me-auth-field label {
	font-size: 11px;
	font-weight: 700;
	color: #334155;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.me-auth-field input,
.me-auth-field select {
	padding: 10px 12px;
	border: 1.5px solid #e2e8f0;
	border-radius: 8px;
	font-size: 14px;
	color: #0f172a;
	background: #fff;
	transition: all 0.2s;
	font-family: inherit;
}

.me-auth-field input:focus,
.me-auth-field select:focus {
	outline: none;
	border-color: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.me-auth-field input::placeholder {
	color: #94a3b8;
}

/* ---------- BOUTONS ---------- */
.me-auth-btn {
	padding: 12px 20px;
	border: none;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.me-auth-btn-primary {
	background: #059669;
	color: #fff;
}
.me-auth-btn-primary:hover {
	background: #047857;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}
.me-auth-btn-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.me-auth-btn-secondary {
	background: #f1f5f9;
	color: #334155;
}
.me-auth-btn-secondary:hover {
	background: #e2e8f0;
}

/* ---------- ÉTATS ---------- */
.me-auth-error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-radius: 8px;
	padding: 10px 14px;
	font-size: 12px;
	color: #dc2626;
	font-weight: 500;
}

.me-auth-success {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 8px;
	padding: 16px;
	font-size: 13px;
	color: #16a34a;
	font-weight: 600;
	text-align: center;
}

.me-auth-info {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	border-radius: 8px;
	padding: 14px;
	font-size: 13px;
	color: #1d4ed8;
	font-weight: 500;
	text-align: center;
}

/* ---------- CHAMPS CODE SMS ---------- */
.me-auth-code-group {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin: 16px 0;
}

.me-auth-code-input {
	width: 44px;
	height: 52px;
	text-align: center;
	font-size: 22px;
	font-weight: 700;
	font-family: 'JetBrains Mono', monospace;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	background: #fff;
	color: #0f172a;
	transition: all 0.2s;
}

.me-auth-code-input:focus {
	border-color: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
	outline: none;
}

/* ---------- FOOTER ---------- */
.me-auth-footer {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #f1f5f9;
	text-align: center;
	font-size: 12px;
	color: #94a3b8;
}

.me-auth-footer a {
	color: #059669;
	font-weight: 600;
	text-decoration: none;
}
.me-auth-footer a:hover {
	text-decoration: underline;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 640px) {
	.me-auth-modal {
		padding: 20px;
		border-radius: 12px;
	}
	.me-auth-modal h2 {
		font-size: 18px;
	}
	.me-auth-code-input {
		width: 36px;
		height: 44px;
		font-size: 18px;
	}
}
