@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	text-decoration: none;
	font-family: "Poppins", sans-serif;
}

body {
	display: flex;
	min-height: 100vh;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

body::before {
	content: "";
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: url("../imgs/mainbg.jpg");
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
	filter: grayscale(100%) brightness(0.15);
	z-index: -1;
}

.wrapper {
	padding: 25px 30px;
	position: relative;
}

.login,
.signup {
	background: #fff;
	margin: 10px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 16px;
	box-shadow: 0 0 20px 1px rgba(255, 255, 255, 0.65);
	width: 400px;
}

.form {
	padding: 25px 30px;
}

.form header {
	font-size: 25px;
	font-weight: 600;
	padding-bottom: 10px;
	border-bottom: 1px solid #e6e6e6;
}

.form form {
	margin: 20px 0;
}

.form form .error-txt {
	color: #721c24;
	background: #f8d7da;
	padding: 8px 10px;
	text-align: center;
	border-radius: 5px;
	margin-bottom: 10px;
	border: 1px solid #f5c6cb;
	display: none;
}

.form form .name-details {
	display: flex;
}

form .name-details .field:first-child {
	margin-right: 10px;
}

form .name-details .field:last-child {
	margin-left: 10px;
}

.form form .field {
	display: flex;
	position: relative;
	flex-direction: column;
	margin-bottom: 10px;
}

.form form .field label {
	margin-bottom: 2px;
}

.form form .field input {
	outline: none;
}

.form form .field i {
	position: absolute;
	right: 15px;
	color: #ccc;
	top: 70%;
	transform: translateY(-50%);
	cursor: pointer;
}

.form form .field i.active::before {
	color: #333;
	content: "\f070";
}

.form form .input input {
	height: 40px;
	width: 100%;
	font-size: 16px;
	padding: 0 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
}

.form form .image input {
	font-size: 17px;
}

.form form .button input {
	margin-top: 10px;
	width: 100%;
	height: 45px;
	border: none;
	font-size: 17px;
	font-weight: 400;
	background: #333;
	color: #fff;
	border-radius: 5px;
	cursor: pointer;
	transition: 0.3s ease;
}

.form form .button input:hover {
	transform: scale(1.02);
}

.form .link {
	text-align: center;
	margin: 10px 0;
	font-size: 17px;
}

.form .link a {
	color: #333;
}

.form .link a:hover {
	text-decoration: underline;
}
