/* ===================================
   Custom Login Page Styles
   Modern, Professional Design
   =================================== */

/* Reset and Base Styles */
.custom-login-container * {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* Main Login Container */
.custom-login-container {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	position: relative;
	overflow: hidden;
	padding: 20px;
}

/* Animated Background Pattern */
.custom-login-container::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image:
		radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
		radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
		radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
	animation: backgroundPulse 15s ease-in-out infinite;
	pointer-events: none;
}

@keyframes backgroundPulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.8;
	}
}

/* Login Content Wrapper */
.login-content {
	display: flex;
	max-width: 1200px;
	width: 100%;
	background: white;
	border-radius: 20px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	animation: slideUp 0.6s ease-out;
}

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

/* Login Box (Left Side) */
.login-box {
	flex: 1;
	padding: 60px 50px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

/* Logo Section */
.login-logo-section {
	text-align: center;
	margin-bottom: 40px;
}

.login-logo {
	max-width: 120px;
	height: auto;
	margin-bottom: 20px;
	animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.login-title {
	font-size: 32px;
	font-weight: 700;
	color: #1a202c;
	margin-bottom: 8px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.login-subtitle {
	font-size: 16px;
	color: #718096;
	font-weight: 400;
}

/* Login Form */
.login-form {
	width: 100%;
}

/* Form Message (Error/Success) */
.form-message {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 14px;
	animation: slideDown 0.3s ease-out;
}

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

.form-message.error {
	background-color: #fed7d7;
	color: #c53030;
	border-left: 4px solid #f56565;
}

.form-message.success {
	background-color: #c6f6d5;
	color: #2f855a;
	border-left: 4px solid #48bb78;
}

/* Form Groups */
.form-group {
	margin-bottom: 24px;
}

.form-label {
	display: flex;
	align-items: center;
	font-size: 14px;
	font-weight: 600;
	color: #2d3748;
	margin-bottom: 8px;
}

.label-icon {
	display: inline-flex;
	align-items: center;
	margin-right: 8px;
	color: #667eea;
}

/* Form Controls */
.form-control {
	width: 100%;
	padding: 12px 16px;
	font-size: 15px;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	background-color: #f7fafc;
	color: #2d3748;
	transition: all 0.3s ease;
	font-family: inherit;
}

.form-control:focus {
	outline: none;
	border-color: #667eea;
	background-color: white;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control::placeholder {
	color: #a0aec0;
}

/* Password Input Wrapper */
.password-input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.password-toggle {
	position: absolute;
	right: 12px;
	background: none;
	border: none;
	cursor: pointer;
	color: #718096;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.password-toggle:hover {
	color: #667eea;
}

.password-toggle:focus {
	outline: none;
}

/* Form Options (Remember Me & Forgot Password) */
.form-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 24px;
	font-size: 14px;
}

.remember-me {
	display: flex;
	align-items: center;
}

.remember-me input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin-right: 8px;
	cursor: pointer;
	accent-color: #667eea;
}

.remember-me label {
	color: #4a5568;
	cursor: pointer;
	user-select: none;
}

.forgot-password-link {
	color: #667eea;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s ease;
}

.forgot-password-link:hover {
	color: #764ba2;
	text-decoration: underline;
}

/* Login Button */
.btn-login {
	width: 100%;
	padding: 14px 24px;
	font-size: 16px;
	font-weight: 600;
	color: white;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.3s ease;
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

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

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

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

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

.btn-login:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.button-text {
	display: inline-block;
}

.button-loader {
	display: inline-block;
}

/* Spinner Animation */
.spinner {
	animation: rotate 2s linear infinite;
	width: 24px;
	height: 24px;
}

.spinner .path {
	stroke: white;
	stroke-linecap: round;
	animation: dash 1.5s ease-in-out infinite;
}

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

@keyframes dash {
	0% {
		stroke-dasharray: 1, 150;
		stroke-dashoffset: 0;
	}
	50% {
		stroke-dasharray: 90, 150;
		stroke-dashoffset: -35;
	}
	100% {
		stroke-dasharray: 90, 150;
		stroke-dashoffset: -124;
	}
}

/* Login Footer */
.login-footer {
	margin-top: 32px;
	text-align: center;
}

.signup-text {
	font-size: 14px;
	color: #718096;
	margin-bottom: 20px;
}

.signup-link {
	color: #667eea;
	text-decoration: none;
	font-weight: 600;
	margin-left: 4px;
	transition: color 0.2s ease;
}

.signup-link:hover {
	color: #764ba2;
	text-decoration: underline;
}

/* XenonLabs Footer Branding */
.xenonlabs-footer {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #e2e8f0;
}

.powered-by {
	font-size: 13px;
	color: #718096;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

.xenonlabs-link {
	color: #667eea;
	text-decoration: none;
	font-weight: 600;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
}

.xenonlabs-link:hover {
	color: #764ba2;
	transform: translateY(-1px);
}

.xenonlabs-link strong {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-weight: 700;
}

.copyright {
	font-size: 12px;
	color: #a0aec0;
	margin-top: 8px;
}

/* Side Panel (Right Side) */
.login-side-panel {
	flex: 1;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 60px 50px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	overflow: hidden;
}

.login-side-panel::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: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.side-panel-content {
	position: relative;
	z-index: 1;
}

.side-panel-title {
	font-size: 36px;
	font-weight: 700;
	margin-bottom: 16px;
	line-height: 1.2;
}

.side-panel-text {
	font-size: 18px;
	line-height: 1.6;
	opacity: 0.9;
	margin-bottom: 40px;
}

/* Feature List */
.feature-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.feature-item {
	display: flex;
	align-items: center;
	font-size: 16px;
	gap: 12px;
}

.feature-item svg {
	flex-shrink: 0;
	background: rgba(255, 255, 255, 0.2);
	padding: 4px;
	border-radius: 50%;
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet */
@media (max-width: 992px) {
	.login-box {
		padding: 40px 30px;
	}

	.login-side-panel {
		padding: 40px 30px;
	}

	.side-panel-title {
		font-size: 28px;
	}

	.side-panel-text {
		font-size: 16px;
	}
}

/* Mobile */
@media (max-width: 768px) {
	.custom-login-container {
		padding: 0;
	}

	.login-content {
		flex-direction: column;
		border-radius: 0;
		max-width: 100%;
		min-height: 100vh;
	}

	.login-box {
		padding: 40px 24px;
	}

	.login-side-panel {
		padding: 40px 24px;
		min-height: auto;
	}

	.login-title {
		font-size: 28px;
	}

	.login-subtitle {
		font-size: 14px;
	}

	.side-panel-title {
		font-size: 24px;
	}

	.side-panel-text {
		font-size: 14px;
		margin-bottom: 24px;
	}

	.feature-list {
		gap: 16px;
	}

	.feature-item {
		font-size: 14px;
	}
}

/* Small Mobile */
@media (max-width: 480px) {
	.login-box {
		padding: 30px 20px;
	}

	.login-logo {
		max-width: 100px;
	}

	.login-title {
		font-size: 24px;
	}

	.form-control {
		font-size: 14px;
		padding: 10px 14px;
	}

	.btn-login {
		padding: 12px 20px;
		font-size: 15px;
	}

	.form-options {
		flex-direction: column;
		gap: 12px;
		align-items: flex-start;
	}
}

/* Print Styles */
@media print {
	.custom-login-container {
		display: none;
	}
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	.form-control {
		border-width: 3px;
	}

	.btn-login {
		border: 3px solid white;
	}
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
	/* Add dark mode styles if needed */
}

/* Focus Visible Support */
.form-control:focus-visible,
.btn-login:focus-visible,
.password-toggle:focus-visible {
	outline: 3px solid #667eea;
	outline-offset: 2px;
}
