/* ============================================
   Modern Split-Screen Login Page Styles
   ============================================ */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
}

/* ============================================
   Main Container - Split Screen Layout
   ============================================ */

.login-container {
	display: flex;
	min-height: 100vh;
	width: 100%;
}

/* ============================================
   Left Side - Logo & Branding
   ============================================ */

.login-left {
	flex: 1;
	background-image: url('../images/theme.png');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	position: relative;
	overflow: hidden;
}

/* Overlay for better logo visibility */
.login-left::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	/* background: linear-gradient(135deg, rgba(255, 159, 67, 0.85) 0%, rgba(230, 126, 34, 0.85) 100%); */
	z-index: 1;
}

.logo-section {
	position: relative;
	z-index: 2;
	text-align: center;
	animation: fadeInUp 0.8s ease-out;
}

.brand-logo {
	max-width: 280px;
	height: auto;
	filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
	animation: float 3s ease-in-out infinite;
}

.brand-title {
	font-size: 3.5rem;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 20px;
	text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	letter-spacing: -1px;
}

.brand-tagline {
	font-size: 1.25rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.95);
	margin-top: 20px;
	letter-spacing: 0.5px;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Right Side - Login Form
   ============================================ */

.login-right {
	flex: 1;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	position: relative;
}

.login-form-wrapper {
	width: 100%;
	max-width: 460px;
	animation: fadeIn 0.8s ease-out;
}

.login-header {
	margin-bottom: 40px;
}

.login-title {
	font-size: 2rem;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 10px;
	letter-spacing: -0.5px;
}

.login-subtitle {
	font-size: 1rem;
	font-weight: 400;
	color: #6b7280;
	margin: 0;
}

/* ============================================
   Form Styles
   ============================================ */

.login-form {
	margin-bottom: 30px;
}

.form-group-modern {
	margin-bottom: 24px;
}

.form-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 600;
	color: #374151;
	margin-bottom: 8px;
	letter-spacing: 0.2px;
}

.form-input {
	width: 100%;
	padding: 14px 16px;
	font-size: 1rem;
	font-weight: 400;
	color: #1f2937;
	background: #f9fafb;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	transition: all 0.3s ease;
	outline: none;
}

.form-input::placeholder {
	color: #9ca3af;
}

.form-input:focus {
	background: #ffffff;
	border-color: #ff9f43;
	box-shadow: 0 0 0 4px rgba(255, 159, 67, 0.1);
}

.form-input:hover {
	border-color: #d1d5db;
}

/* Password Field with Toggle */
.password-wrapper {
	position: relative;
}

.password-wrapper .form-input {
	padding-right: 50px;
}

.password-toggle {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	color: #9ca3af;
	transition: color 0.3s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.password-toggle:hover {
	color: #ff9f43;
}

.eye-icon {
	width: 20px;
	height: 20px;
}

/* ============================================
   Form Options (Remember Me & Forgot Password)
   ============================================ */

.form-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 28px;
}

.remember-me {
	display: flex;
	align-items: center;
	cursor: pointer;
	user-select: none;
}

.remember-me input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-right: 8px;
	cursor: pointer;
	accent-color: #ff9f43;
}

.remember-me span {
	font-size: 0.875rem;
	color: #6b7280;
	font-weight: 500;
}

.forgot-link {
	font-size: 0.875rem;
	font-weight: 600;
	color: #ff9f43;
	text-decoration: none;
	transition: color 0.3s ease;
}

.forgot-link:hover {
	color: #e67e22;
	text-decoration: underline;
}

/* ============================================
   Login Button
   ============================================ */

.btn-login {
	width: 100%;
	padding: 16px 24px;
	font-size: 1rem;
	font-weight: 600;
	color: #ffffff;
	background: linear-gradient(135deg, #ff9f43 0%, #e67e22 100%);
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 14px rgba(255, 159, 67, 0.3);
	letter-spacing: 0.5px;
}

.btn-login:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255, 159, 67, 0.4);
}

.btn-login:active {
	transform: translateY(0);
	box-shadow: 0 2px 8px rgba(255, 159, 67, 0.3);
}

/* ============================================
   Demo Buttons
   ============================================ */

.demo-buttons {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 1px solid #e5e7eb;
}

.demo-label {
	font-size: 0.875rem;
	font-weight: 600;
	color: #6b7280;
	margin-bottom: 12px;
	text-align: center;
}

.demo-btn-group {
	display: flex;
	gap: 10px;
	justify-content: center;
}

