@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap");

@media (max-width: 530px) {
	.carousel {
		padding: 1.5rem 1rem;
		border-radius: 1.6rem;
		display: none;
	}
	.google-btn {
		width: 284px;
	}
}

.back-button {
	margin-top: 1%;
	margin-left: 3%; /* Adjust as needed for spacing */
	padding: 14px 12px 12px 14px; /* Adjust padding as needed */
	background-color: #03078c; /* Use your theme's color */
	border: none;
	color: white;
	border-radius: 5px; /* Optional: for rounded corners */
	cursor: pointer; /* adjust the space between icon and logo */
}

/* Optional: change color on hover */

/* Ensure your logo and button are aligned nicely */
.logo {
	margin-top: 50px;
	display: flex;
	align-items: center;
}

/* Terms and conditions  */
.modal {
	display: none;
	position: absolute;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
	background-color: #fefefe;
	margin: 15% auto;
	padding: 20px;
	border: 1px solid #888;
	width: 80%;
	justify-content: center;
	box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
	overflow-y: scroll; /* Add scrollbar to the modal content */
	max-height: 70%; /* Limit max height to 70% of viewport */
}

.close {
	display: none; /* Hide the close button when scrolling */
}

.fixed-close-btn {
	position: fixed;
	top: 3px;
	padding: 15px;
	right: 7px;
	background-color: #ff1212;
	border: none;
	font-size: 20px;
	cursor: pointer;
	border-radius: 16px;
	color: white;
}

.fixed-close-btn:hover {
	color: rgb(255, 255, 255);
	background-color: #03078c;
}

/* Terms And Conditions */
body,
input {
	font-family: "Poppins", sans-serif;
}
.google-btn {
	border: 1px solid 03078C;
	background-color: #03078c;
	color: rgb(255, 255, 255);
	border-radius: 0.8rem;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	transition: background-color 0.3s;
	margin-bottom: 4px;
	text-align: center;
}

.google-btn:hover {
	background-color: #ffc107;
	/* color: black; */
}

.google-icon-wrapper {
	width: 35px;
	margin-right: 10px;
	display: flex;
	align-items: center;
}

.google-icon {
	height: 30px;
	width: 30px;
}

.btn-text {
	color: rgb(255, 255, 255);
	padding-top: 12px;
	font-size: 12px;
	letter-spacing: 0.2px;
	font-family: "Roboto", sans-serif;
}
/* Add this to change the color of text to black on hover */
.google-btn:hover .btn-text {
	/* background-color: #FFC107; */
	color: black;
}

/* Adjustments for the icon image size and alignment might be needed */

main {
	width: 100%;
	min-height: 100vh;
	overflow: hidden;
	background-color: #191c93;
	display: flex;
	align-items: center;
	justify-content: center;
}

.box {
	position: relative;
	width: 100%;
	max-width: 1020px;
	height: 690px;
	background-color: #fff;
	border-radius: 3.3rem;
	box-shadow: 0 60px 40px -30px rgba(0, 0, 0, 0.27);
}

