* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.hide {
	display: none !important;
}

.login-wrapper {
	width: 100%;
	max-width: 1200px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 20px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
	backdrop-filter: blur(10px);
	overflow: hidden;
	display: flex;
	min-height: 600px;
}

.login-left {
	flex: 1;
	padding: 60px 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.login-right {
	flex: 1;
	background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 100%);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	color: white;
	padding: 40px;
	position: relative;
	overflow: hidden;
}

.login-right::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
	animation: rotate 20s linear infinite;
}

@keyframes rotate {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.brand-logo {
	text-align: center;
	margin-bottom: 40px;
}

.brand-logo h1 {
	font-size: 2.5rem;
	font-weight: 700;
	color: #333;
	margin-bottom: 10px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.brand-logo p {
	color: #666;
	font-size: 1.1rem;
}

.login-tabs {
	display: flex;
	background: #f8f9fa;
	border-radius: 15px;
	padding: 5px;
	margin-bottom: 30px;
	box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.tab-button {
	flex: 1;
	padding: 15px 20px;
	border: none;
	background: transparent;
	border-radius: 10px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	color: #666;
	font-size: 1rem;
}

.tab-button.active {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tab-content {
	display: none;
	min-height: 380px;
	position: relative;
}

.tab-content.active {
	display: block;
	animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.form-group {
	margin-bottom: 25px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
	color: #333;
	font-size: 0.95rem;
}

.input-group {
	position: relative;
}

.input-group input {
	width: 100%;
	padding: 15px 20px;
	padding-left: 50px;
	border: 2px solid #e1e5e9;
	border-radius: 12px;
	font-size: 1rem;
	transition: all 0.3s ease;
	background: #fff;
}

.input-group input:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group .input-icon {
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	color: #666;
	font-size: 1.1rem;
}

.password-toggle {
	position: absolute;
	right: 18px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	color: #666;
	font-size: 1.1rem;
}

.login-button {
	width: 100%;
	padding: 16px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	border-radius: 12px;
	font-size: 1.1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	margin-top: 10px;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.login-button:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.login-button:active {
	transform: translateY(0);
}

.form-extras {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 20px 0;
	font-size: 0.9rem;
	min-height: 24px;
}

.form-extras a {
	color: #667eea;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.3s ease;
}

.form-extras a:hover {
	color: #764ba2;
}

.remember-me {
	display: flex;
	align-items: center;
	gap: 8px;
}

.remember-me input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: #667eea;
}

/* Customer tab specific styling */
#customer-tab .form-extras:last-child {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	justify-content: center;
	margin-top: 20px;
	margin-bottom: 0;
}

.promo-content {
	z-index: 10;
	text-align: center;
}

.promo-content h2 {
	font-size: 2.8rem;
	margin-bottom: 20px;
	font-weight: 700;
}

.promo-content p {
	font-size: 1.2rem;
	opacity: 0.9;
	margin-bottom: 30px;
	line-height: 1.6;
}

.promo-features {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
	margin-top: 40px;
}

.feature-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 15px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	backdrop-filter: blur(5px);
}

.feature-icon {
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
}

.stats-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-top: 40px;
}

.stat-item {
	text-align: center;
	padding: 20px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 15px;
	backdrop-filter: blur(5px);
}

.stat-number {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 5px;
}

.stat-label {
	font-size: 0.9rem;
	opacity: 0.8;
}

.alert {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 0.9rem;
	font-weight: 500;
}

.alert-success {
	background: rgba(34, 197, 94, 0.1);
	color: #16a34a;
	border: 1px solid rgba(34, 197, 94, 0.2);
}

.alert-error {
	background: rgba(239, 68, 68, 0.1);
	color: #dc2626;
	border: 1px solid rgba(239, 68, 68, 0.2);
}

.loading {
	opacity: 0.6;
	pointer-events: none;
}

.loading .login-button {
	position: relative;
}

.loading .login-button::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid transparent;
	border-top: 2px solid #fff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
	body {
		padding: 10px;
	}

	.login-wrapper {
		flex-direction: column;
		margin: 10px;
		max-width: 100%;
		min-height: auto;
	}

	.login-left, .login-right {
		flex: none;
		padding: 30px 20px;
	}

	.login-left {
		padding: 40px 30px;
	}

	.login-right {
		order: -1;
		min-height: 200px;
		padding: 30px 20px;
	}

	.tab-content {
		min-height: 320px;
	}

	#customer-tab .form-extras:last-child {
		position: static;
		margin-top: 20px;
	}

	.promo-features {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.stats-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.brand-logo h1 {
		font-size: 2rem;
	}

	.promo-content h2 {
		font-size: 2rem;
	}

	.promo-content p {
		font-size: 1rem;
	}

	.tab-button {
		padding: 12px 15px;
		font-size: 0.9rem;
	}

	.form-extras {
		flex-direction: column;
		gap: 15px;
		text-align: center;
	}
}

@media (max-width: 480px) {
	.login-left {
		padding: 30px 20px;
	}

	.tab-content {
		min-height: 280px;
	}

	.brand-logo h1 {
		font-size: 1.8rem;
	}

	.tab-button {
		padding: 10px 12px;
		font-size: 0.85rem;
	}

	.input-group input {
		padding: 12px 15px;
		padding-left: 45px;
		font-size: 0.95rem;
	}

	.input-group .input-icon {
		left: 15px;
		font-size: 1rem;
	}

	.password-toggle {
		right: 15px;
		font-size: 1rem;
	}

	.login-button {
		padding: 14px;
		font-size: 1rem;
	}

	.promo-content h2 {
		font-size: 1.8rem;
	}

	.feature-item {
		padding: 12px;
		gap: 10px;
	}

	.feature-icon {
		width: 35px;
		height: 35px;
		font-size: 1rem;
	}
}
