/* Custom Login Styles - Violet Theme */
* {
	box-sizing: border-box;
}

html {
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
	overflow-x: hidden !important;
}

body {
	background-color: #f5f7fa !important;
	font-family: 'Cairo', sans-serif;
	margin: 0 !important;
	padding: 0 !important;
	width: 100vw !important;
	overflow-x: hidden !important;
}

/* Container Layout Fixes */
.container-fluid {
	padding: 0 !important;
	margin: 0 !important;
	max-width: 100vw !important;
	width: 100vw !important;
}

.row {
	margin: 0 !important;
	padding: 0 !important;
	width: 100vw !important;
}

/* Column Fixes */
.col-12, .col-lg-6 {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Login Form Panel */
.login-form-panel {
	padding-left: 15px;
	padding-right: 15px;
}

/* Testimonials Panel */
.testimonials-panel-v2 {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Testimonials Container Styling */
.testimonials-container {
	position: relative;
}

/* Testimonials Scroll Styling */
.testimonials-scroll {
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.1);
}

.testimonials-scroll::-webkit-scrollbar {
	width: 6px;
}

.testimonials-scroll::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.1);
	border-radius: 3px;
}

.testimonials-scroll::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.3);
	border-radius: 3px;
}

.testimonials-scroll::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.5);
}

/* Testimonial Card Styling */
.testimonial-card {
	transition: all 0.3s ease;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
	border-color: rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.15) !important;
}

/* Store Logo Placeholder */
.store-logo-placeholder {
	transition: all 0.3s ease;
	border: 2px solid rgba(255, 255, 255, 0.3);
}

.store-logo-placeholder:hover {
	transform: scale(1.1);
	border-color: rgba(255, 255, 255, 0.5);
}

/* Star Ratings */
.stars {
	font-size: 0.9rem;
	letter-spacing: 2px;
}

.stars .fas {
	text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Testimonial Card Animation */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.testimonial-card {
	animation: fadeInUp 0.6s ease forwards;
	opacity: 0;
}

.testimonial-card:nth-child(1) { animation-delay: 0.1s; }
.testimonial-card:nth-child(2) { animation-delay: 0.2s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }
.testimonial-card:nth-child(4) { animation-delay: 0.4s; }
.testimonial-card:nth-child(5) { animation-delay: 0.5s; }
.testimonial-card:nth-child(6) { animation-delay: 0.6s; }
.testimonial-card:nth-child(7) { animation-delay: 0.7s; }
.testimonial-card:nth-child(8) { animation-delay: 0.8s; }
.testimonial-card:nth-child(9) { animation-delay: 0.9s; }
.testimonial-card:nth-child(10) { animation-delay: 1.0s; }
.testimonial-card:nth-child(11) { animation-delay: 1.1s; }

/* Login Card Enhancement */
.login-card {
	width: 100%;
}

.card {
	border: none;
	border-radius: 1rem;
	box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	background: white !important;
	overflow: hidden;
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15) !important;
}

/* Form Controls */
.form-control {
	border-radius: 0.5rem;
	border: 2px solid #e9ecef;
	padding: 1rem 1.25rem;
	font-size: 1rem;
	transition: all 0.3s ease;
	background-color: #f8f9fa !important;
	color: #495057;
	font-weight: 500;
}

.form-control:focus {
	border-color: #7c3aed !important;
	box-shadow: 0 0 0 0.25rem rgba(124, 58, 237, 0.15) !important;
	background-color: white !important;
	color: #495057;
	transform: translateY(-2px);
}

.form-control::placeholder {
	color: #6c757d;
	opacity: 0.6;
}

