/* Public CSS for Secure Login Suite */

:root {
	--sls-border-radius: 4px;
	--sls-primary-color: #0073aa;
	--sls-primary-hover: #005177;
	--sls-text-color: #333;
	--sls-border: #ccc;
	--sls-bg-color: #fff;
	--sls-error: #d63638;
	--sls-success: #00a32a;
}

.sls-form-container {
	max-width: 400px;
	margin: 0 auto;
	box-sizing: border-box;
}

/* Light / Default Style */
.sls-style-light {
	background: var(--sls-bg-color, #fff);
	padding: 20px;
	border: 1px solid var(--sls-border, #ccc);
	border-radius: var(--sls-border-radius, 4px);
}

/* Theme Compatible Style (No Borders/Backgrounds on container) */
.sls-style-theme-compatible {
	background: transparent;
	padding: 0;
	border: none;
}
.sls-style-theme-compatible .sls-form-group input[type="text"],
.sls-style-theme-compatible .sls-form-group input[type="email"],
.sls-style-theme-compatible .sls-form-group input[type="password"] {
	background: transparent;
}

.sls-form-group {
	margin-bottom: 15px;
}

.sls-form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: 600;
	color: var(--sls-text-color);
}

.sls-form-group input[type="text"],
.sls-form-group input[type="email"],
.sls-form-group input[type="password"] {
	width: 100%;
	padding: 10px;
	border: 1px solid var(--sls-border);
	border-radius: var(--sls-border-radius);
	box-sizing: border-box;
}

.sls-password-wrapper {
	position: relative;
}

.sls-toggle-password {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	color: #666;
}

.sls-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--sls-primary-color);
	color: #fff;
	padding: 10px 20px;
	border: none;
	border-radius: var(--sls-border-radius);
	cursor: pointer;
	font-size: 16px;
	text-decoration: none;
	transition: background 0.3s ease;
	width: 100%;
}

.sls-btn:hover {
	background: var(--sls-primary-hover);
}

.sls-btn-primary {
	background: var(--sls-primary-color);
	color: #fff;
}
.sls-btn-primary:hover {
	background: var(--sls-primary-hover);
}
.sls-btn-secondary {
	background: transparent;
	color: var(--sls-text-color);
	border-color: var(--sls-border-color);
}
.sls-btn-secondary:hover {
	border-color: var(--sls-primary-color);
	color: var(--sls-primary-color);
}

/* Social Buttons */
.sls-social-login {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 20px;
}
.sls-btn-social {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #fff;
	color: #333;
	border-color: var(--sls-border-color);
	font-weight: 500;
	text-decoration: none;
}
.sls-btn-social:hover {
	background: #f9f9f9;
	color: #333;
	border-color: #ccc;
}
.sls-btn-social svg {
	width: 18px;
	height: 18px;
}
.sls-divider {
	display: flex;
	align-items: center;
	text-align: center;
	color: #999;
	margin-bottom: 20px;
	font-size: 13px;
}
.sls-divider::before,
.sls-divider::after {
	content: '';
	flex: 1;
	border-bottom: 1px solid var(--sls-border-color);
}
.sls-divider::before {
	margin-right: .5em;
}
.sls-divider::after {
	margin-left: .5em;
}

.sls-form-messages {
	margin-bottom: 15px;
}

.sls-form-messages .sls-error {
	color: var(--sls-error);
	font-size: 14px;
	margin: 5px 0;
}

.sls-form-messages .sls-success {
	color: var(--sls-success);
	font-size: 14px;
	margin: 5px 0;
}

.sls-form-footer {
	margin-top: 15px;
	text-align: center;
	font-size: 14px;
}

.sls-form-footer a {
	color: var(--sls-primary-color);
	text-decoration: none;
	margin: 0 5px;
}

/* Modals & Sidebars */
.sls-overlay-wrapper {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sls-overlay-wrapper.sls-hidden {
	display: none !important;
}

.sls-overlay-wrapper:not(.sls-hidden) {
	display: flex !important;
}

.sls-overlay-bg {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,0.5);
}

.sls-popup-container {
	position: relative;
	background: #fff;
	padding: 30px;
	border-radius: var(--sls-border-radius);
	max-width: var(--sls-popup-max-width, 450px);
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	z-index: 100000;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	transition: max-width 0.3s ease;
}

.sls-sidebar-container {
	position: absolute;
	top: 0; bottom: 0;
	width: var(--sls-sidebar-width, 380px);
	max-width: 90%;
	background: #fff;
	padding: 30px;
	z-index: 100000;
	overflow-y: auto;
	transition: transform 0.3s ease, width 0.3s ease;
}

