/* Modern Modal Styles */
.modal {
	position: fixed;
	top: 0;
	display: none;
	width: 100%;
	height: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	outline: 0;
	right: 0;
	left: 0;
	z-index: 101;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	background-color: rgba(0, 0, 0, 0.5);
}
.wd-registration-page.woodmart-registration-page {
	ی: ;
	display: none;
}
.fade {
	transition: opacity .15s linear;
}

.modal-dialog {
	position: relative;
	width: auto;
	margin: 1.75rem;
	pointer-events: none;
}

.modal-dialog-centered {
	display: flex;
	align-items: center;
	min-height: calc(100% - 1.75rem*2);
}

@media (min-width: 576px) {
	.modal-dialog {
		max-width: 500px;
		margin-right: auto;
		margin-left: auto;
	}
}

.modal.fade .modal-dialog {
	transition: transform .3s ease-out;
	transform: translate(0, -50px);
}

.modal-content {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	pointer-events: auto;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	background-clip: padding-box;
	outline: 0;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	border-radius: 24px;
	overflow: hidden;
}

.modal-header {
	display: flex;
	flex-shrink: 0;
	align-items: center;
	padding: 15px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	border-top-left-radius: 24px;
	border-top-right-radius: 24px;
	justify-content: space-between;
}

.modal-title {
	line-height: 32px;
	font-size: 1.25rem !important;
	margin: 0;
	color: #fff;
}

.btn-close {
	width: 1em;
	height: 1em;
	padding: .25em .25em;
	color: #fff;
	background: rgba(255, 255, 255, 0.2);
	border: 0;
	border-radius: .375rem;
	opacity: 0.8;
	cursor: pointer;
	transition: all 0.3s ease;
}

.btn-close:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.3);
}

.modal-body {
	position: relative;
	flex: 1 1 auto;
	padding: 15px;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.modal-footer {
	display: flex;
	flex-shrink: 0;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	padding: 15px;
	background-color: rgba(255, 255, 255, 0.05);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	border-bottom-right-radius: 24px;
	border-bottom-left-radius: 24px;
}

/* Login Block Styles */
::selection {
	background: #667eea;
	color: #fff;
}

#reg_phone::placeholder {
	color: rgba(255, 255, 255, 0.5);
	opacity: 1;
}

#reg_phone::-ms-input-placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.login-block {
	max-width: 420px;
	margin: 0 auto;
}

.login-block .wrapper {
	overflow: hidden;
	max-width: 420px;
	background: rgba(255, 255, 255, 0.95);
	padding: 40px;
	border-radius: 24px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	direction: rtl;
	transition: all 0.3s ease;
}

.login-block .wrapper:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.login-block .wrapper .title-text {
	width: 100%;
}

.login-block .wrapper .title {
	width: 100%;
	font-size: 28px;
	font-weight: 700;
	padding-top: 20px;
	text-align: center;
	transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
	margin-bottom: 10px;
	color: #2d3748;
}

.title.login h3 {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 10px;
	color: #2d3748;
}

.title.login p {
	font-size: 14px;
	font-weight: normal;
	margin-bottom: 0;
	color: #718096;
}

.title-text img {
	margin: 0 auto;
	display: block;
	max-width: 100px;
	height: auto;
}

#register_form p {
	text-align: center;
	font-size: 13px;
	padding: 15px 0;
	color: #718096;
	line-height: 1.6;
}

#send_code_res {
	padding: 15px 0;
	float: right;
	width: 100%;
	text-align: center;
	font-size: 13px;
	display: none !important;
}

.login-block .wrapper .slide-controls {
	position: relative;
	display: flex;
	height: 55px;
	width: 100%;
	overflow: hidden;
	margin: 30px 0 10px 0;
	justify-content: space-between;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	background: #f7fafc;
}

.slide-controls .slide {
	height: 100%;
	width: 100%;
	color: #4a5568;
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	line-height: 51px !important;
	cursor: pointer;
	z-index: 1;
	transition: all 0.6s ease;
	padding: 0 !important;
}

.slide-controls label.signup {
	color: #4a5568;
}