.form-control.is-invalid {
	border-color: #dc3545;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right calc(0.375em + 0.1875rem) center;
	background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.invalid-feedback {
	font-size: 0.875rem;
	color: #dc3545;
}

/* Primary Button - Violet Color */
button[type="submit"], .btn-login, .btn-primary, button.btn-primary {
	background-color: #7c3aed !important;
	background: #7c3aed !important;
	background-image: none !important;
	border: 1px solid #7c3aed !important;
	border-color: #7c3aed !important;
	color: white !important;
	padding: 1rem 2rem;
	font-weight: bold;
	border-radius: 0.5rem;
	transition: all 0.3s ease;
	font-size: 1.1rem;
	letter-spacing: 0.5px;
	position: relative;
	overflow: hidden;
	box-shadow: 0 0.25rem 0.75rem rgba(124, 58, 237, 0.3) !important;
}

.btn-login::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
	transition: left 0.5s;
}

button[type="submit"]:hover, .btn-login:hover, .btn-primary:hover, button.btn-primary:hover {
	background-color: #6d28d9 !important;
	background: #6d28d9 !important;
	background-image: none !important;
	border-color: #6d28d9 !important;
	transform: translateY(-3px);
	box-shadow: 0 0.5rem 1.5rem rgba(124, 58, 237, 0.5) !important;
}

.btn-login:hover::before {
	left: 100%;
}

.btn-primary:focus, .btn-login:focus {
	background-color: #7c3aed !important;
	background: #7c3aed !important;
	border-color: #7c3aed !important;
	box-shadow: 0 0 0 0.25rem rgba(124, 58, 237, 0.25) !important;
}

.btn-primary:active {
	transform: translateY(-1px) !important;
}

/* Alert Styling */
.alert-danger {
	background-color: #f8d7da;
	border-color: #f5c6cb;
	color: #721c24;
	border-radius: 0.5rem;
	border: none;
}

/* Form Check Styling */
.form-check {
	margin-bottom: 0;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.form-check-input {
	width: 1.25rem;
	height: 1.25rem;
	margin: 0 !important;
	border: 2px solid #dee2e6;
	border-radius: 0.25rem;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.form-check-input:checked {
	background-color: #7c3aed;
	border-color: #7c3aed;
}

.form-check-input:focus {
	border-color: #7c3aed;
	box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25);
}

.form-check-label {
	color: #495057;
	font-weight: 500;
	margin: 0 !important;
	cursor: pointer;
	line-height: 1.25rem;
}

/* RTL Form Check Styling */
.form-check-rtl {
	margin-bottom: 0;
	display: flex;
	align-items: center;
	direction: rtl;
	gap: 1rem;
}

.form-check-input-rtl {
	width: 1.25rem;
	height: 1.25rem;
	margin: 0 !important;
	border: 2px solid #dee2e6;
	border-radius: 0.25rem;
	transition: all 0.3s ease;
	flex-shrink: 0;
}

.form-check-input-rtl:checked {
	background-color: #7c3aed;
	border-color: #7c3aed;
}

.form-check-input-rtl:focus {
	border-color: #7c3aed;
	box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.25);
}

.form-check-label-rtl {
	color: #495057;
	font-weight: 500;
	margin: 0 !important;
	cursor: pointer;
	line-height: 1.25rem;
	user-select: none;
}

/* Forgot Password Link */
.forgot-password-link {
	color: #7c3aed !important;
	font-weight: 500;
	transition: all 0.3s ease;
}

.forgot-password-link:hover {
	color: #6d28d9 !important;
	text-decoration: underline !important;
}

/* Link Styling */
a {
	color: #3b7ddd !important;
	text-decoration: none !important;
	transition: color 0.2s ease;
}

a:hover {
	color: #2e6cc7 !important;
	text-decoration: underline !important;
}

/* Dashboard Title Styling */
h1, h2, h3, h4, h5, h6 {
	color: rgba(29, 29, 65, 1);
	font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
	.brand-title {
		font-size: 2rem !important;
	}

	.card-body {
		padding: 2rem !important;
	}

	.btn-primary {
		padding: 0.875rem 1.5rem;
		font-size: 1rem;
	}
}

