@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');


/* Scrollbar styling for all elements */
::-webkit-scrollbar {
	width: 8px;
	height: 8px;
}

::-webkit-scrollbar-track {
	background: transparent;
	border-radius: 10px;
}

::-webkit-scrollbar-thumb {
	background: linear-gradient(135deg, #3b82f6, #8b5cf6);
	border-radius: 10px;
	transition: all 0.3s ease;
	border: 2px solid transparent;
	background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(135deg, #2563eb, #7c3aed);
	transform: scale(1.1);
}

/* Dark Mode Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar-track {
	background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
	background: linear-gradient(135deg, #60a5fa, #a78bfa);
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(135deg, #3b82f6, #8b5cf6);
}



:root {
	--primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	--secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
	--success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	--glass-bg: rgba(255, 255, 255, 0.25);
	--glass-border: rgba(255, 255, 255, 0.18);
	--shadow-light: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
	--shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.07);
	--text-primary: #2d3748;
	--text-secondary: #4a5568;
	--border-radius: 20px;
	--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables */
[data-theme="dark"] {
	--primary-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
	--secondary-gradient: linear-gradient(135deg, #0f3460 0%, #e94560 100%);
	--success-gradient: linear-gradient(135deg, #16537e 0%, #0f4c75 100%);
	--glass-bg: rgba(255, 255, 255, 0.1);
	--glass-border: rgba(255, 255, 255, 0.1);
	--shadow-light: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
	--shadow-heavy: 0 15px 35px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0, 0, 0, 0.2);
	--text-primary: #ffffff;
	--text-secondary: #cbd5e0;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	background: var(--primary-gradient);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	padding-top: 85px;
	position: relative;
	overflow-x: hidden;
}

/* Animated Background */
body::before {
	content: '';
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background:
		radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
		radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
		radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
	animation: backgroundMove 20s ease-in-out infinite;
	z-index: -1;
}

@keyframes backgroundMove {
	0%, 100% { transform: translateX(0) translateY(0); }
	25% { transform: translateX(-20px) translateY(-10px); }
	50% { transform: translateX(20px) translateY(10px); }
	75% { transform: translateX(-10px) translateY(20px); }
}

/* Floating Elements */
.floating-elements {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 1;
}

.floating-element {
	position: absolute;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
	width: 80px;
	height: 80px;
	top: 10%;
	left: 10%;
	animation-delay: 0s;
}

.floating-element:nth-child(2) {
	width: 60px;
	height: 60px;
	top: 20%;
	right: 10%;
	animation-delay: 2s;
}

.floating-element:nth-child(3) {
	width: 100px;
	height: 100px;
	bottom: 10%;
	left: 15%;
	animation-delay: 4s;
}

@keyframes float {
	0%, 100% { transform: translateY(0px) rotate(0deg); }
	50% { transform: translateY(-20px) rotate(180deg); }
}

/* Main Container */
.auth-container {
	position: relative;
	z-index: 10;
	width: 100%;
	max-width: 450px;
	margin: 0 auto;
}

.auth-card {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
	backdrop-filter: blur(25px);
	-webkit-backdrop-filter: blur(25px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 24px;
	padding: 48px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.06);
	position: relative;
	overflow: hidden;
	animation: slideInUp 0.8s ease-out;
}

.auth-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--primary-gradient), var(--secondary-gradient));
}

@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Header Section */
.auth-header {
	text-align: center;
	margin-bottom: 32px;
	position: relative;
}

.brand-logo {
	width: 70px;
	height: 70px;
	margin: 0 auto 16px;
	background: var(--primary-gradient);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-heavy);
	animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.05); }
	100% { transform: scale(1); }
}

.brand-logo i {
	font-size: 32px;
	color: white;
}

.auth-title {
	font-size: 26px;
	font-weight: 700;
	color: white;
	margin-bottom: 6px;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.auth-subtitle {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.75);
	font-weight: 400;
	line-height: 1.5;
}

/* Form Styles */
.auth-form {
	space-y: 24px;
}

.form-group {
	margin-bottom: 20px;
	position: relative;
}

.form-label {
	display: block;
	font-size: 14px;
	font-weight: 600;
	color: white;
	margin-bottom: 8px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.input-wrapper {
	position: relative;
}

.input-icon {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #a0aec0;
	font-size: 18px;
	transition: var(--transition);
	z-index: 2;
}

.form-input {
	width: 100%;
	padding: 18px 50px 18px 20px;
	font-size: 16px;
	font-weight: 500;
	color: var(--text-primary);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 100%);
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 16px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	backdrop-filter: blur(15px);
	font-family: 'Cairo', sans-serif;
	position: relative;
}

[dir="ltr"] .form-input {
  padding: 18px 20px 18px 50px;
}

.form-input:focus {
	outline: none;
	border-color: rgba(102, 126, 234, 0.6);
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15), 0 0 0 4px rgba(102, 126, 234, 0.1);
	transform: translateY(-3px) scale(1.02);
}

.form-input:focus + .input-icon {
	color: #667eea;
	transform: translateY(-50%) scale(1.1);
}

.form-input::placeholder {
	color: #a0aec0;
	font-weight: 400;
}

