body{
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	font-family: 'Nunito', sans-serif;
	background: linear-gradient(to bottom, #ffffff, #f6f1ff, #ffffff);
}
*,
*::before,
*::after{
	box-sizing: border-box;
}
.visually-hidden {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
.main{
	position: relative;
	width: min(520px, calc(100vw - 32px));
	padding: 76px 28px 28px;
	background: rgba(255, 255, 255, 0.96);
	border-radius: 28px;
	box-shadow: 0px 20px 56px rgba(71, 37, 123, 0.16);
}
.auth-lang-switch{
	position: absolute;
	top: 18px;
	right: 18px;
	display: inline-flex;
	gap: 6px;
	padding: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.12);
	z-index: 2;
}
.auth-lang-button{
	border: 0;
	background: transparent;
	border-radius: 999px;
	padding: 8px 14px;
	font-weight: 700;
	cursor: pointer;
}
.auth-lang-button.is-active{
	background: #8558c0;
	color: #fff;
}
.toggle-input{
	left: 0;
	top: 0;
}
.signup,
.login{
	width:100%;
}
.form-title{
	margin: 0 0 14px;
}
.toggle-label{
	color: rgb(104, 62, 195);
	font-size: clamp(2.8rem, 8vw, 4.8rem);
	line-height: 0.95;
	display: block;
	font-weight: bold;
	cursor: pointer;
	transition: color .2s ease-in-out;
	text-align: left;
}
.field-label{
	width: 100%;
	display: block;
	margin: 0 0 8px;
	color: #2f1d55;
	font-size: 0.95rem;
	font-weight: 700;
}
input{
	width: 100%;
	height: 52px;
	background: #fefeff;
	display: block;
	margin: 0 0 18px;
	padding: 12px 18px;
	border: 2px solid transparent;
	border-radius: 16px;
	box-shadow: 0px 8px 22px rgba(0, 0, 0, 0.12);
	font-size: 1rem;
}
.button{
	width: 100%;
	height: 52px;
	margin: 10px 0 0;
	display: block;
	color: #fff;
	background: #8558c0;
	font-size: 1em;
	font-weight: bold;
	border: none;
	border-radius: 16px;
	transition: .2s ease-in;
	cursor: pointer;
}
.button:hover{
	background: #512d93;
}
.button:focus-visible,
input:focus-visible,
.toggle-input:focus-visible ~ .signup .toggle-label,
.toggle-input:focus-visible ~ .login .toggle-label{
	outline: 3px solid #1d7df2;
	outline-offset: 3px;
}
input:focus-visible{
	border-color: #1d7df2;
	box-shadow: 0 0 0 4px rgba(29, 125, 242, 0.2);
}
.signup .toggle-label{
	margin-bottom: 8px;
}
.login .toggle-label{
	color: #573b8a;
}
.auth-panel-copy{
	max-width: 28ch;
	margin: 0 0 26px;
	color: rgba(47, 29, 85, 0.72);
	font-size: 1rem;
	line-height: 1.45;
}
.auth-tabs{
	display: inline-flex;
	gap: 8px;
	padding: 6px;
	margin-bottom: 18px;
	background: #efe9fb;
	border-radius: 999px;
}
.auth-tab{
	padding: 10px 18px;
	border-radius: 999px;
	font-weight: 700;
	color: #5f4690;
	cursor: pointer;
}
#chk:not(:checked) ~ .signup .auth-tab-signup,
#chk:checked ~ .login .auth-tab-login{
	background: #8558c0;
	color: #fff;
}
#chk:checked ~ .signup{
	display: none;
}
#chk:not(:checked) ~ .login{
	display: none;
}

@media (max-width: 520px) {
	.main{
		padding: 76px 20px 24px;
	}
	.auth-lang-switch{
		right: 14px;
	}
	.auth-tabs{
		width: 100%;
	}
	.auth-tab{
		flex: 1;
		text-align: center;
	}
	.auth-panel-copy{
		max-width: none;
	}
}
