/* Container principal */
.container {
	background-color: #ECE9D8;
	border-radius: 10px;
	box-shadow: 0 14px 28px rgba(0,0,0,0.25), 
		0 10px 10px rgba(0,0,0,0.22);
	position: relative;
	overflow: hidden;
	width: 768px;
	max-width: 100%;
	min-height: 480px;
	margin: 5rem auto;
}

.container .required {
    color: #1E1E1E;
  }

/* Formulaires */
.container form {
	background-color: #ECE9D8;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-direction: column;
	padding: 50px;
	height: 100%;
	text-align: center;
}

/* Conteneurs de formulaire */
.form-container {
	position: absolute;
	top: 0;
	height: 100%;
	transition: all 0.6s ease-in-out;
}

.form-container h2 {
	color: #1E1E1E;
	font-size: 1.7rem;
	margin: 0;
}

.sign-in-container {
	left: 0;
	width: 50%;
	z-index: 2;
}

.container.right-panel-active .sign-in-container {
	transform: translateX(100%);
}

.sign-up-container {
	left: 0;
	width: 50%;
	opacity: 0;
	z-index: 1;
}

.container.right-panel-active .sign-up-container {
	transform: translateX(100%);
	opacity: 1;
	z-index: 5;
	animation: show 0.6s;
}

@keyframes show {
	0%, 49.99% {
		opacity: 0;
		z-index: 1;
	}
	
	50%, 100% {
		opacity: 1;
		z-index: 5;
	}
}

/* Input et labels */
input {
	background-color: #eee;
	border: none;
	padding: 12px 15px;
	margin: 8px 0;	
	width: 100%;
	font-weight: 500;
}

.input-boxes {
	/* margin: 25px 0 auto 0; */
	display: flex;
	flex-direction: column;
	gap: 30px;
	width: 100%;
	position: relative;
}

.input-box {
	position: relative;
	display: flex;
	align-items: center;
	gap: 5px;
	height: 40px;
	width: 90%;
	margin: 0 auto;
}

.password {
	display: flex;
	flex-direction: column;
	position: relative;
}

.forgot-password-link {
	width: 90%;
	margin: 0 auto;
	margin-top: 5px;
	text-align: left;
}

.forgot-password-link a{
	color: #1E1E1E;
	text-decoration: none;
}

.forgot-password-link a:hover {
	text-decoration: underline;
	width: 100%;
}

.input-box img {
	position: absolute;
	top: 50%;
	left: 10px;
	transform: translateY(-50%);
}

.input-box input {
	width: 100%;
	height: 100%;
	border: 1px solid #29373A;
	background-color: #ECE9D8;
	padding-left: 45px;
	padding-right: 10px;
	border-radius: 5px;
	font-family: 'Montserrat';
}

.input-box label {
    position: absolute;
    top: 50%;
    left: 40px;
    padding: 0 4px;
    color: #5f5f5f;
    font-weight: 400;
    pointer-events: none;
    transform: translateY(-50%);
    transition: all 0.3s ease-in-out;
}

.input-box .active {
    top: 0;
    padding: 0 4px;
    font-weight: 400;
    color: #1E1E1E;
    background-color: #ECE9D8;
}

.input-box input:not([type="submit"]):is(:focus, :valid) + .floating-label {
	top: 0;
	padding: 0 4px;
	font-weight: 400;
	color: #1E1E1E;
	background-color: #ECE9D8;
}

.input-box input[type="submit"] {
	padding: 0;
	margin: 0 2rem;
	/* margin-top: 70px; */
	border: none;
	background-color: #29373A;
	color: #ECE9D8;
	font-family: 'Montserrat', sans-serif;
	font-size: 1rem;
	cursor: pointer;
}

/* Conteneur d'overlay */
.overlay-container {
	position: absolute;
	top: 0;
	left: 50%;
	width: 50%;
	height: 100%;
	overflow: hidden;
	transition: transform 0.6s ease-in-out;
	z-index: 100;
}

.container.right-panel-active .overlay-container {
	transform: translateX(-100%);
}

.overlay {
	color: #FFFFFF;
	position: relative;
	left: -100%;
	height: 100%;
	width: 200%;
	transform: translateX(0);
	transition: transform 0.6s ease-in-out;
}

.container.right-panel-active .overlay {
	transform: translateX(50%);
}

.overlay img {
	height: 100%;
	width: 100%;
	position: absolute;
	object-fit: cover;
	filter: brightness(50%);
}

.overlay-panel {
	position: absolute;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 0 40px;
	text-align: center;
	top: 0;
	height: 100%;
	width: 50%;
	transform: translateX(0);
	transition: transform 0.6s ease-in-out;
}

.overlay-left {
	transform: translateX(-20%);
}

.container.right-panel-active .overlay-left {
	transform: translateX(0);
}

.overlay-right {
	right: 0;
	transform: translateX(0);
}

.container.right-panel-active .overlay-right {
	transform: translateX(20%);
}

.overlay-panel h3 {
	background-color: #1e1e1ee2;
	color: #ECE9D8;
	padding: 0.5rem 1rem;
	border-radius: 10px;
}



/* Boutons */
button {
	border-radius: 15px;
	color: #29373A;
	background-color: #ECE9D8;
	font-weight: bold;
	padding: 1rem 3rem;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: transform 80ms ease-in;
	cursor: pointer;
}

button:active {
	transform: scale(0.95);
}


button.ghost {
	/* background-color: transparent; */
	border-color: #ECE9D8;
}

.error {
	border: 2px solid red;
}

.error-message {
	color: red;
	font-size: 0.9em;
	display: none;
}

.login-error-message,
.signup-error-message {
	position: absolute;
	bottom: 10px;
	color: red;
}