@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");

* {
	box-sizing: border-box;
}

body {
	background: #f6f5f7;
	font-family: 'Lexend', sans-serif;
	overflow: hidden;
	display: grid;
	place-items: center;
	min-height: 100vh;
}

h1 {
	font-weight: 900;
	font-size: 2em;
	font-family: "Lexend";
}

p {
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.5px;
	margin: 20px 0 30px;
}

span {
	font-size: 12px;
}

a {
	color: #333;
	font-size: 15px;
	text-decoration: none;
	margin: 15px 0;
}

button {
	border-radius: 20px;
	border: 1px solid #ffffff;
	background-color: #49a3f1;
	color: #FFFFFF;
	font-size: 15px;
	font-weight: bold;
	padding: 12px 45px;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
	transition: ease-in-out .3s;
}

form .user {
	border-radius: 20px;
	border: 1px solid #ffffff;
	background-color: #49a3f1;
	color: #FFFFFF;
	font-size: 15px;
	font-weight: bold;
	padding: 12px 45px;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
	transition: ease-in-out .3s;
}


button:hover {
	background-color: #1a73e8;
}

img {
	width: 150px;
	border: none;
	border-radius: 10rem;
}

button:active {
	transform: scale(0.95);
}

button:focus {
	outline: none;
}

button.ghost {
	background-color: transparent;
	border-color: #FFFFFF;
}

form {
	background-color: #FFFFFF;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	height: 100%;
	width: 90%;
	text-align: center;
	margin-top: -20px;
	transition: ease-in-out .3s;
}

input {
	background-color: #cdcdcd;
	border: none;
	padding: 12px 15px;
	margin: 8px 0;
	width: 100%;
	border-radius: 4px;
	height: 40px;
	font-family: "lexend";
}

.container {
	background-color: #fff;
	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: 60%;
	max-width: 100%;
	min-height: 600px;
	display: grid;
	transition: ease-in-out .2s;
}

.form-container {
	position: absolute;
	top: 0;
	display: grid;
	place-items: center;
	height: 100%;
	transition: all 0.6s ease-in-out;
}

.sign-in-container {
	left: 0;
	width: 50%;
	z-index: 2;
	transition: ease-in-out .3s;
}

.container.right-panel-active .sign-in-container {
	transform: translateX(100%);
}

.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;
	}
}

.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 {
	background-image: linear-gradient(195deg, #49a3f1, #1a73e8);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: 0 0;
	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-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-right {
	right: 0;
	transform: translateX(0);
}

.container.right-panel-active .overlay-right {
	transform: translateX(20%);
}

.terms {
	display: flex;
	gap: 70px;
	justify-content: center;
	align-items: center;
	text-align: center;
	width: 100%;
	position: relative;
}

.terms a {
	text-decoration: none;
	color: #000000;
	cursor: pointer;
}

.terms span {
	font-size: 1em;
	margin-left: 5px;
	cursor: pointer;
}

.buttons {
	display: flex;
	width: 100%;
	align-items: center;
}

.buttons input {
	height: auto;
	width: auto;
}

.buttons label {
	text-align: left;
	width: 100%;
	margin-left: 5px;
}

.tutorial span,
i {
	font-size: 1.1em;
}

.tutorial span {
	display: flex;
	gap: 10px;
	color: #ffffff;
	align-items: center;
	justify-content: center;
}

.tutorial {
	margin-top: 3rem;
}

.modal {
	display: none;
	position: fixed;
	z-index: 999;
	padding-top: 100px;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: #000000b6;
	transition: all 0.9s ease;
}

.modal-content h2 {
	font-weight: 900;
}

.modal.show {
	opacity: 1;
	transform: translateY(0);
}

.modal.hide {
	opacity: 0;
	transform: translateY(-100px);
}

.modal-content {
	background-color: #fefefe;
	margin: auto;
	text-align: center;
	padding: 20px;
	border: none;
	border-radius: 10px;
	border: 1px solid #888;
	width: 30%;
	animation-name: animatetop;
	animation-duration: 0.4s;
}

.modal-container {
	display: grid;
	place-items: center;
	margin-top: 20px;
}

.close {
	color: #aaa;
	top: 0;
	float: right;
	font-size: 28px;
	font-weight: bold;
}

.close:hover,
.close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}

@keyframes animatetop {
	from {
		top: -300px;
		opacity: 0
	}

	to {
		top: 0;
		opacity: 1
	}
}

.forget {
	width: 60%;
	color: #1a73e8;
	text-decoration: underline;
	font-weight: 500;
}

@media screen and (max-width: 450px) {
	body {
		display: initial;
		overflow: scroll;
		min-height: 100vh;
		padding: 0;
		margin: 0;
	}

	.container {
		min-width: 100%;
		display: flex;
		flex-direction: column-reverse;
		border: none;
		border-radius: 0%;
		box-shadow: none;
	}

	form {
		width: 100%;
		margin-top: 1px;
		box-shadow: 0 0 5px 0 #c5c5c5;
		border-radius: 10px;
		padding: 10px;
	}

	h1{
		font-size: 1.5em;
	}

	.form-container {
		width: 100%;
		display: initial;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		padding: 10px;
		position: initial;
		height: auto;
	}

	.overlay-container {
		width: 100%;
		position: initial;
	}

	.overlay-panel {
		width: 100%;
		position: initial;
	}

	.overlay {
		position: initial;
		width: auto;
		height: auto;
		padding: 10px;
		margin: 5px;
		border-radius: 10px;
	}
}