.sls-sidebar-right .sls-sidebar-container {
	right: 0;
	transform: translateX(100%);
}
.sls-sidebar-left .sls-sidebar-container {
	left: 0;
	transform: translateX(-100%);
}

.sls-overlay-wrapper:not(.sls-hidden) .sls-sidebar-container {
	transform: translateX(0);
}

.sls-close-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 20px;
	color: #666;
}

.sls-modal-content .sls-form-container {
	border: none;
	padding: 0;
	box-shadow: none;
}

.sls-loader {
	border: 2px solid #f3f3f3;
	border-top: 2px solid #fff;
	border-radius: 50%;
	width: 14px;
	height: 14px;
	animation: spin 1s linear infinite;
	margin-left: 10px;
}

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

.sls-hidden { display: none !important; }

/* Structural Tabs Layout */
.sls-tabs {
	display: flex;
	flex-wrap: wrap;
	border-bottom: 2px solid var(--sls-border);
	margin-bottom: 20px;
}
.sls-tab {
	background: none;
	border: none;
	padding: 12px 20px;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	color: #666;
	margin-bottom: -2px;
	border-bottom: 2px solid transparent;
	transition: color 0.2s ease, border-color 0.2s ease;
}
.sls-tab:hover, .sls-tab:focus {
	color: var(--sls-primary-color);
	outline: none;
}
.sls-tab:focus-visible {
	outline: 2px solid var(--sls-primary-color);
	outline-offset: -2px;
}
.sls-tab.is-active {
	color: var(--sls-primary-color);
	border-bottom-color: var(--sls-primary-color);
}
.sls-auth-wrapper .sls-tab-panels .sls-tab-panel {
	display: none;
}
.sls-auth-wrapper .sls-tab-panels .sls-tab-panel.is-active {
	display: block;
}

/* Side-by-Side Columns Layout */
.sls-split-layout, .sls-layout-columns .sls-split-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}
.sls-split-layout .sls-split-col {
	flex: 1 1 260px;
	min-width: 250px;
}
.sls-split-layout .sls-split-col h2 {
	margin-top: 0;
}

@media (min-width: 769px) {
	.sls-popup-container .sls-layout-columns .sls-split-layout {
		flex-wrap: nowrap;
	}
}

@media (max-width: 768px) {
	.sls-popup-container {
		width: 95%;
		padding: 20px 15px;
	}
	.sls-layout-split .sls-split-col {
		min-width: 100%;
	}
}

/* WooCommerce Overrides container */
.sls-context-woocommerce {
	width: 100%;
}

/* New Social Login Button Design Styles */
.sls-social-login {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
}
/* Widths */
.sls-social-width-full { flex-direction: column; }
.sls-social-width-auto { flex-direction: row; flex-wrap: wrap; }
/* Alignments */
.sls-social-align-center { align-items: center; justify-content: center; }
.sls-social-align-left { align-items: flex-start; justify-content: flex-start; }
.sls-social-align-stretch { align-items: stretch; justify-content: space-between; }
.sls-social-width-auto.sls-social-align-stretch .sls-btn-social { flex: 1; }
/* Sizes */
.sls-social-size-small .sls-btn-social { padding: 6px 12px; font-size: 14px; }
.sls-social-size-small .sls-social-icon { width: 14px; height: 14px; }
.sls-social-size-medium .sls-btn-social { padding: 10px 20px; font-size: 16px; }
.sls-social-size-medium .sls-social-icon { width: 18px; height: 18px; }
.sls-social-size-large .sls-btn-social { padding: 14px 28px; font-size: 18px; }
.sls-social-size-large .sls-social-icon { width: 22px; height: 22px; }

