

#login-box * {
	/* font-family: "Jana"; */
}



/*=================ANIMATION=================*/
@-moz-keyframes login_spinner {from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@-webkit-keyframes login_spinner {from{transform:rotate(0deg)}to{transform:rotate(360deg)}}
@keyframes login_spinner {from{transform:rotate(0deg)}to{transform:rotate(360deg)}}



/*=================GLOBAL=================*/
#login-box .popup-closer,
#login-box .popup-close-btn {
	display: none !important;
}
#login-box.popup .popup-closer,
#login-box.popup .popup-close-btn {
	display: flex !important;
}
#login-box.popup {
	position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
	display: flex;
	flex-direction: column;
    justify-content: center;
    align-items: center;
	z-index: 9999999999;
	visibility: hidden;
	opacity: 0;
	transition: 0.3s all;
}
#login-box.popup.active {
	visibility: visible;
	opacity: 1;
}
#login-box .popup-closer {
	position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #0009;
    cursor: pointer;
}
#login-box .popup-close-btn {
	position: absolute;
    top: 10px;
    left: 10px;
    bottom: auto;
    right: auto;
    width: 30px;
    height: 30px;
	padding: 9px;
    background-color: #eee;
    color: #888;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    cursor: pointer;
}
#login-box .popup-close-btn::before {
	content: "";
	display: inline-block;
	width: 100%;
	height: 100%;
	-webkit-mask-image: url("cross.svg");
    mask-image: url("cross.svg");
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    background-color: #777;
}
#login-box.popup .inner {
	width: 360px;
    height: auto;
    background-color: #fff;
    padding: 0 50px 50px;
    border-radius: 5px;
    z-index: 2;
    box-shadow: 0 0 20px -5px #0002;
	position: relative;
	transition: all 0.3s;
	opacity: 0;
	top: -100px;
}
#login-box.popup.active .inner {
	opacity: 1;
	top: 0;
}
/*------------------------------------*/
.grecaptcha-badge {
	display: none !important;
}
#login-box {
	width: 100%;
	position: relative;
}
#login-box .inner {
	width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}
#login-box #login-error {
	display: none;
	font-size: 14px;
    font-weight: bold;
    color: red;
}
#login-box.error #login-error {
	display: flex;
}
#login-box #mobile-form,
#login-box #otp-form {
	display: none;
	width: 100%;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	gap: 0;
	margin: 0;
}
#login-box .resend-code {
	font-size: 15px;
    width: max-content;
    height: 30px;
    justify-content: center;
    align-items: center;
	gap: 10px;
    color: #000;
    font-weight: 700;
	cursor: not-allowed;
	pointer-events: none !important;
    display: none;
}
#login-box .resend-code::before,
#login-box .resend-code::after {
	font-size: 13px;
    font-weight: 400;
    color: #aaa;
}
#login-box .resend-code::before {
	content: "ارسال مجدد کد پس از";
}
#login-box .resend-code::after {
	content: "ثانیه";
}
#login-box .resend-code.active {
    font-weight: 400;
	cursor: pointer;
	pointer-events: unset !important;
}
#login-box.resend-loading .resend-code::before,
#login-box .resend-code.active::before,
#login-box .resend-code.active::after {
	content: "" !important;
	display: none !important;
}
#login-box.resend-loading .resend-code {
	font-size: 0 !important;
	color: #0000 !important;
	pointer-events: none !important;
}
#login-box.resend-error .resend-code::before,
#login-box.resend-loading .resend-code::after {
	content: "" !important;
	display: flex !important;
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
	width: 20px;
    height: 20px;
}
#login-box.resend-error .resend-code::before {
    -webkit-mask-image: url("error.svg");
    mask-image: url("error.svg");
    background-color: red;
}
#login-box.resend-loading .resend-code::after {
    -webkit-mask-image: url("spinner.svg");
    mask-image: url("spinner.svg");
    background-color: #999;
    animation: login_spinner 2s infinite;
}
#login-box[data-step="1"] #otp-form,
#login-box[data-step="2"] #mobile-form {
	display: none;
}
#login-box[data-step="1"] #mobile-form,
#login-box[data-step="2"] #otp-form,
#login-box[data-step="2"] .resend-code {
	display: flex !important;
}
#login-box .logo {
	width: 120px;
    height: auto;
}
#login-box .title {
	font-size: 15px;
    color: #aaa;
}
#login-box .input {
	height: 60px;
    width: 300px;
    text-align: center;
    direction: ltr;
    letter-spacing: 5px;
    /* font-family: var(--font-family); */
    font-weight: 700;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 10px 0 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    outline: 2px solid #0002;
    outline-offset: -2px;
    background-color: #fff;
    border-radius: 15px;
    font-size: 25px;
	color: #000;
}
#login-box .input::placeholder {
    /* font-family: var(--font-family); */
	color: #aaa;
    font-weight: 400;
}
#login-box .action {
	color: #fff;
    border: none;
    box-shadow: none;
    outline: 2px solid #0002;
    outline-offset: -2px;
    border-radius: 10px;
    /* font-family: var(--font-family); */
    cursor: pointer;
	padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
	background-color: #EF394E;
}
#login-box .error {
	font-size: 13px;
    color: #fff;
    background-color: red;
    padding: 0 20px;
    border-radius: 100px;
	margin-top: 5px;
    display: none;
}
#login-box .error.active {
	display: flex;
}
#login-box .spinner {
	color: #0000;
	background-color: #0000;
	position: relative;
	margin-top: 0;
}
#login-box[data-step] .spinner {
	display: none;
}
#login-box .spinner::after {
	content: "";
    -webkit-mask-image: url("spinner.svg");
    mask-image: url("spinner.svg");
    mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    background-color: #EF394E;
    animation: login_spinner 2s infinite;
	width: 40px;
    height: 40px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}
#login-box.loading .spinner {
	display: flex !important;
}
#login-box .policy {
	width: 270px;
	font-size: 13px;
    text-align: center;
    line-height: 1.7em;
	font-weight: 400;
	color: #444;
}
#login-box .policy a {
	color: dodgerblue;
	font-weight: 700;
}
#login-box .change-phone {
	width: 100%;
	font-size: 14px;
    text-align: center;
    line-height: 1.7em;
	font-weight: 400;
	color: dodgerblue;
	cursor: pointer;
}
#login-box.loading .resend-code,
#login-box.loading .action {
	display: none !important;
}
#login-box .logo,
#login-box .title,
#login-box .policy,
#login-box .change-phone,
#login-box .input,
#login-box .action,
#login-box[data-step="2"] .resend-code,
#login-box[data-step] .spinner,
#login-box[data-step] #login-error {
	margin-top: 25px;
}
#login-box .action,
#login-box .spinner {
    height: 40px;
    width: 150px;
}
#login-success-hint {
	position: fixed;
    top: 0;
    bottom: auto;
    right: auto;
    left: 0;
    width: 100%;
    max-width: 100%;
    padding: 10px 20px;
    background-color: limegreen;
    color: #fff;
    border-bottom: 2px solid #fff9;
    box-shadow: 0 0 20px -5px #0007;
    text-align: center;
    text-shadow: 0 0 3px #000;
    min-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}


@media only screen and(max-width: 767px) {
	#login-box .logo,
	#login-box .title,
	#login-box .input,
	#login-box .action,
	#login-box[data-step="2"] .resend-code,
	#login-box[data-step] .spinner,
	#login-box[data-step] #login-error {
		margin-top: 15px;
	}
	#login-box .input {
		margin: 7px 0 0 !important;
	}
}