.btn-demo {
	padding: 10px 20px;
	font-size: 0.875rem;
	font-weight: 600;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-demo.admin-btn {
	background: linear-gradient(135deg, #ff9f43 0%, #e67e22 100%);
}

.btn-demo.staff-btn {
	background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.btn-demo.customer-btn {
	background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.btn-demo:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-demo:active {
	transform: translateY(0);
}

/* ============================================
   Register Section
   ============================================ */

.register-section {
	margin-top: 30px;
	text-align: center;
}

.register-section p {
	font-size: 0.875rem;
	color: #6b7280;
	margin: 0;
}

.register-link {
	font-weight: 600;
	color: #ff9f43;
	text-decoration: none;
	transition: color 0.3s ease;
}

.register-link:hover {
	color: #e67e22;
	text-decoration: underline;
}

/* ============================================
   Copyrights
   ============================================ */

.copyrights {
	margin-top: 40px;
	text-align: center;
}

.copyrights p {
	font-size: 0.75rem;
	color: #9ca3af;
	margin: 0;
}

.developer {
	font-weight: 600;
	color: #6b7280;
}

/* ============================================
   Alert Messages
   ============================================ */

.alert {
	padding: 14px 18px;
	border-radius: 10px;
	margin-bottom: 20px;
	font-size: 0.875rem;
	font-weight: 500;
	position: relative;
}

.alert-success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #6ee7b7;
}

.alert-danger {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

.alert .close {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	font-size: 1.25rem;
	cursor: pointer;
	color: inherit;
	opacity: 0.6;
	transition: opacity 0.3s ease;
}

.alert .close:hover {
	opacity: 1;
}

.error-message {
	display: block;
	font-size: 0.75rem;
	color: #dc2626;
	margin-top: 6px;
	font-weight: 500;
}

/* ============================================
   Dark Mode Styles
   ============================================ */

.dark-mode .login-left {
	background-image: url('../images/theme2.png');
}

.dark-mode .login-left::before {
	/* background: linear-gradient(135deg, rgba(255, 159, 67, 0.75) 0%, rgba(230, 126, 34, 0.75) 100%); */
}

.dark-mode .login-right {
	background: #1f2937;
}

.dark-mode .login-title {
	color: #f9fafb;
}

.dark-mode .login-subtitle {
	color: #9ca3af;
}

.dark-mode .form-label {
	color: #e5e7eb;
}

.dark-mode .form-input {
	background: #374151;
	border-color: #4b5563;
	color: #f9fafb;
}

.dark-mode .form-input::placeholder {
	color: #6b7280;
}

.dark-mode .form-input:focus {
	background: #374151;
	border-color: #ff9f43;
}

.dark-mode .form-input:hover {
	border-color: #6b7280;
}

.dark-mode .remember-me span {
	color: #9ca3af;
}

.dark-mode .demo-label {
	color: #9ca3af;
}

.dark-mode .demo-buttons {
	border-top-color: #374151;
}

.dark-mode .register-section p {
	color: #9ca3af;
}

.dark-mode .copyrights p {
	color: #6b7280;
}

.dark-mode .developer {
	color: #9ca3af;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes float {

	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-10px);
	}
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
	.login-left {
		flex: 0.8;
	}

	.login-right {
		flex: 1.2;
	}

	.brand-logo {
		max-width: 220px;
	}

	.brand-title {
		font-size: 2.5rem;
	}
}

@media (max-width: 768px) {
	.login-container {
		flex-direction: column;
	}

	.login-left {
		min-height: 35vh;
		padding: 30px 20px;
	}

	.login-right {
		padding: 40px 20px;
	}

	.brand-logo {
		max-width: 180px;
	}

	.brand-title {
		font-size: 2rem;
	}

	.brand-tagline {
		font-size: 1rem;
	}

	.login-title {
		font-size: 1.75rem;
	}

	.login-form-wrapper {
		max-width: 100%;
	}

	.demo-btn-group {
		flex-direction: column;
	}

	.btn-demo {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.login-left {
		min-height: 30vh;
		padding: 20px;
	}

	.login-right {
		padding: 30px 20px;
	}

	.brand-logo {
		max-width: 140px;
	}

	.brand-title {
		font-size: 1.5rem;
	}

	.brand-tagline {
		font-size: 0.875rem;
	}

	.login-title {
		font-size: 1.5rem;
	}

	.login-subtitle {
		font-size: 0.875rem;
	}

	.form-input {
		padding: 12px 14px;
		font-size: 0.9375rem;
	}

	.btn-login {
		padding: 14px 20px;
	}

	.form-options {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}
}

/* ============================================
   Legacy Support (for old register page)
   ============================================ */

.register-page {
	background: #f5f5f5;
	background-image: url('../images/auth/auth-light.jpg');
	background-size: cover;
	width: 100%;
	min-height: auto;
	padding-bottom: 0;
	margin-left: 0;
}

.dark-mode .register-page {
	background-image: url('../images/auth/auth-dark.jpg');
}

.register-page .form-outer {
	min-height: 100vh;
	max-width: 600px;
	margin: 0 auto;
	padding: 20px 0;
	position: relative;
}

.register-page .form-inner {
	border-radius: 5px;
	padding: 40px 30px;
	background: #FFF;
	box-shadow: 0 0 35px rgba(0, 0, 0, .1);
	margin-bottom: 20px;
	width: 100%;
}

.dark-mode .register-page .form-inner {
	background: #283046;
}