/* Modern Authentication Pages Design */

/* Container principal des pages d'authentification */
.auth-container {
	max-width: 420px;
	margin: var(--space-12) auto;
	padding: var(--space-6);
}

/* Animation d'entrée moderne et subtile */
@keyframes slideUp {
	from { 
		opacity: 0; 
		transform: translateY(20px); 
	}
	to { 
		opacity: 1; 
		transform: translateY(0); 
	}
}

/* En-tête de la page d'authentification */
.auth-header {
	text-align: center;
	margin-bottom: var(--space-8);
	animation: slideUp 0.6s ease-out;
}

.auth-header .logo {
	justify-content: center;
	margin-bottom: var(--space-6);
	font-size: 1.75rem;
}

.auth-title {
	font-size: 1.875rem;
	font-weight: 700;
	color: var(--text-primary);
	margin-bottom: var(--space-2);
	letter-spacing: -0.025em;
}

.auth-subtitle {
	color: var(--text-secondary);
	font-size: 0.9rem;
	line-height: 1.5;
	margin-bottom: 0;
}

/* Carte d'authentification moderne */
.auth-card {
	background: white;
	border: 1px solid var(--gray-200);
	border-radius: var(--radius-xl);
	box-shadow: var(--shadow-lg);
	overflow: hidden;
	animation: slideUp 0.8s ease-out;
}

.card-body {
	padding: var(--space-8);
}

/* Options d'authentification */
.auth-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: var(--space-6);
	flex-wrap: wrap;
	gap: var(--space-3);
}

.forgot-password {
	color: var(--primary);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	transition: color 0.2s ease;
}

.forgot-password:hover {
	color: var(--primary-dark);
	text-decoration: underline;
}

/* Séparateur moderne */
.auth-separator {
	position: relative;
	text-align: center;
	margin: var(--space-8) 0;
	color: var(--gray-500);
	font-size: 0.875rem;
}

.auth-separator::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--gray-200);
	z-index: 1;
}

.auth-separator::after {
	content: attr(data-text);
	background: white;
	padding: 0 var(--space-4);
	position: relative;
	z-index: 2;
}

/* Lien de vérification */
.verification-link {
	text-align: center;
	margin-top: var(--space-4);
}

.verification-link a {
	color: var(--text-secondary);
	text-decoration: none;
	font-size: 0.875rem;
	transition: color 0.2s ease;
}

.verification-link a:hover {
	color: var(--primary);
	text-decoration: underline;
}

/* Pied de page des pages d'authentification */
.auth-footer {
	text-align: center;
	margin-top: var(--space-8);
	padding: var(--space-6) 0;
	color: var(--text-secondary);
	font-size: 0.875rem;
	animation: slideUp 1s ease-out;
}

.auth-footer a {
	color: var(--primary);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.auth-footer a:hover {
	color: var(--primary-dark);
	text-decoration: underline;
}

/* Critères de mot de passe modernes */
.password-criteria {
	margin-top: var(--space-3);
	padding: var(--space-4);
	background: var(--gray-50);
	border: 1px solid var(--gray-200);
	border-radius: var(--radius);
	font-size: 0.8rem;
}

.password-criteria h6 {
	color: var(--text-primary);
	font-size: 0.875rem;
	margin-bottom: var(--space-3);
	font-weight: 600;
}

.criteria-list {
	display: grid;
	gap: var(--space-2);
}

.criteria-item {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	color: var(--text-secondary);
	transition: color 0.2s ease;
}

.criteria-item.valid {
	color: var(--success);
}

.criteria-item .icon {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	background: var(--gray-300);
	color: white;
	transition: all 0.2s ease;
}

.criteria-item.valid .icon {
	background: var(--success);
}

/* Barre de force du mot de passe */
.password-strength-container {
	margin-top: var(--space-3);
}

.password-strength-bar {
	height: 4px;
	background: var(--gray-200);
	border-radius: 2px;
	overflow: hidden;
	margin-bottom: var(--space-2);
}

.password-strength-fill {
	height: 100%;
	transition: all 0.3s ease;
	border-radius: 2px;
}

.strength-weak { 
	background: var(--danger); 
	width: 25%; 
}

.strength-fair { 
	background: var(--warning); 
	width: 50%; 
}

.strength-good { 
	background: var(--info); 
	width: 75%; 
}

.strength-strong { 
	background: var(--success); 
	width: 100%; 
}

.password-strength-text {
	font-size: 0.8rem;
	color: var(--text-secondary);
	text-align: center;
}

/* Message de correspondance des mots de passe */
.password-match-message {
	margin-top: var(--space-2);
	font-size: 0.8rem;
	padding: var(--space-2);
	border-radius: var(--radius);
	transition: all 0.2s ease;
}

.password-match-message.success {
	background: rgba(16, 185, 129, 0.1);
	color: var(--success);
	border: 1px solid rgba(16, 185, 129, 0.2);
}

.password-match-message.error {
	background: rgba(239, 68, 68, 0.1);
	color: var(--danger);
	border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Styles pour le captcha dans le contexte auth */
.captcha-container .form-label {
	font-weight: 500;
	color: var(--text-primary);
	margin-bottom: var(--space-2);
	font-size: 0.875rem;
}

.captcha-container .form-label::after {
	content: none; /* Supprime l'icône emoji */
}

/* Responsive design pour les pages d'authentification */
@media (max-width: 640px) {
	.auth-container {
		margin: var(--space-8) auto;
		padding: var(--space-4);
		max-width: none;
		margin-left: var(--space-4);
		margin-right: var(--space-4);
	}
	
	.card-body {
		padding: var(--space-6);
	}
	
	.auth-title {
		font-size: 1.5rem;
	}
	
	.auth-subtitle {
		font-size: 0.875rem;
	}
	
	.auth-options {
		flex-direction: column;
		align-items: stretch;
		text-align: center;
		gap: var(--space-4);
	}
	
	.criteria-list {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 480px) {
	.auth-container {
		margin: var(--space-6) auto;
		padding: var(--space-3);
	}
	
	.card-body {
		padding: var(--space-4);
	}
	
	.auth-header {
		margin-bottom: var(--space-6);
	}
	
	.auth-header .logo {
		font-size: 1.5rem;
		margin-bottom: var(--space-4);
	}
	
	.auth-title {
		font-size: 1.375rem;
	}
}