/* Styles */
/* 1. Brand Filled */
.sls-social-style-brand-filled .sls-btn-google { background: #4285F4; color: #fff; border-color: #4285F4; }
.sls-social-style-brand-filled .sls-btn-google:hover, .sls-social-style-brand-filled .sls-btn-google:focus { background: #3367d6; outline: none; }
.sls-social-style-brand-filled .sls-btn-facebook { background: #1877F2; color: #fff; border-color: #1877F2; }
.sls-social-style-brand-filled .sls-btn-facebook:hover, .sls-social-style-brand-filled .sls-btn-facebook:focus { background: #145dbf; outline: none; }
.sls-social-style-brand-filled .sls-btn-x { background: #000; color: #fff; border-color: #000; }
.sls-social-style-brand-filled .sls-btn-x:hover, .sls-social-style-brand-filled .sls-btn-x:focus { background: #333; outline: none; }
.sls-social-style-brand-filled .sls-btn-microsoft { background: #2F2F2F; color: #fff; border-color: #2F2F2F; }
.sls-social-style-brand-filled .sls-btn-microsoft:hover, .sls-social-style-brand-filled .sls-btn-microsoft:focus { background: #4a4a4a; outline: none; }
.sls-social-style-brand-filled .sls-btn-linkedin { background: #0A66C2; color: #fff; border-color: #0A66C2; }
.sls-social-style-brand-filled .sls-btn-linkedin:hover, .sls-social-style-brand-filled .sls-btn-linkedin:focus { background: #084e96; outline: none; }
.sls-social-style-brand-filled .sls-btn-apple { background: #000; color: #fff; border-color: #000; }
.sls-social-style-brand-filled .sls-btn-apple:hover, .sls-social-style-brand-filled .sls-btn-apple:focus { background: #333; outline: none; }
.sls-social-style-brand-filled .sls-social-icon path { fill: #fff; }
.sls-social-style-brand-filled .sls-btn-microsoft .sls-social-icon rect { /* keep brand colors */ }

/* 2. Brand Outline */
.sls-social-style-brand-outline .sls-btn-google { background: #fff; color: #4285F4; border: 1px solid #4285F4; }
.sls-social-style-brand-outline .sls-btn-facebook { background: #fff; color: #1877F2; border: 1px solid #1877F2; }
.sls-social-style-brand-outline .sls-btn-x { background: #fff; color: #000; border: 1px solid #000; }
.sls-social-style-brand-outline .sls-btn-microsoft { background: #fff; color: #2F2F2F; border: 1px solid #2F2F2F; }
.sls-social-style-brand-outline .sls-btn-linkedin { background: #fff; color: #0A66C2; border: 1px solid #0A66C2; }
.sls-social-style-brand-outline .sls-btn-apple { background: #fff; color: #000; border: 1px solid #000; }

/* 3. Neutral Outline (handled by existing generic style, just override borders/colors) */
.sls-social-style-neutral-outline .sls-btn-social { background: transparent; border: 1px solid var(--sls-border); color: var(--sls-text-color); }
.sls-social-style-neutral-outline .sls-btn-social:hover, .sls-social-style-neutral-outline .sls-btn-social:focus { background: #f9f9f9; border-color: #aaa; outline: none; }

/* 4. Compact */
.sls-social-style-compact { flex-direction: row; }
.sls-social-style-compact .sls-btn-social { padding: 6px 12px; font-size: 14px; border: 1px solid var(--sls-border); background: #fff; color: #333; }
.sls-social-style-compact .sls-btn-social:hover, .sls-social-style-compact .sls-btn-social:focus { background: #f0f0f0; outline: none; }

/* 5. Icon Only */
.sls-social-style-icon-only { flex-direction: row; justify-content: center; }
.sls-social-style-icon-only .sls-btn-social { width: 40px; height: 40px; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 1px solid var(--sls-border); background: #fff; }
.sls-social-style-icon-only .sls-btn-social:hover, .sls-social-style-icon-only .sls-btn-social:focus { background: #f0f0f0; outline: none; }

/* Presets */
.sls-style-dark {
	--sls-bg-color: #1a1a1a;
	--sls-text-color: #f0f0f0;
	--sls-border: #333;
	background: var(--sls-bg-color);
	color: var(--sls-text-color);
	padding: 20px;
	border: 1px solid var(--sls-border);
	border-radius: var(--sls-border-radius, 4px);
}
.sls-style-dark input {
	background: #2a2a2a;
	color: #fff;
	border-color: #444;
}

.sls-style-glassmorphism {
	--sls-bg-color: rgba(255, 255, 255, 0.1);
	--sls-text-color: #333;
	--sls-border: rgba(255, 255, 255, 0.2);
	background: var(--sls-bg-color);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	padding: 20px;
	border: 1px solid var(--sls-border);
	border-radius: var(--sls-border-radius, 8px);
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.sls-style-material {
	--sls-bg-color: #fff;
	--sls-border: #e0e0e0;
	background: var(--sls-bg-color);
	padding: 20px;
	border: none;
	border-radius: var(--sls-border-radius, 4px);
	box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16), 0 2px 10px 0 rgba(0,0,0,0.12);
}
.sls-style-material input {
	border: none;
	border-bottom: 1px solid var(--sls-border);
	border-radius: 0;
	padding-left: 0;
	padding-right: 0;
	background: transparent;
}
.sls-style-material input:focus {
	border-bottom: 2px solid var(--sls-primary-color);
	outline: none;
}

/* Split Screen Layout (Branded Left Banner + Form) */
.sls-illustration-area {
	display: none;
}

.sls-layout-split.sls-auth-wrapper {
	display: flex;
	flex-direction: row;
	overflow: hidden;
	padding: 0;
	width: 100%;
	max-width: 100%;
	min-height: 480px;
}

.sls-layout-split .sls-illustration-area {
	display: flex;
	flex: 1 1 45%;
	min-width: 280px;
	background: var(--sls-banner-bg, linear-gradient(135deg, var(--sls-primary-color, #007cba), #0a2540));
	color: var(--sls-banner-text, #ffffff);
	padding: 40px 32px;
	box-sizing: border-box;
	position: relative;
}

.sls-banner-inner {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
	width: 100%;
	gap: 24px;
}

.sls-banner-logo-wrap {
	display: flex;
	align-items: center;
	gap: 12px;
}

.sls-banner-logo {
	max-height: 48px;
	max-width: 180px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.sls-banner-logo-fallback {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 18px;
	font-weight: 700;
	color: inherit;
	letter-spacing: -0.01em;
}

.sls-banner-logo-icon {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	stroke: currentColor;
}

.sls-banner-body {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: auto 0;
}

.sls-banner-title {
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	color: inherit;
	margin: 0;
}

.sls-banner-desc {
	font-size: 14px;
	line-height: 1.6;
	color: inherit;
	opacity: 0.9;
	margin: 0;
}

.sls-banner-features {
	list-style: none;
	margin: 8px 0 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sls-banner-features li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	color: inherit;
	opacity: 0.92;
	line-height: 1.4;
}

.sls-banner-features .sls-check-icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: #10b981;
}

.sls-banner-footer {
	margin-top: auto;
	padding-top: 16px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.sls-banner-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	opacity: 0.8;
	color: inherit;
	font-weight: 500;
}

.sls-banner-badge svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.sls-layout-split .sls-form-content-area {
	flex: 1 1 55%;
	min-width: 320px;
	padding: 40px 35px;
	background: var(--sls-bg-color, #ffffff);
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
}

/* Modal Popup with Split Layout: edge-to-edge container */
.sls-popup-container.sls-has-split-layout,
.sls-popup-container:has(.sls-layout-split) {
	padding: 0;
	overflow: hidden;
}

.sls-popup-container.sls-has-split-layout .sls-close-btn,
.sls-popup-container:has(.sls-layout-split) .sls-close-btn {
	top: 14px;
	right: 14px;
	z-index: 25;
	background: rgba(0, 0, 0, 0.06);
	border-radius: 50%;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease;
}

.sls-popup-container.sls-has-split-layout .sls-close-btn:hover,
.sls-popup-container:has(.sls-layout-split) .sls-close-btn:hover {
	background: rgba(0, 0, 0, 0.12);
}

/* Mobile Responsiveness */
@media screen and (max-width: 768px) {
	.sls-layout-split.sls-auth-wrapper {
		flex-direction: column;
		min-height: auto;
	}
	.sls-layout-split .sls-illustration-area {
		min-width: 100%;
		padding: 24px 20px;
	}
	.sls-layout-split .sls-banner-features {
		display: none;
	}
	.sls-layout-split .sls-banner-footer {
		display: none;
	}
	.sls-layout-split .sls-banner-title {
		font-size: 20px;
	}
	.sls-layout-split .sls-form-content-area {
		min-width: 100%;
		padding: 25px 20px;
	}
}
@media screen and (max-width: 480px) {
	.sls-social-width-auto {
		flex-direction: column;
	}
	.sls-tabs {
		flex-direction: column;
		border-bottom: none;
	}
	.sls-tab {
		border-bottom: 2px solid var(--sls-border);
		margin-bottom: 0;
	}
	.sls-tab.is-active {
		border-bottom-color: var(--sls-primary-color);
	}
}

/* Header Menu & Navigation Helpers */
body.logged-in .sls-logged-out-only,
body.logged-in .sls-menu-logged-out-only {
	display: none !important;
}

body:not(.logged-in) .sls-logged-in-only,
body:not(.logged-in) .sls-menu-logged-in-only {
	display: none !important;
}

/* Optional button styling for menu items with class .sls-menu-button */
.menu-item.sls-menu-button > a,
a.sls-menu-button {
	background-color: var(--sls-primary-color, #007cba) !important;
	color: #ffffff !important;
	padding: 8px 18px !important;
	border-radius: var(--sls-border-radius, 4px) !important;
	font-weight: 600 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-decoration: none !important;
	transition: background-color 0.2s ease, opacity 0.2s ease !important;
}
.menu-item.sls-menu-button > a:hover,
a.sls-menu-button:hover {
	opacity: 0.9 !important;
	color: #ffffff !important;
}


