/* Modern Auth Styles - Dark Theme */
:root {
	--marr-primary: #6d5dfc;
	--marr-primary-hover: #5b4ddb;
	--marr-bg: #1e1e2f;
	--marr-card-bg: #2b2b40;
	--marr-text: #ffffff;
	--marr-text-muted: #a0a0b0;
	--marr-border: #3e3e50;
	--marr-input-bg: #1e1e2f;
	--marr-radius: 16px;
	--marr-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

body.login {
	background: var(--marr-bg);
	font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--marr-text);
	display: flex !important;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	margin: 0;
	padding: 20px;
}

body {
	background: var(--marr-bg);
	font-family: 'Outfit', sans-serif;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 20px;
	box-sizing: border-box;
}

.marr-container {
	display: flex;
	width: 100%;
	max-width: 1140px;
	background: var(--marr-card-bg);
	border-radius: var(--marr-radius);
	box-shadow: var(--marr-shadow);
	overflow: hidden;
	min-height: 650px;
}

.marr-panel-left {
	flex: 1;
	background: linear-gradient(135deg, #2a2a40 0%, #1e1e2f 100%), url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
	background-size: cover;
	background-position: center;
	background-blend-mode: overlay;
	color: white;
	padding: 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	position: relative;
	/* box-shadow: inset 0 0 0 1000px rgba(0,0,0,0.2); Optional subtle overlay */
}

.marr-left-content-box {
	background: rgba(255, 255, 255, 0.1);
	padding: 20px 30px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(5px);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	display: inline-block;
	/* Or block, depending on desired width */
}



.marr-panel-left h1 {
	font-size: 2.2rem;
	font-weight: 700;
	margin-bottom: 15px;
	line-height: 1.2;
}

.marr-panel-left p {
	font-size: 1rem;
	opacity: 1;
	font-weight: 500;
	line-height: 1.5;
}

.marr-back-link {
	position: absolute;
	top: 30px;
	left: 30px;
	color: rgba(255, 255, 255, 0.7);
	text-decoration: none;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	padding: 8px 16px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 30px;
	backdrop-filter: blur(5px);
	transition: all 0.2s;
}

.marr-back-link:hover {
	background: rgba(255, 255, 255, 0.2);
	color: white;
}

.marr-panel-right {
	flex: 1;
	padding: 50px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: var(--marr-card-bg);
	position: relative;
	text-align: center;
	/* Center align all text in right panel */
}

.marr-logo {
	display: inline-block;
	/* Changed to inline-block for centering */
	margin-bottom: 5px;
	font-weight: bold;
	font-size: 24px;
	color: var(--marr-text);
	text-decoration: none;
}

.marr-site-title {
	font-size: 2rem;
	font-weight: 700;
	color: var(--marr-text);
	text-decoration: none;
}

.marr-title {
	font-size: 2rem;
	margin-bottom: 10px;
	color: var(--marr-text);
	font-weight: 600;
}

.marr-subtitle {
	color: var(--marr-text-muted);
	margin-bottom: 30px;
	font-size: 0.95rem;
}

/* Updated styling for Register link */
/* Global link style for the container to ensure all links are white */
.marr-container a {
	color: #ffffff !important;
	transition: opacity 0.2s;
}

.marr-container a:hover {
	opacity: 0.8;
}

/* Updated styling for Register link */
.marr-subtitle a {
	color: #ffffff !important;
	text-decoration: underline;
	text-decoration-style: dotted;
	font-weight: 500;
	margin-left: 5px;
}

.marr-subtitle a:hover {
	text-decoration-style: solid;
	opacity: 1;
}

.marr-row {
	display: flex;
	gap: 15px;
	margin-bottom: 20px;
}

.marr-col {
	flex: 1;
	min-width: 0;
	/* Fix flex overflow */
}

/* Compact form groups inside rows */
.marr-row .marr-form-group {
	margin-bottom: 0;
}

.marr-input {
	width: 100%;
	padding: 12px 40px 12px 14px;
	/* Reduced padding */
	background: var(--marr-input-bg);
	border: 1px solid var(--marr-border);
	border-radius: 8px;
	font-size: 0.95rem;
	/* Slightly smaller font */
	color: white;
	transition: border-color 0.2s, box-shadow 0.2s;
	box-sizing: border-box;
}

.marr-form-group {
	margin-bottom: 15px;
	/* Reduced margin */
	position: relative;
	text-align: left;
}

/* Password Toggle Style */
.marr-input-wrapper {
	position: relative;
	width: 100%;
}

.marr-password-toggle {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	opacity: 0.6;
	background: none;
	border: none;
	padding: 0;
	z-index: 2;
	color: var(--marr-text-muted);
	display: flex;
	align-items: center;
	justify-content: center;
}

.marr-password-toggle:hover {
	opacity: 1;
	color: var(--marr-text);
}

/* Restored Styles */
/* Floating Label Styles */
.marr-label {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	padding: 0 4px;
	font-size: 0.95rem;
	color: var(--marr-text-muted);
	pointer-events: none;
	transition: all 0.2s ease;
	z-index: 1;
	display: block;
	/* Always display for floating behavior */
}

/* Floating State (Focus or Has Value) */
.marr-input:focus~.marr-label,
.marr-input:not(:placeholder-shown)~.marr-label {
	top: 0;
	font-size: 0.8rem;
	background: var(--marr-card-bg);
	color: var(--marr-primary);
	border-radius: 4px;
}

/* Specific fix for inputs inside wrappers (Passwords) */
.marr-input-wrapper .marr-label {
	z-index: 3;
	/* Ensure it stays above input but below toggle if needed, actually toggle is z-index 2 */
}

/* Ensure wrapper is relative for positioning */
.marr-input-wrapper {
	position: relative;
	width: 100%;
}

.marr-has-labels .marr-label {
	display: block;
}

.marr-required {
	color: #ff5555;
	margin-left: 4px;
}

.marr-input:focus {
	outline: none;
	border-color: var(--marr-primary);
	box-shadow: 0 0 0 2px rgba(109, 93, 252, 0.2);
}

.marr-input::placeholder {
	color: #6b6b7a;
}

/* Fix for Chrome autofill white background */
.marr-input:-webkit-autofill,
.marr-input:-webkit-autofill:hover,
.marr-input:-webkit-autofill:focus,
.marr-input:-webkit-autofill:active {
	-webkit-box-shadow: 0 0 0 30px var(--marr-input-bg) inset !important;
	-webkit-text-fill-color: white !important;
	transition: background-color 5000s ease-in-out 0s;
}

.marr-btn {
	width: 100%;
	padding: 14px;
	background: var(--marr-primary);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	text-align: center;
	text-decoration: none;
	display: block;
	margin-top: 10px;
}

.marr-btn:hover {
	background: var(--marr-primary-hover);
}

.marr-checkbox-group {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 0.9rem;
	color: var(--marr-text-muted);
}

.marr-checkbox {
	display: flex;
	align-items: center;
	cursor: pointer;
}

.marr-checkbox input {
	appearance: none;
	-webkit-appearance: none;
	width: 20px;
	height: 20px;
	border: 1px solid var(--marr-border);
	border-radius: 6px;
	margin-right: 10px;
	background-color: var(--marr-input-bg);
	cursor: pointer;
	position: relative;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.marr-checkbox input:checked {
	background-color: var(--marr-primary);
	border-color: var(--marr-primary);
}

.marr-checkbox input:checked::after {
	content: '';
	width: 5px;
	height: 10px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	margin-bottom: 2px;
}

.marr-checkbox input:focus {
	box-shadow: 0 0 0 2px rgba(109, 93, 252, 0.2);
	outline: none;
}

/* Updated styling for Forgot Password link */
.marr-checkbox a {
	color: #ffffff !important;
	text-decoration: none;
	margin-left: auto;
}

.marr-checkbox a:hover {
	text-decoration: underline;
}

.marr-divider {
	display: flex;
	align-items: center;
	text-align: center;
	margin: 25px 0;
	color: var(--marr-text-muted);
	font-size: 0.8rem;
}

.marr-divider::before,
.marr-divider::after {
	content: '';
	flex: 1;
	border-bottom: 1px solid var(--marr-border);
}

.marr-divider::before {
	margin-right: 10px;
}

.marr-divider::after {
	margin-left: 10px;
}

.marr-social-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 12px;
	background: transparent;
	border: 1px solid var(--marr-border);
	border-radius: 8px;
	color: var(--marr-text);
	font-size: 0.95rem;
	text-decoration: none;
	transition: background 0.2s;
	margin-bottom: 10px;
}

.marr-social-btn:hover {
	background: rgba(255, 255, 255, 0.05);
}

.marr-social-icon {
	width: 20px;
	height: 20px;
	margin-right: 10px;
}

.marr-social-group {
	display: flex;
	gap: 15px;
}

.marr-alert {
	padding: 12px;
	border-radius: 8px;
	margin-bottom: 20px;
	font-size: 0.9rem;
	text-align: left;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.marr-dismiss-btn {
	cursor: pointer;
	font-size: 1.25rem;
	line-height: 1;
	margin-left: 10px;
	opacity: 0.6;
	padding: 0 4px;
	align-self: flex-start;
}

.marr-dismiss-btn:hover {
	opacity: 1;
}

.marr-alert-error {
	background: rgba(239, 68, 68, 0.1);
	color: #fca5a5;
	border: 1px solid rgba(239, 68, 68, 0.2);
}

.marr-alert-success {
	background: rgba(34, 197, 94, 0.1);
	color: #86efac;
	border: 1px solid rgba(34, 197, 94, 0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.marr-container {
		flex-direction: column;
		min-height: auto;
		max-width: 500px;
	}

	.marr-panel-left {
		padding: 20px;
		text-align: center;
		min-height: 80px;
		justify-content: center;
		align-items: center;
		/* Ensure vertical centering */
	}

	.marr-back-link {
		position: relative;
		top: auto;
		left: auto;
		margin: 0;
	}

	.marr-left-content-box {
		display: none;
	}

	.marr-panel-left h1 {
		font-size: 1.8rem;
	}

	.marr-row {
		flex-direction: column;
		gap: 0;
	}

	.marr-panel-right {
		padding: 20px 30px 30px;
	}
}