.slide-controls .slider-tab {
	position: absolute;
	height: 100%;
	width: 50%;
	left: 0;
	z-index: 0;
	border-radius: 10px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
	transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#login-phone:checked ~ .slider-tab {
	left: 50%;
}

#login-phone:checked ~ label.phone {
	color: #fff;
	cursor: default;
	user-select: none;
}

#login-email:checked ~ label.email {
	color: #fff;
	cursor: default;
	user-select: none;
}

#login-phone:checked ~ label.login {
	color: #4a5568;
}

#login-email:checked ~ label.phone {
	color: #4a5568;
}

#login-email:checked ~ label.email {
	cursor: default;
	user-select: none;
}

.login-block .wrapper .form-container {
	width: 100%;
	overflow: hidden;
}

.form-container .form-inner {
	display: flex;
	width: 100%;
}

.form-container .form-inner form {
	width: 100%;
	transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
	display: flex;
	flex-direction: column;
}

.form-inner form .field {
	width: 100%;
	margin-top: 20px;
	float: right;
}

.rename_number {
	margin: 0 auto;
	display: block;
	text-align: center;
	float: unset !important;
	border: 0;
	padding: 10px;
	background: unset;
	font-size: 15px;
	color: #667eea;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.rename_number:hover {
	color: #764ba2;
	transform: scale(1.05);
}

.form-inner form .field input {
	font-size: 16px;
	transition: all 0.3s ease;
	direction: rtl;
	width: 100%;
	padding: 14px 18px;
	border: 2px solid #e2e8f0;
	outline: none;
	border-radius: 12px;
	font-weight: 600;
	height: auto;
	background: #fff;
	color: #2d3748;
	text-align: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.form-inner form .field input[type="text"] {
	border: 2px solid #48bb78 !important;
	background: #fff !important;
	box-shadow: 0 4px 20px rgba(72, 187, 120, 0.15);
	color: #2d3748 !important;
	border-radius: 12px !important;
}

.login-block input[type="button"] {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	border-radius: 12px !important;
	color: #fff !important;
	font-weight: 700 !important;
	padding: 14px 20px !important;
	border: none !important;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.login-block input[type="button"]:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.login-block input[type="button"]:active {
	transform: translateY(0);
}

.form-inner form .field input:focus {
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-inner form .field input::placeholder {
	color: #a0aec0;
	transition: all 0.3s ease;
}

form .field input:focus::placeholder {
	color: #cbd5e0;
}

.form-inner form .pass-link {
	margin-top: 5px;
}

.form-inner form .signup-link-sp {
	text-align: center;
	margin-top: 30px;
}

.form-inner form .pass-link a,
.form-inner form .signup-link-sp a {
	color: #667eea;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.3s ease;
}

.form-inner form .pass-link a:hover,
.form-inner form .signup-link a:hover {
	color: #764ba2;
	text-decoration: underline;
}

form .btn {
	width: 100%;
	border-radius: 12px;
	position: relative;
	overflow: hidden;
}

.disabled-button {
	background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%) !important;
	pointer-events: none;
	opacity: 0.6;
}

#timer {
	margin: 10px 0;
	color: #667eea;
	font-weight: bold;
	font-size: 18px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

form .btn .btn-layer {
	height: 100%;
	width: 300%;
	position: absolute;
	left: -100%;
	background: linear-gradient(to right, #667eea, #764ba2, #667eea);
	border-radius: 12px;
	transition: all 0.4s ease;
}

.woocommerce form.login,
.woocommerce form.register {
	border: 0 !important;
	padding: 0 !important;
	margin: 0;
	text-align: right;
	border-radius: 12px;
}

form .btn:hover .btn-layer {
	left: 0;
}

form .btn input[type="button"] {
	height: 100%;
	width: 100%;
	z-index: 1;
	position: relative;
}

.backtosite a {
	text-decoration: unset;
	color: #2d3748;
	font-weight: 600;
	transition: all 0.3s ease;
}

.backtosite a:hover {
	color: #667eea;
}

.backtosite {
	margin: 20px 0;
	padding: 12px 25px;
	border-radius: 12px;
	text-align: center;
	background: #f7fafc;
	border: 2px solid #e2e8f0;
	transition: all 0.3s ease;
}

.backtosite:hover {
	background: #fff;
	border-color: #667eea;
}

#login_btn_box {
	padding: 0px !important;
}

#verify_reg_code_field {
	padding: 0 !important;
}

.rp-btn {
	cursor: pointer;
	text-decoration: unset;
}

#rp_number {
	padding: 12px 20px;
	width: 100%;
	text-align: center;
	border-radius: 12px;
	outline: none;
	border: 2px solid #e2e8f0;
	margin-bottom: 20px;
	font-size: 16px;
	transition: all 0.3s ease;
}

