
*,
*::before,
*::after {
	padding: 0;
	margin: 0;
	box-sizing: border-box;
}

body {
	font-family: "Poppins", sans-serif;
}

main {
	width: 100%;
	min-height: 100vh;
	overflow: hidden;
	background-image: url('/main/img/main_background.png');
	background-size: 100%;
	background-repeat:no-repeat;
	padding-left: 5rem;
	padding-right: 5rem;
	padding-top: 1rem;
	padding-bottom: 5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: 2s ease-in-out;
}

form {
	max-width: 350px;
	width: 100%;
	margin: 0 auto;
	height: 100%;
	display: flex;
	flex-direction: column;
	/*글씨를 빈공간 없이 채운다 */
	justify-content: space-evenly;
	/*그리드 모양을 정리한다. 한면에 2개 정보들을 넣을 시 겹치게 만든다*/
	grid-column: 1/2;
	grid-row: 1/2;
	transition: opacity 0.02s 0.4s;
}

.box {
	position: relative;
	width: 100%;
	max-width: 450px;
	min-height: 450px;
	background-color: #fff;
	border-radius: 3.3rem;
	box-shadow: 7px 7px 5px rgba(0, 0, 0, 0.24);
		transition: 0.8s ease-in-out;
}

.inner-box{
	position: absolute;
	width: calc(100% - 4.1rem);
	height: calc(100% - 0.1rem);
	/* 왼쪽 모서리 중앙 정렬 */
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);

	/* 위치 파악을 위해	background-color: red; */
}
/*왼쪽 로그인 화면 너비 45% 설정*/
.forms-wrap {
	position: absolute;
	height: 100%;
	width: 100%;
	/* 왼쪽 모서리 정렬 */
	top: 0;
	left: 0;
	display: grid;
	grid-template-columns: 1fr;
	grid-template-rows: 1fr;
	transition: 0.8s ease-in-out;
	perspective:1000px;

}
.logo {
	display: inline-flex;
	align-items: center;
}
.logo img {
	width: 100%;
	margin: 0.3rem;
}

.logo 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 {
	font-size: 0.75rem;
	font-weight: 400;
	color: #bababa;
	display: contents;
}

.toggle {
	color: #151111;
	text-decoration: none;
	font-size: 0.75rem;
	font-weight: 500;
	cursor: pointer;
	transition: 0.3s;
	padding-left: 0.5rem;
}

.toggle:hover {
	color: #8371fd;
}

.input-wrap {
	position: relative;
	height: 37px;
	margin-bottom: 2rem;
}

.input-wrap2 {
	position: relative;
	height: 37px;
}

.heading {
	position: relative;
	height: 37px;
	margin-bottom: 2rem;
	display: flex;
}

.heading li {
	list-style: none;
}

.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: #112475;
	font-weight: bold;
	pointer-events: none;
	transition: 0.4s;
}

.input-field.active {
	border-bottom-color: #151111;
}

.input-field.active + label {
	font-size: 0.75rem;
	top: -2px;
}

.sign-btn {
	display: inline-block;
	width: 100%;
	height: 43px;
	background-color: #fff;
	color: #322c86;
	border-width: 2px;
	border-style: solid;
	border-color: #322c86;
	cursor: pointer;
	border-radius: 1.1rem;
	font-size: 1rem;
	font-weight: bold;
	margin-bottom: 1em;
}

.sign-btn:hover {
	background: linear-gradient(-45deg, #4358c0, #322c86);
	color: white;
}

.text {
	color: #bbb;
	font-size: 0.7rem;
}

.text a {
	color: #bbb;
	transition: 0.3s;
}

.text a:hover{
	color: #322c86;
}

/*사이즈가 줄어들었을 때의 css 환경 */
@media (max-width: 991px) {
	main {
		padding-left: 0rem;
		padding-right: 0rem;
		background-size: 200%;

	}
@media (max-width: 450px) {
	.box {
		min-height: 400px;
		max-width: 450px;
		overflow: hidden;
	}
	.inner-box {
		position: static;
		transform: none;
		width: revert;
		height: revert;
		padding: 2rem;
	}
	.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: 450px) {
	main {
		padding: 1rem;
	}
	.box {
		border-radius: 2rem;
	}
	.inner-box {
		padding: 1rem;
	}
	.carousel {
		padding: 1.5rem 1rem;
		border-radius: 1.6rem;
	}
	.text-wrap {
		margin-bottom: 1rem;
	}
	.text-group h2 {
		font-size: 1.2rem;
	}
	form {
		padding: 1rem 2rem 1.5rem;
	}
}
