*, *::before, *::after {
	box-sizing: border-box;
}

body{
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	font-family: 'Vazirmatn', Tahoma, sans-serif;
	background: linear-gradient(150deg, #00102A 0%, #001F3F 45%, #00496B 100%);
	padding: 20px 12px;
}

.back-home {
	position: fixed;
	top: 18px;
	right: 18px;
	display: block;
	z-index: 10;
}

.back-home img {
	width: 48px;
	height: 48px;
	border-radius: 12px;
	transition: transform 0.3s ease;
}

.back-home:hover img {
	transform: scale(1.08);
}

.main{
	width: 90%;
	max-width: 350px;
	height: clamp(440px, 90vh, 600px);
	background: #ffffff;
	overflow: hidden;
	border-radius: 22px;
	box-shadow: 0 30px 70px rgba(0, 10, 30, 0.45);
}

#chk{
	display: none;
}
.signup{
	position: relative;
	width:100%;
	height: 100%;
    font-family: 'Vazirmatn' ;
	transition: .5s ease-in-out;
}

label{
	color: #001F3F;
	font-size: 2.1em;
	justify-content: center;
	display: flex;
	margin: 40px;
	font-weight: 800;
	cursor: pointer;
	transition: .5s ease-in-out;
    font-family: Vazirmatn;
}

 .signup-logos {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 20px;
        }

        .signup-logos img {
            width: 45px;
            height: 45px;
            object-fit: contain;
        }

input{
	width: 60%;
	background: #f0f4f8;
	justify-content: center;
	display: flex;
	margin: 11px auto;
	padding: 13px 14px;
	border: 1.5px solid transparent;
	outline: none;
	border-radius: 12px;
	font-family:'Vazirmatn' ;
	font-size: 0.95em;
	color: #1A2733;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

input::placeholder {
	color: #8492A6;
	opacity: 1;
}

input:focus{
	background: #fff;
	border-color: #00A8E8;
	box-shadow: 0 0 0 3px rgba(0, 168, 232, 0.18);
}

button{
	width: 60%;
	height: 44px;
	margin: 8px auto;
	justify-content: center;
	display: block;
	color: #fff;
	background: linear-gradient(90deg, #001F3F, #0090CB);
	font-size: 1em;
	font-weight: 700;
	margin-top: 16px;
	outline: none;
	border: none;
	border-radius: 999px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(0, 31, 63, 0.25);
    font-family: 'Vazirmatn';
}
button:hover{
	transform: translateY(-2px);
	box-shadow: 0 16px 32px rgba(0, 31, 63, 0.32);
}
.login{
	background: #f4f7fa;
	border-radius: 60% / 10%;
	transform: translateY(-27.5%);
	transition: .8s ease-in-out;
	text-align: center;
	height:100%;
}
.login label{
	color:#001F3F;
	transform: scale(.6);
}

#chk:checked ~ .login{
	transform: translateY(-100%);
}

#chk:checked ~ .login label{
	transform: scale(1);	
}
#chk:checked ~ .signup label{
	transform: scale(.6);
}
a{
	font-family: 'Vazirmatn';
	font-size: small;
	text-decoration: none;
	color: #0090CB;
	text-align: center;
	font-weight: 600;
}

.password-wrapper {
    position: relative;
    width: 60%;
    margin: 11px auto;
}

.password-wrapper input {
    width: 100%;
    padding: 13px 44px 13px 14px; /* جا برای آیکون سمت راست (RTL) */
    margin: 0;
}

.toggle-password {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    color: #5B6B7C;
    transition: color 0.2s ease, background 0.2s ease;
}

.toggle-password:hover {
    color: #00A8E8;
    background: rgba(0, 168, 232, 0.1);
}

.toggle-password svg {
    width: 18px;
    height: 18px;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 380px) {
    label {
        font-size: 1.9em;
        margin: 35px;
    }
    .password-wrapper,
    input {
        width: 72%;
    }
}

@media (max-height: 680px) {
    label {
        margin: 30px;
    }
    .back-home {
        top: 10px;
        right: 10px;
    }
    .back-home img {
        width: 38px;
        height: 38px;
    }
}