@media (max-width: 767.98px) {
	.brand-title {
		font-size: 1.75rem !important;
	}

	.card-body {
		padding: 1.5rem !important;
	}

	.form-control {
		padding: 0.875rem 1rem;
	}
}

/* Brand Title Styling */
.brand-title {
	color: rgba(29, 29, 65, 1) !important;
}

/* ================================= */
/* Enhanced Testimonials V2 Styles */
/* ================================= */

/* Main Panel */
.testimonials-panel-v2 {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	position: relative;
	overflow: hidden;
}

.testimonials-panel-v2::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
	pointer-events: none;
}

/* Container */
.testimonials-container-v2 {
	max-width: 500px;
	padding: 2rem;
	position: relative;
	z-index: 1;
}

/* Header Section */
.testimonials-header-v2 {
	text-align: center;
	margin-bottom: 2rem;
}

.header-icon-v2 {
	width: 60px;
	height: 60px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	border: 2px solid rgba(255, 255, 255, 0.3);
}

.header-icon-v2 i {
	font-size: 1.5rem;
	color: white;
}

.testimonials-title-v2 {
	color: white;
	font-weight: bold;
	font-size: 2rem;
	margin-bottom: 0.5rem;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.testimonials-subtitle-v2 {
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.1rem;
	margin-bottom: 1.5rem;
}

/* Stats Section */
.testimonials-stats-v2 {
	display: flex;
	justify-content: center;
	gap: 2rem;
	margin-bottom: 1rem;
}

.stat-item-v2 {
	text-align: center;
}

.stat-number-v2 {
	display: block;
	color: white;
	font-size: 1.8rem;
	font-weight: bold;
	line-height: 1;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.stat-label-v2 {
	display: block;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.9rem;
	margin-top: 0.25rem;
}

/* Carousel Container */
.testimonials-carousel-v2 {
	position: relative;
	margin-bottom: 2rem;
}

.testimonial-slides-v2 {
	position: relative;
	height: 300px;
	overflow: hidden;
	border-radius: 1rem;
}

/* Individual Slides */
.testimonial-slide-v2 {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	transform: translateX(100%);
	transition: all 0.5s ease;
}

.testimonial-slide-v2.active {
	opacity: 1;
	transform: translateX(0);
}

/* Testimonial Cards */
.testimonial-card-v2 {
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(10px);
	border-radius: 1rem;
	padding: 2rem;
	border: 1px solid rgba(255, 255, 255, 0.2);
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: all 0.3s ease;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-card-v2:hover {
	transform: translateY(-5px);
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
	border-color: rgba(255, 255, 255, 0.3);
	background: rgba(255, 255, 255, 0.2);
}

/* Content Section */
.testimonial-content-v2 {
	flex-grow: 1;
	margin-bottom: 1.5rem;
}

.quote-icon-v2 {
	text-align: right;
	margin-bottom: 1rem;
}

.quote-icon-v2 i {
	font-size: 1.5rem;
	color: rgba(255, 255, 255, 0.6);
}

.testimonial-text-v2 {
	color: white;
	font-size: 1.1rem;
	line-height: 1.6;
	margin-bottom: 1rem;
	text-align: right;
	font-weight: 500;
}

/* Rating Section */
.testimonial-rating-v2 {
	text-align: right;
}

.stars-v2 {
	color: #ffd700;
	font-size: 1rem;
	letter-spacing: 2px;
}

.stars-v2 .fas {
	text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Author Section */
.testimonial-author-v2 {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.author-avatar-v2 {
	width: 50px;
	height: 50px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid rgba(255, 255, 255, 0.3);
	flex-shrink: 0;
	transition: all 0.3s ease;
}

.author-avatar-v2:hover {
	transform: scale(1.1);
	border-color: rgba(255, 255, 255, 0.5);
}

.author-avatar-v2 i {
	color: white;
	font-size: 1.2rem;
}

.author-info-v2 {
	flex-grow: 1;
}

.author-name-v2 {
	color: white;
	font-weight: bold;
	margin: 0;
	font-size: 1.1rem;
}

.author-title-v2 {
	color: rgba(255, 255, 255, 0.8);
	margin: 0;
	font-size: 0.9rem;
}

/* Navigation */
.testimonials-navigation-v2 {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 1.5rem;
}

/* Navigation Dots */
.nav-dots-v2 {
	display: flex;
	gap: 0.5rem;
}

.nav-dot-v2 {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.nav-dot-v2.active {
	background: white;
	border-color: rgba(255, 255, 255, 0.5);
	transform: scale(1.2);
}

.nav-dot-v2:hover {
	background: rgba(255, 255, 255, 0.7);
	transform: scale(1.1);
}

/* Navigation Arrows */
.nav-arrows-v2 {
	display: flex;
	gap: 0.5rem;
}

.nav-arrow-v2 {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: white;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	font-size: 0.9rem;
}

.nav-arrow-v2:hover {
	background: rgba(255, 255, 255, 0.3);
	border-color: rgba(255, 255, 255, 0.5);
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Trust Indicators */
.trust-indicators-v2 {
	display: flex;
	justify-content: center;
	gap: 2rem;
	flex-wrap: wrap;
}

.trust-item-v2 {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.9rem;
	font-weight: 500;
}

.trust-item-v2 i {
	color: rgba(255, 255, 255, 0.8);
	font-size: 1rem;
}

/* OAuth Login Section */
.oauth-login-section {
	margin-top: 24px;
}

.oauth-divider {
	display: flex;
	align-items: center;
	text-align: center;
	margin: 20px 0;
}

.oauth-divider::before,
.oauth-divider::after {
	content: "";
	flex: 1;
	border-bottom: 1px solid #dee2e6;
}

.oauth-divider span {
	padding: 0 16px;
	color: #6c757d;
	font-size: 14px;
	font-weight: 500;
}

.oauth-buttons {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.btn-oauth {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 20px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	text-decoration: none !important;
	transition: all 0.3s ease;
	border: none;
	cursor: pointer;
}

.btn-oauth:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	text-decoration: none !important;
}

.oauth-logo {
	width: 22px;
	height: 22px;
	object-fit: contain;
}

/* Salla - Green */
.btn-salla {
	background-color: #004D3D;
	color: white !important;
}

.btn-salla:hover {
	background-color: #003D30;
	color: white !important;
}

/* Zid - Blue */
.btn-zid {
	background-color: #4C6EF5;
	color: white !important;
}

.btn-zid:hover {
	background-color: #3B5BDB;
	color: white !important;
}

/* Animation Effects */
@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(100%);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideInLeft {
	from {
		opacity: 0;
		transform: translateX(-100%);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Login Form Panel Responsive Layout */
@media (max-width: 991.98px) {
	/* When testimonials panel is hidden, center the login form */
	.login-form-panel {
		flex: 0 0 100% !important;
		max-width: 100% !important;
		justify-content: center !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		width: 100vw !important;
	}

	/* Remove any potential left margin/padding issues */
	.container-fluid {
		padding-left: 0 !important;
		padding-right: 0 !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		width: 100vw !important;
		max-width: 100vw !important;
	}

	.row {
		margin-left: 0 !important;
		margin-right: 0 !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
		width: 100vw !important;
	}
}

/* Responsive Design */
@media (max-width: 991.98px) {
	.testimonials-container-v2 {
		max-width: 400px;
		padding: 1.5rem;
	}

	.testimonials-title-v2 {
		font-size: 1.75rem;
	}

	.testimonials-stats-v2 {
		gap: 1.5rem;
	}

	.testimonial-slides-v2 {
		height: 280px;
	}

	.testimonial-card-v2 {
		padding: 1.5rem;
	}
}

@media (max-width: 576px) {
	.btn-oauth {
		padding: 10px 16px;
		font-size: 14px;
	}

	.oauth-logo {
		width: 20px;
		height: 20px;
	}
}
