:root {
	--bg-color: #ffffff;
	--text-color: #333333;
	--primary-color: #7c4dff;
	--secondary-color: #6200ea;
	--input-bg: #f0f0f0;
	--container-bg: rgba(255, 255, 255, 0.8);
}

body.dark-theme {
	--bg-color: #1e1e1e;
	--text-color: #ffffff;
	--primary-color: #7c4dff;
	--secondary-color: #6200ea;
	--input-bg: rgba(255, 255, 255, 0.1);
	--container-bg: rgba(255, 255, 255, 0.1);
}

body {
	font-family: 'Arial', sans-serif;
	line-height: 1.6;
	margin: 0;
	padding: 0;
	background-color: var(--bg-color);
	color: var(--text-color);
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100vh;
	transition: all 0.3s ease;
}
.container {
	width: 100%;
	max-width: 450px; /* Augmenté légèrement pour accommoder plus de champs */
	padding: 40px;
	background: var(--container-bg);
	backdrop-filter: blur(10px);
	border-radius: 15px;
	box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
	border: 1px solid rgba(255, 255, 255, 0.18);
}
h1 {
	color: var(--primary-color);
	font-size: 28px;
	margin-bottom: 20px;
	text-align: center;
}
form {
	display: flex;
	flex-direction: column;
}
label {
	margin-bottom: 5px;
	color: var(--text-color);
}
input {
	padding: 12px;
	margin-bottom: 20px;
	border: none;
	border-radius: 5px;
	background-color: var(--input-bg);
	color: var(--text-color);
	font-size: 16px;
}
input::placeholder {
	color: #999999;
}
button {
	background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
	color: #ffffff;
	border: none;
	padding: 12px;
	border-radius: 5px;
	font-size: 18px;
	cursor: pointer;
	transition: all 0.3s ease;
}
button:hover {
	background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
	box-shadow: 0 0 15px rgba(124, 77, 255, 0.5);
}
.forgot-password {
	text-align: right;
	margin-top: 10px;
}
.forgot-password a {
	color: var(--primary-color);
	text-decoration: none;
}
.register {
	text-align: center;
	margin-top: 20px;
	color: var(--text-color);
}
.register a {
	color: var(--primary-color);
	text-decoration: none;
	font-weight: bold;
}
.theme-toggle {
	position: absolute;
	top: 20px;
	right: 20px;
}

.theme-toggle label {
	cursor: pointer;
	padding: 10px;
	background-color: var(--primary-color);
	color: #ffffff;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
}

.theme-toggle i {
	font-size: 20px;
}

.container {
	width: 100%;
	max-width: 450px; /* Augmenté légèrement pour accommoder plus de champs */
	padding: 40px;
	background: var(--container-bg);
	backdrop-filter: blur(10px);
	border-radius: 15px;
	box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
	border: 1px solid rgba(255, 255, 255, 0.18);
}

form {
	display: flex;
	flex-direction: column;
}

label {
	margin-bottom: 5px;
	color: var(--text-color);
}

input::placeholder {
	color: #999999;
}

.forgot-password {
	text-align: right;
	margin-top: 10px;
}

.forgot-password a {
	color: var(--primary-color);
	text-decoration: none;
}

.register {
	text-align: center;
	margin-top: 20px;
	color: var(--text-color);
}

a {
	color: var(--primary-color) !important;
	text-decoration: none;
	font-weight: bold;
}

.theme-toggle {
	position: absolute;
	top: 20px;
	right: 20px;
}

.theme-toggle label {
	cursor: pointer;
	padding: 10px;
	background-color: var(--primary-color);
	color: #ffffff;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
}

.forms-container {
	position: relative;
	width: 100%;
	height: auto;
	overflow: hidden;
}
.login-form, .contact-form {
	position: absolute;
	width: 100%;
	transition: transform 0.5s ease-in-out;
}
.login-form {
	transform: translateX(0);
}
.contact-form {
	transform: translateX(0);
}
.login-form.hidden {
	transform: translateX(-100%);
}
.contact-form.hidden {
	transform: translateX(100%);
}

.captcha-container {
    margin-bottom: 20px;
}

#captcha-word {
    font-weight: bold;
    font-size: 1.2em;
}

#captcha {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    font-size: 16px;
}


.reset-password-form {
    position: absolute;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.reset-password-form.hidden {
    transform: translateX(100%);
}

.captcha_input{
	width: 100%;
}