.inner-box {
	position: absolute;
	width: calc(100% - 4.1rem);
	height: calc(100% - 4.1rem);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.forms-wrap {
	position: absolute;
	height: 100%;
	width: 45%;
	top: 0;
	left: 0;
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
	transition: 0.8s ease-in-out;
}

form {
	max-width: 260px;
	width: 100%;
	margin: 0 auto;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	grid-column: 1 / 2;
	grid-row: 1 / 2;
	transition: opacity 0.02s 0.4s;
}

form.sign-up-form {
	opacity: 0;
	pointer-events: none;
}

.logoCE {
	display: flex;
	align-items: center;
}

.logoCE img {
	height: 70px;
	width: 252px;
	margin-top: 10px;
	border-radius: 10px;
}

.logoCE h4 {
	font-size: 1.1rem;
	margin-top: -9px;
	letter-spacing: -0.5px;
	color: #151111;
}

.heading h2 {
	font-size: 2.1rem;
	font-weight: 600;
	color: #151111;
}

.heading h6 {
	color: #bababa;
	font-weight: 400;
	font-size: 0.75rem;
	display: inline;
}

.toggle {
	color: #151111;
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 500;
	transition: 0.3s;
}

.toggle:hover {
	color: #8371fd;
}

.input-wrap {
	position: relative;
	height: 37px;
	margin-bottom: 2rem;
}

.input-field {
	position: absolute;
	width: 100%;
	height: 100%;
	background: none;
	border: none;
	outline: none;
	border-bottom: 1px solid #bbb;
	padding: 0;
	font-size: 0.95rem;
	color: #151111;
	transition: 0.4s;
}

label {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.95rem;
	color: #bbb;
	pointer-events: none;
	transition: 0.4s;
}

.input-field.active {
	border-bottom-color: #03078c;
}

.input-field.active + label {
	font-size: 0.75rem;
	top: -2px;
}

.sign-btn {
	display: inline-block;
	width: 262px;
	height: 43px;
	background-color: #03078c;
	color: #fff;
	border: none;
	cursor: pointer;
	border-radius: 0.8rem;
	font-size: 0.8rem;
	margin-bottom: 1rem;
	transition: 0.3s;
}

.sign-btn:hover {
	background-color: #ffc107;
	color: black;
}

.text {
	color: #000000;
	font-size: 0.9rem;
}

.text a {
	color: #ff0000;
	transition: 0.3s;
}

.text a:hover {
	color: #03078c;
}

main.sign-up-mode form.sign-in-form {
	opacity: 0;
	pointer-events: none;
}

main.sign-up-mode form.sign-up-form {
	opacity: 1;
	pointer-events: all;
}

main.sign-up-mode .forms-wrap {
	left: 55%;
}

main.sign-up-mode .carousel {
	left: 0%;
}

.carousel {
	position: absolute;
	height: 100%;
	width: 55%;
	left: 45%;
	top: 0;
	background-color: #a9b7c5;
	border-radius: 10px;
	display: grid;
	grid-template-rows: auto 1fr;
	overflow: hidden;
	transition: 0.8s ease-in-out;
}

.images-wrapper {
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
}

.image {
	width: 100%;
	grid-column: 1/2;
	grid-row: 1/2;
	opacity: 0;
	transition: opacity 0.3s, transform 0.5s;
}

.img-1 {
	transform: translate(0, -50px);
}

.img-2 {
	transform: scale(0.4, 0.5);
}

.img-3 {
	transform: scale(0.3) rotate(-20deg);
}

.image.show {
	opacity: 1;
	transform: none;
}

.text-slider {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.text-wrap {
	max-height: 2.2rem;
	overflow: hidden;
	margin-bottom: 2.5rem;
}

.text-group {
	display: flex;
	flex-direction: column;
	text-align: center;
	transform: translateY(0);
	transition: 0.5s;
}

.text-group h2 {
	line-height: 2.2rem;
	font-weight: 600;
	font-size: 1.6rem;
}

.bullets {
	display: flex;
	align-items: center;
	justify-content: center;
}

.bullets span {
	display: block;
	width: 0.5rem;
	height: 0.5rem;
	background-color: #aaa;
	margin: 0 0.25rem;
	border-radius: 50%;
	cursor: pointer;
	transition: 0.3s;
}

.bullets span.active {
	width: 1.1rem;
	background-color: #151111;
	border-radius: 1rem;
}

@media (max-width: 850px) {
	.box {
		height: auto;
		max-width: 550px;
		overflow: hidden;
	}
	.sign-btn {
		display: inline-block;
		width: 283px;
		height: 43px;
		background-color: #03078c;
		color: #fff;
		border: none;
		cursor: pointer;
		border-radius: 0.8rem;
		font-size: 0.8rem;
		margin-bottom: 1rem;
		transition: 0.3s;
	}
	.inner-box {
		position: static;
		transform: none;
		width: revert;
		height: revert;
		padding: 2rem;
	}
	.input-wrap {
		position: relative;
		height: 37px;
		margin-bottom: 2rem;
		width: 289px;
	}

	.forms-wrap {
		position: revert;
		width: 100%;
		height: auto;
	}

	form {
		max-width: revert;
		padding: 1.5rem 2.5rem 2rem;
		transition: transform 0.8s ease-in-out, opacity 0.45s linear;
	}

	.heading {
		margin: 2rem 0;
	}

	form.sign-up-form {
		transform: translateX(100%);
	}

	main.sign-up-mode form.sign-in-form {
		transform: translateX(-100%);
	}

	main.sign-up-mode form.sign-up-form {
		transform: translateX(0%);
	}

	.carousel {
		position: revert;
		height: auto;
		width: 100%;
		padding: 3rem 2rem;
		display: flex;
	}

	.images-wrapper {
		display: none;
	}

	.text-slider {
		width: 100%;
	}
}

@media (max-width: 530px) {
	main {
		padding: 1rem;
	}

	.box {
		border-radius: 2rem;
	}

	.inner-box {
		padding: 1rem;
	}

	.carousel {
		padding: 1.5rem 1rem;
		border-radius: 1.6rem;
		display: none;
	}

	.text-wrap {
		margin-bottom: 1rem;
	}

	.text-group h2 {
		font-size: 1.2rem;
	}

	form {
		padding: 1rem 2rem 1.5rem;
	}
}