/* Password Toggle */
.password-toggle {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #a0aec0;
	cursor: pointer;
	font-size: 18px;
	transition: var(--transition);
	z-index: 2;
}

.password-toggle:hover {
	color: #667eea;
	transform: translateY(-50%) scale(1.1);
}

/* Form Row */
.form-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
}

.checkbox-wrapper {
	display: flex;
	align-items: center;
	gap: 8px;
}

.custom-checkbox {
	position: relative;
	width: 20px;
	height: 20px;
}

.custom-checkbox input {
	opacity: 0;
	position: absolute;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.checkmark {
	position: absolute;
	top: 0;
	left: 0;
	width: 20px;
	height: 20px;
	background: rgba(255, 255, 255, 0.2);
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 4px;
	transition: var(--transition);
}

.custom-checkbox input:checked + .checkmark {
	background: var(--success-gradient);
	border-color: white;
}

.checkmark:after {
	content: "";
	position: absolute;
	display: none;
	left: 4px;
	top: 1px;
	width: 6px;
	height: 10px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.custom-checkbox input:checked + .checkmark:after {
	display: block;
}

.checkbox-label {
	color: rgba(255, 255, 255, 0.9);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.forgot-link {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: var(--transition);
}

.forgot-link:hover {
	color: white;
	text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Zid Guest Info */
.zid-guest-info {
	color: white;
	border-radius: 15px;
	margin: 20px 0;
	animation: slideInDown 0.6s ease-out;
}

.zid-guest-content {
	display: flex;
	align-items: center;
	gap: 15px;
}

.zid-guest-icon {
	background: rgba(255,255,255,0.2);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	flex-shrink: 0;
}

.zid-guest-content i {
	opacity: 0.9;
}

.zid-guest-text h4 {
	margin: 0 0 5px 0;
	font-size: 1.1rem;
	font-weight: 600;
}

.zid-guest-text p {
	margin: 0;
	font-size: 0.9rem;
	opacity: 0.9;
}

/* Submit Button */
.submit-btn {
	width: 100%;
	padding: 18px;
	font-size: 17px;
	font-weight: 700;
	color: white;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	border-radius: 16px;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3);
	font-family: 'Cairo', sans-serif;
}

.submit-btn::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 ease;
}

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

.submit-btn:hover:not(:disabled) {
	transform: translateY(-4px) scale(1.02);
	box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
	transform: translateY(-2px) scale(1.01);
}

.submit-btn:active:not(:disabled) {
	transform: translateY(0);
}

.submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

.btn-loading {
	display: none;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}

.loading-spinner {
	width: 20px;
	height: 20px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 50%;
	border-top-color: white;
	animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

@keyframes slideInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes slideOutUp {
	from {
		opacity: 1;
		transform: translateY(0);
	}
	to {
		opacity: 0;
		transform: translateY(-20px);
	}
}

/* Footer */
.auth-footer {
	text-align: center;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-text {
	color: rgba(255, 255, 255, 0.7);
	font-size: 13px;
	margin-bottom: 10px;
}

.footer-link {
	color: white;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	font-weight: 600;
	transition: var(--transition);
}

.footer-link:hover {
	text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Toast Notifications */
.toast {
	position: fixed;
	top: 20px;
	right: 20px;
	padding: 16px 20px;
	border-radius: 12px;
	color: white;
	font-weight: 600;
	box-shadow: var(--shadow-heavy);
	z-index: 1000;
	opacity: 0;
	transform: translateX(100%);
	transition: var(--transition);
}

.toast.show {
	opacity: 1;
	transform: translateX(0);
}

.toast.success { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.toast.error { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%); }
.toast.warning { background: linear-gradient(135deg, #feca57 0%, #ff9ff3 100%); }
.toast.info { background: linear-gradient(135deg, #54a0ff 0%, #5f27cd 100%); }

/* Countdown */
.countdown {
	text-align: center;
	padding: 16px;
	background: rgba(220, 53, 69, 0.1);
	border: 1px solid rgba(220, 53, 69, 0.3);
	border-radius: 12px;
	margin-bottom: 24px;
	color: #dc3545;
	font-weight: 600;
}

/* Email Verification Message */
.verification-message {
	background: rgba(255, 193, 7, 0.1);
	border: 1px solid rgba(255, 193, 7, 0.3);
	border-radius: 12px;
	padding: 16px;
	margin-bottom: 24px;
	color: #ffc107;
	font-weight: 600;
	text-align: center;
}

/* reCAPTCHA */
.recaptcha-container {
	display: flex;
	justify-content: center;
	margin: 24px 0;
}

/* Responsive Design */
/* Top Logo Styles */
.top-logo {
	position: absolute;
	top: 20px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 1000;
	animation: logoFloat 3s ease-in-out infinite;
}

.logo.mtthemes.dot {
	font-family: 'Pacifico', cursive;
	color: #fff;
	font-size: 1.8rem;
	text-decoration: none;
	transition: all 0.3s ease;
	position: relative;
}

.logo.mtthemes.dot:hover {
	transform: scale(1.05);
	text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.logo.mtthemes.dot:after {
	content: "";
	position: absolute;
	right: -15px;
	background: #fff;
	bottom: 12px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	transition: .5s ease-in-out;
}

@keyframes logoFloat {
	0%, 100% { transform: translateX(-50%) translateY(0px); }
	50% { transform: translateX(-50%) translateY(-5px); }
}

/* Enhanced Auth Card */
.auth-card::before {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	background: linear-gradient(45deg,
		rgba(255, 255, 255, 0.3) 0%,
		rgba(255, 255, 255, 0.1) 25%,
		rgba(255, 255, 255, 0.3) 50%,
		rgba(255, 255, 255, 0.1) 75%,
		rgba(255, 255, 255, 0.3) 100%);
	border-radius: var(--border-radius);
	z-index: -1;
	animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
	0%, 100% { opacity: 0.5; }
	50% { opacity: 1; }
}

/* Enhanced Brand Logo */
.brand-logo {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
	position: relative;
	overflow: hidden;
}

.brand-logo::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
	transform: rotate(45deg);
	animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
	0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
	100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Enhanced Input Focus Effects */
.input-wrapper.focused {
	transform: scale(1.02);
}

.form-input:focus {
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1),
				0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Enhanced Button */
.submit-btn {
	width: 100%;
	padding: 16px;
	font-size: 16px;
	font-weight: 700;
	color: white;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: var(--transition);
	position: relative;
	overflow: hidden;
	box-shadow: var(--shadow-heavy);
	font-family: 'Cairo', sans-serif;
	background-size: 200% 200%;
	animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
	0% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
	100% { background-position: 0% 50%; }
}

.submit-btn:hover:not(:disabled) {
	transform: translateY(-2px);
	background-size: 250% 250%;
	box-shadow: 0 20px 40px rgba(102, 126, 234, 0.4);
}

.submit-btn:active:not(:disabled) {
	transform: translateY(0);
}

.submit-btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
	transform: none;
}

/* Secondary Buttons */
.secondary-btn {
	display: inline-block;
	width: 100%;
	padding: 12px 16px;
	margin: 5px 0;
	font-size: 14px;
	font-weight: 500;
	color: white;
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.06) 100%);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
	transition: var(--transition);
	backdrop-filter: blur(10px);
	font-family: 'Cairo', sans-serif;
	position: relative;
	overflow: hidden;
}

.secondary-btn:hover {
	background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.2) 100%);
	border-color: rgba(255, 255, 255, 0.5);
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
	text-decoration: none;
	color: white;
}

.secondary-btn:active {
	transform: translateY(0);
}

.secondary-btn i {
	margin-left: 8px;
}

/* Theme Toggle Button */
.theme-toggle-container {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 1000;
}
[dir="ltr"] .theme-toggle-container {
    left: 20px;
    right: auto;
}
.theme-toggle-btn {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	border: none;
	background: var(--glass-bg);
	backdrop-filter: blur(10px);
	border: 1px solid var(--glass-border);
	color: var(--text-primary);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	transition: var(--transition);
	box-shadow: var(--shadow-light);
}

.theme-toggle-btn:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-heavy);
	background: rgba(255, 255, 255, 0.3);
}

.theme-toggle-btn:active {
	transform: translateY(0);
}

[data-theme="dark"] .theme-toggle-btn {
	background: rgba(255, 255, 255, 0.1);
	border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .theme-toggle-btn:hover {
	background: rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {



	.auth-card {
		padding: 20px;
		margin: 0 16px;
	}

	.brand-logo {
		width: 60px;
		height: 60px;
	}

	.brand-logo i {
		font-size: 28px;
	}

	.auth-title {
		font-size: 22px;
	}

	.auth-subtitle {
		font-size: 13px;
	}

	.form-input,.form-select {
		padding: 14px 45px 14px 14px!important;
		font-size: 15px;
	}

	.input-icon {
		right: 14px;
		font-size: 16px;
	}

	.secondary-btn {
		padding: 10px 14px;
		font-size: 13px;
	}

	.secondary-btn i {
		margin-left: 6px;
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.auth-card {
		padding: 16px;
		margin: 0 12px;
	}

	.brand-logo {
		width: 55px;
		height: 55px;
	}

	.brand-logo i {
		font-size: 24px;
	}

	.auth-title {
		font-size: 20px;
	}

	.form-input,.form-select {
		padding: 12px 40px 12px 12px!important;
		font-size: 14px;
	}

	.input-icon {
		right: 12px;
		font-size: 14px;
	}

	.secondary-btn i {
		font-size: 12px;
	}
}

@media (max-width: 480px) {
	.auth-card {
		padding: 16px;
	}
}

/* Additional Enhancements */
.floating-element {
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced Toast */
.toast {
	backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Particle Effects */
.auth-container::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image:
		radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
		radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
	background-size: 50px 50px;
	pointer-events: none;
	animation: particleMove 20s linear infinite;
}

@keyframes particleMove {
	0% { transform: translate(0, 0); }
	100% { transform: translate(-50px, -50px); }
}
}

@media (max-width: 480px) {
	body {
		padding: 16px;
	}

	.auth-card {
		padding: 20px;
	}
}
