
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500&family=Quicksand:wght@500&display=swap');

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	background: #f6f5f7;
	background-image: url("../images/homebackground.jpg");
	background-size: cover;
}
.backgroundoverlayer{
	background-color: #ffffffa4;
	background-size: cover;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	font-family: 'Quicksand', sans-serif;
    font-weight: 500;
}

h1 {
	font-weight: bold;
	margin: 0;
	padding-bottom: 15px;
}

h2 {
	text-align: center;
}

p {
	font-size: 14px;
	font-weight: 100;
	line-height: 20px;
	letter-spacing: 0.5px;
	margin: 20px 0 30px;
}

span {
	font-size: 12px;
}

a {
	color: #333;
	font-size: 14px;
	text-decoration: none;
	margin: 15px 0;
}

button {
	border-radius: 20px;
	border: 1px solid #C70808;
	background-color: #C70808;
	color: #FFFFFF;
	font-size: 12px;
	font-weight: bold;
	padding: 12px 45px;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: transform 80ms ease-in;
}

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;
	padding: 0 50px;
	height: 100%;
	text-align: center;
}

input {
	background-color: #eee;
	border: none;
	padding: 12px 15px;
	margin: 8px 0;
	width: 100%;
}
.twoinputs{
    display: flex;
    justify-content: center;
    align-items: center;
}
.inputtrenner{
    width: 10px;
}
.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;
	height: 600px;
	width: 1000px;
	max-width: 100%;
	min-height: 480px;
}
.form-container {
	position: absolute;
	top: 0;
	height: 100%;
	transition: all 0.6s ease-in-out;
}

.sign-in-container {
	left: 0;
	width: 50%;
	z-index: 2;
}



.sign-up-container {
	left: 0;
	width: 50%;
	opacity: 0;
	z-index: 1;
}

@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;
}


.overlay {
	background: #C70808;
	background: -webkit-linear-gradient(to right, #C70808, #C70808);
	background: linear-gradient(to right, #C70808, #C70808);
	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;
}

.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);
}



.registermessage,
.message{
    color: #C70808;
	padding-bottom: 10px;
	font-size: 17px;
	display: none;
}
@media (width>750px){
	.overlay-left {
		transform: translateX(-20%);
	}
	.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;
	}
	.container.right-panel-active .overlay-container{
		transform: translateX(-100%);
	}
	.container.right-panel-active .overlay-right {
		transform: translateX(20%);
	}
	.container.right-panel-active .overlay-left {
		transform: translateX(0);
	}
	.container.right-panel-active .overlay {
		  transform: translateX(50%);
	}
}
@media (width<=750px) {
	body{
		height: 100dvh;
	}
	.overlay-container {
		position: absolute;
		top: 85%; /* Ändere die Position von top: 0; zu top: 50%; */
		left: 50%;
		width: 100%; /* Ändere die Breite von 50% zu 100%; */
		height: 30%;
		overflow: hidden;
		transition: transform 0.6s ease-in-out;
		z-index: 100;
		transform: translate(-50%, -50%); /* Zentriere das Overlay im Bildschirm */
	}
	.overlay-left{
		position: absolute;
		top: 0; /* Ändere die Position von top: 0; zu top: 50%; */
		left: 50%;
		width: 100vw; /* Ändere die Breite von 50% zu 100%; */
		height: 30dvh;
		transform: translateY(-70dvh);
	}
	
	.container.right-panel-active .overlay-container {
		transform: translate(-50%, -85dvh); /* Ändere translateX zu translateY */
	}
	.container.right-panel-active .sign-in-container {
		transform: translateY(25%); /* Ändere translateX zu translateY */
	}
	.container.right-panel-active .sign-up-container {
		transform: translateY(10dvh);
		opacity: 1;
		z-index: 5;
		animation: show 0.6s;
	}
	.container.right-panel-active .overlay-right {
		transform: translateY(100%);
	}
	.container.right-panel-active .overlay-left {
		transform: translateY(0);
	}
	.backgroundoverlayer{
		background-image: none;
		background-color: #fff;
	}
	.container{
		width: 100%;
		height: 100%;
	}
	.sign-up-container {
		width: 100%;
	}
	.sign-in-container {
		width: 100%;
	}
	.sign-in-container{
		top: 0;
		height: 80%;
		transition: all 0.6s ease-in-out;
	}
	.sign-up-container{
		top: 15%;
		height: 80%;
		transition: all 0.6s ease-in-out;
	}
	.container{
		border-radius: 0px;
	}
}
@media (height <= 750px) {
	h1{
		font-size: 4vh;
	}
	p{
		font-size: 2vh;
	}
	button{
		font-size: 2vh;
	}
}