@font-face {
	font-family:"irsans";
	src: url(irsans.ttf)

}

body {
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
  font-family: "B Koodak";
	background: linear-gradient(to bottom, #0f0c29, #302b63, #24243e);
	background-image: url(../images/reg-back2.jpg);
	
    overflow: auto;  /* اجازه scroll بده به جای shrink */
}
*{
	  font-family: irsans;
}
.main {
	font-family: irsans;
	width: 350px;
	height: 500px;
	overflow: hidden;
	border-radius: 10px;
	box-shadow: 5px 20px 50px #000;
	position: relative;
}

#chk{
	display: none;
}
.signup{
	position: relative;
	width:100%;
	height: 100%;
}
label{
	color: #fff;
	font-size: 2.3em;
	justify-content: center;
	display: flex;
	margin: 50px;
	font-weight: bold;
	cursor: pointer;
	transition: .5s ease-in-out;
}
input{
	width: 60%;
	height: 10px;
	background: #e0dede;
	justify-content: center;
	display: flex;
	margin: 20px auto;
	padding: 12px;
	border: none;
	outline: none;
	border-radius: 5px;
}
button{
	width: 60%;
	height: 40px;
	margin: 10px auto;
	justify-content: center;
	display: block;
	color: #fff;
	background: #573b8a;
	font-size: 1em;
	font-weight: bold;
	margin-top: 30px;
	outline: none;
	border: none;
	border-radius: 5px;
	transition: .2s ease-in;
	cursor: pointer;
}

button:hover{
	background: #6d44b8;
}
.login{
	height: 460px;
	background: #eee;
	border-radius: 60% / 10%;
	transform: translateY(-180px);
	transition: .8s ease-in-out;
}
.login label{
	color: #573b8a;
	transform: scale(.6);
}

#chk:checked ~ .login{
	transform: translateY(-500px);
}
#chk:checked ~ .login label{
	transform: scale(1);	
}
#chk:checked ~ .signup label{
	transform: scale(.6);
}
body {
	font-family: irsans;
}
.back-btn {
    position: absolute;
    top: 20px;
    left: 0px;
    padding: 8px 16px;
    background-color: rgba(87, 59, 138, 0.9);
    color: #fff;
    border: none;
    border-radius: 0px 10px 10px 0px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.3);
    z-index: 10;
	margin: 0px;
	width: 200px;
}

.back-btn:hover {
    background-color: rgba(109, 68, 184, 0.9);
    transform: translateY(-2px);
    box-shadow: 2px 6px 12px rgba(0,0,0,0.4);
}


@media screen and(max-width: 720px) {
  body {
	margin: 0px;
	align-items: flex-start;
	
  }

  .main {
    width: 95%;
    height: auto;      /* قد خودش رو تنظیم کنه */
    min-height: 500px; /* حداقل همون اندازه دسکتاپ */
  }
}
.rep-btn{
	    position: absolute;   /* ثابت بالای فرم */
    top: 80px;
    left: 0px;          /* چون RTL */
    padding: 8px 16px;
    background-color: rgba(151, 111, 69, 0.9);
    color: #fff;
    border: none;
    border-radius: 0px 10px 10px 0px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.3);
    z-index: 10;
	margin: 0px;
	width: 200px;
}