#rp_number:focus {
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#rp_send_link {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	padding: 12px 30px;
	border-radius: 12px;
	color: white;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#rp_send_link:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.modal-body {
	text-align: center !important;
}

#send_login_code {
	border: unset;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	padding: 12px 30px;
	border-radius: 12px;
	margin-top: 10px;
	color: white;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

#send_login_code:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.modal-title {
	color: #fff;
}

#loginModal {
	top: 25% !important;
}

.modal-content {
	border-radius: 24px !important;
}

.login-block .wrapper {
	background: rgba(255, 255, 255, 0.95);
	color: #2d3748;
}

#custom-toast {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 9999;
	background: linear-gradient(135deg, #f56565 0%, #c53030 100%);
	color: white;
	padding: 16px 24px;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(245, 101, 101, 0.3);
	font-size: 14px;
	font-weight: 600;
	display: none;
	animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
	from {
		opacity: 0;
		top: 10px;
	}
	to {
		opacity: 1;
		top: 20px;
	}
}

@keyframes fadeout {
	from {
		opacity: 1;
		top: 20px;
	}
	to {
		opacity: 0;
		top: 10px;
	}
}

/* Responsive Design */
@media (max-width: 768px) {
	.login-block .wrapper {
		padding: 30px 20px;
	}
	
	.login-block .wrapper .title {
		font-size: 24px;
	}
	
	.modal-dialog {
		margin: 1rem;
	}
}

/* Loading Animation */
.swal2-spinner {
	border: 4px solid rgba(102, 126, 234, 0.2);
	border-top: 4px solid #667eea;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Additional Modal Styles */
#loginsModal {
	display: none;
}

#loginsModal.show {
	display: block !important;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 999999;
	overflow: auto;
}

#loginsModal .modal-dialog {
	background: transparent;
	border-radius: 24px;
	padding: 0;
	margin: 50px auto;
	max-width: 500px;
	position: relative;
	box-shadow: none;
}

#loginsModal .modal-body {
	padding: 0;
}
            #loginsModal {
                display: none;
            }
            #loginsModal.show {
                display: block !important;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.7);
                z-index: 999999;
                overflow: auto;
            }
            #loginsModal .modal-dialog {
                border-radius: 10px;
                padding: 20px;
                margin: 50px auto;
                max-width: 500px;
                position: relative;
                box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            }
            #loginsModal .modal-body {
                padding: 0;
            }
            @media (max-width: 768px) {
                #loginsModal .modal-dialog {
                    margin: 20px auto;
                    max-width: 90%;
                }
            }
@media (max-width: 768px) {
	#loginsModal .modal-dialog {
		margin: 20px auto;
		max-width: 90%;
	}
}

/* Form Validation Styles */
.form-inner form .field input.error {
	border-color: #f56565 !important;
	animation: shake 0.5s;
}

@keyframes shake {
	0%, 100% { transform: translateX(0); }
	10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
	20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.form-inner form .field input.success {
	border-color: #48bb78 !important;
}

/* Button Ripple Effect */
.btn-ripple {
	position: relative;
	overflow: hidden;
}

.btn-ripple::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.5);
	transform: translate(-50%, -50%);
	transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
	width: 300px;
	height: 300px;
}

/* WooCommerce My Account Page Styles */
.woocommerce-account .login-block {
	margin: 30px auto;
	max-width: 100%;
}

.woocommerce-account .login-block .wrapper {
	max-width: 100%;
}

/* Hide default WooCommerce forms when our form is active */
.vizitor-custom-login-active .woocommerce-form-login,
.vizitor-custom-login-active .woocommerce-form-register {
	display: none !important;
}
