/* Styles pour les pages d'authentification */

.auth-container {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
	background-size: cover;
	position: relative;
}

.auth-container::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url('/images/hero-before.svg') center/30px repeat;
	opacity: 0.05;
	pointer-events: none;
}

.auth-card {
	width: 100%;
	max-width: 500px;
	background: white;
	border-radius: 10px;
	padding: 40px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	position: relative;
	z-index: 1;
}

.auth-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--gold);
	text-decoration: none;
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 30px;
}

.auth-logo img {
	height: 40px;
	margin-right: 10px;
}

.auth-card h1 {
	text-align: center;
	margin-bottom: 30px;
	color: var(--dark);
	font-size: 28px;
}

.auth-form .form-group {
	margin-bottom: 20px;
}

.auth-form label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
	color: var(--dark);
}

.auth-form .required {
	color: #e74c3c;
}

.auth-form .form-control {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 5px;
	font-size: 16px;
	transition: all 0.3s;
}

.auth-form .form-control:focus {
	border-color: var(--gold);
	box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
	outline: none;
}

.auth-form .form-text {
	display: block;
	margin-top: 5px;
	font-size: 12px;
	color: #666;
}

.auth-form .btn {
	display: inline-block;
	padding: 12px 25px;
	border-radius: 30px;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.3s;
	border: none;
	width: 100%;
}

.auth-form .btn-primary {
	background: linear-gradient(45deg, var(--gold-dark) 0%, var(--gold) 100%);
	color: white;
	box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.auth-form .btn-primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.auth-form .btn-secondary {
	background: transparent;
	border: 2px solid var(--gold);
	color: var(--gold-dark);
}

.auth-form .btn-secondary:hover {
	background: rgba(212, 175, 55, 0.1);
}

.auth-footer {
	text-align: center;
	margin-top: 30px;
	padding-top: 20px;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.auth-footer p {
	margin-bottom: 10px;
	color: var(--text);
}

.auth-footer a {
	color: var(--gold-dark);
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s;
}

.auth-footer a:hover {
	color: var(--gold);
}

.alert {
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 5px;
	font-weight: 500;
}

.alert ul {
	margin: 0;
	padding-left: 20px;
}

.alert-success {
	background-color: rgba(76, 175, 80, 0.1);
	border-left: 4px solid var(--gold);
	color: #2e7d32;
}

.alert-error {
	background-color: rgba(244, 67, 54, 0.1);
	border-left: 4px solid #f44336;
	color: #d32f2f;
}

.alert-info {
	background-color: rgba(3, 169, 244, 0.1);
	border-left: 4px solid #03a9f4;
	color: #0288d1;
}

.recaptcha-container {
	display: flex;
	justify-content: center;
	margin: 20px 0;
}

.password-requirements {
	list-style: none;
	padding: 0;
	margin: 10px 0;
}

.password-requirements li {
	margin-bottom: 5px;
	color: #666;
	display: flex;
	align-items: center;
}

.password-requirements li::before {
	content: "•";
	margin-right: 10px;
	color: var(--gold);
}

.password-requirements li.valid::before {
	content: "✓";
	color: #4caf50;
}

.auth-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.auth-checkbox {
	display: flex;
	align-items: center;
}

.auth-checkbox input {
	margin-right: 10px;
}

.auth-checkbox label {
	margin-bottom: 0;
	cursor: pointer;
}

.forgot-password {
	font-size: 14px;
}

.auth-divider {
	display: flex;
	align-items: center;
	margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: rgba(0, 0, 0, 0.1);
}

.auth-divider span {
	padding: 0 15px;
	color: #666;
}

.help-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background-color: var(--gold);
	color: white;
	font-size: 12px;
	font-weight: bold;
	border: none;
	cursor: pointer;
	margin-left: 5px;
	transition: var(--transition);
}

.help-button:hover {
	background-color: var(--gold-dark);
}

.question-mark {
	display: inline-block;
	line-height: 1;
}

/* Styles pour la modale */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	overflow-y: auto;
}

.modal.active {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.modal-content {
	background-color: #fff;
	border-radius: 10px;
	width: 100%;
	max-width: 600px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	position: relative;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
}

.modal-header {
	padding: 20px;
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-header h2 {
	margin: 0;
	font-size: 20px;
	color: var(--dark);
}

.close-btn {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: var(--secondary-text);
}

.close-btn:hover {
	color: var(--gold);
}

.modal-body {
	padding: 20px;
	overflow-y: auto;
}

.modal-footer {
	padding: 15px 20px;
	border-top: 1px solid rgba(0, 0, 0, 0.1);
	display: flex;
	justify-content: flex-end;
}

.modal-footer .btn {
	min-width: 100px;
}

/* Animations de la modale */
.modal.animate-in {
	animation: fadeIn 0.3s;
}

.modal.animate-out {
	animation: fadeOut 0.3s;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes fadeOut {
	from {
		opacity: 1;
	}
	to {
		opacity: 0;
	}
}

@media (max-width: 576px) {
	.auth-card {
		padding: 30px 20px;
	}
	
	.modal-content {
		max-height: 80vh;
	}
}