/* Apex Login & Register — login card
   Matches the provided mockup: two-column card, OAuth row, email/password form. */

.apexlr-login-wrap,
.apexlr-login-wrap * {
	box-sizing: border-box;
	max-width: 100%;
}

.apexlr-login-wrap {
	--apexlr-navy: #002559;
	--apexlr-navy-soft: #2a3a78;
	--apexlr-text: #6b7a90;
	--apexlr-text-light: #6b7a90;
	--apexlr-text-muted: #767676;
	--apexlr-slate: #1b2430;
	--apexlr-border: #e4e9f0;
	--apexlr-bg-soft: #f6f8fb;
	--apexlr-orange: #f68b1f;
	--apexlr-danger: #d6483f;
	--apexlr-danger-bg: #fdecea;
	--apexlr-success: #1f9d55;
	--apexlr-success-bg: #eafaf0;
	--apexlr-radius-lg: 20px;
	--apexlr-radius-md: 12px;
	--apexlr-radius-sm: 9px;

	font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--apexlr-text);
	display: flex;
	justify-content: center;
	padding: 24px;
}

.apexlr-login-card {
	position: relative;
	width: 100%;
	max-width: 957px;
	display: grid;
	grid-template-columns: 386fr 570fr;
	background: #fff;
	border-radius: var(--apexlr-radius-lg);
	/* box-shadow: 0 20px 60px -25px rgba(20, 32, 77, 0.35); */
	overflow: hidden;
}

.apexlr-login-panel {
	padding: 48px 44px;
}

.apexlr-login-panel--intro {
	background: #fbfbfd;
	border-right: 1px solid var(--apexlr-border);
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	min-height: 560px;
}

.apexlr-login-panel--intro h2 {
	color: var(--apexlr-navy);
	font-size: 26px;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 12px;
}

.apexlr-login-panel--intro p {
	margin: 0;
	color: var(--apexlr-text-muted);
	font-size: 13.5px;
	line-height: 1.6;
	max-width: 30ch;
}

.apexlr-mark {
	width: 317px;
	max-width: 82%;
	height: auto;
	align-self: center;
	margin-top: auto;
	display: block;
}

.apexlr-login-panel--form {
	position: relative;
}

.apexlr-login-panel--form h1 {
	color: var(--apexlr-navy);
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 6px;
}

.apexlr-subline {
	margin: 0 0 28px;
	color: var(--apexlr-text-light);
	font-size: 13.5px;
}

.apexlr-subline a {
	color: var(--apexlr-navy);
	font-weight: 700;
	text-decoration: none;
}

.apexlr-subline a:hover {
	text-decoration: underline;
}

.apexlr-close {
	position: absolute;
	top: 26px;
	right: 26px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--apexlr-border);
	background: #fff;
	color: var(--apexlr-text-light);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.apexlr-close:hover {
	color: var(--apexlr-navy);
}

.apexlr-oauth-row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}

.apexlr-oauth-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 10px;
	border: 1px solid var(--apexlr-border);
	border-radius: var(--apexlr-radius-sm);
	background: #fff;
	color: var(--apexlr-slate);
	font-weight: 500;
	font-size: 13px;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.apexlr-oauth-btn:hover {
	border-color: var(--apexlr-navy-soft);
	box-shadow: 0 4px 14px -6px rgba(20, 32, 77, 0.25);
}

.apexlr-divider {
	position: relative;
	text-align: center;
	margin: 22px 0;
	color: var(--apexlr-text-light);
	font-size: 11.5px;
	font-weight: 500;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}

.apexlr-divider::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	border-top: 1px solid var(--apexlr-border);
}

.apexlr-divider span {
	position: relative;
	background: #fff;
	padding: 0 12px;
}

.apexlr-field {
	margin-bottom: 18px;
}

.apexlr-field label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--apexlr-navy);
	margin-bottom: 8px;
}

.apexlr-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.apexlr-icon {
	position: absolute;
	left: 14px;
	color: var(--apexlr-text-light);
	pointer-events: none;
}

.apexlr-input-wrap input[type="email"],
.apexlr-input-wrap input[type="password"],
.apexlr-input-wrap input[type="text"] {
	width: 100%;
	padding: 12px 14px 12px 42px;
	border: 1px solid var(--apexlr-border);
	border-radius: var(--apexlr-radius-sm);
	background: var(--apexlr-bg-soft);
	font-size: 14px;
	color: var(--apexlr-navy);
}

.apexlr-input-wrap input:focus {
	outline: none;
	border-color: var(--apexlr-navy-soft);
	background: #fff;
}

.apexlr-toggle-visibility {
	position: absolute;
	right: 12px;
	background: none;
	border: none;
	padding: 4px;
	cursor: pointer;
	color: var(--apexlr-text-light);
	display: flex;
}

.apexlr-toggle-visibility:hover {
	color: var(--apexlr-navy);
}

.apexlr-toggle-visibility .apexlr-icon-eye-off {
	display: none;
}

.apexlr-toggle-visibility.is-visible .apexlr-icon-eye-on {
	display: none;
}

.apexlr-toggle-visibility.is-visible .apexlr-icon-eye-off {
	display: flex;
}

.apexlr-field-error {
	display: block;
	color: var(--apexlr-danger);
	font-size: 12px;
	margin-top: 6px;
	min-height: 1px;
}

.apexlr-row-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 22px;
	flex-wrap: wrap;
	gap: 10px;
}

.apexlr-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--apexlr-text);
	cursor: pointer;
}

.apexlr-checkbox input {
	width: 16px;
	height: 16px;
	accent-color: var(--apexlr-navy);
}

.apexlr-link-btn {
	background: none;
	border: none;
	padding: 0;
	color: var(--apexlr-navy);
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
	text-decoration: none;
}

.apexlr-link-btn:hover {
	text-decoration: underline;
}

.apexlr-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.apexlr-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: var(--apexlr-radius-sm);
	font-weight: 700;
	font-size: 15px;
	padding: 13px 20px;
	border: none;
	cursor: pointer;
	text-decoration: none;
}

.apexlr-btn-block {
	width: 100%;
}

.apexlr-btn-primary {
	background: var(--apexlr-orange);
	color: #fff;
}

.apexlr-btn-primary:hover {
	filter: brightness(1.03);
}

.apexlr-btn-primary:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

.apexlr-btn-secondary {
	background: var(--apexlr-bg-soft);
	color: var(--apexlr-navy);
	border: 1px solid var(--apexlr-border);
}

.apexlr-alert {
	border-radius: var(--apexlr-radius-sm);
	padding: 10px 14px;
	font-size: 13px;
	margin-bottom: 16px;
}

.apexlr-alert-error {
	background: var(--apexlr-danger-bg);
	color: var(--apexlr-danger);
}

.apexlr-alert-success {
	background: var(--apexlr-success-bg);
	color: var(--apexlr-success);
}

.apexlr-callout {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	background: var(--apexlr-bg-soft);
	border: 1px solid var(--apexlr-border);
	border-radius: var(--apexlr-radius-sm);
	padding: 14px 16px;
	margin-top: 22px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--apexlr-text);
}

.apexlr-callout img {
	flex-shrink: 0;
	margin-top: 2px;
}

.apexlr-callout p {
	margin: 0;
}

.apexlr-callout a {
	color: var(--apexlr-navy);
	font-weight: 700;
}

.apexlr-forgot-intro {
	font-size: 13px;
	margin: 0 0 18px;
}

.apexlr-back-link {
	display: block;
	text-align: center;
	margin-top: 14px;
}

.apexlr-already-in {
	width: 100%;
	max-width: none;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--apexlr-border);
	border-radius: var(--apexlr-radius-md);
	padding: 40px 48px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	text-align: center;
}

.apexlr-already-in p {
	margin: 0;
	font-size: 20px;
	line-height: 1.4;
	color: var(--apexlr-navy);
}

.apexlr-already-actions {
	display: flex;
	flex-direction: row;
	justify-content: center;
	gap: 14px;
	width: 100%;
}

.apexlr-already-actions .apexlr-btn {
	flex: 1 1 0;
	max-width: 340px;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}

@media (max-width: 560px) {
	.apexlr-already-in {
		padding: 28px 22px;
	}

	.apexlr-already-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.apexlr-already-actions .apexlr-btn {
		max-width: none;
	}
}

@media (max-width: 860px) {
	.apexlr-login-card {
		grid-template-columns: 1fr;
	}

	.apexlr-login-panel--intro {
		display: none;
	}

	.apexlr-login-panel {
		padding: 32px 24px;
	}
}

@media (max-width: 460px) {
	.apexlr-oauth-row {
		grid-template-columns: 1fr;
	}
}

/*
 * Theme-proof small buttons. Some themes (and WooCommerce My Account pages) style every <button> as a
 * big orange pill; these rules keep the show/hide-password eye, the close X and the text links as designed.
 */
.apexlr-login-wrap button.apexlr-toggle-visibility {
	position: absolute !important;
	right: 12px !important;
	top: 50% !important;
	transform: translateY(-50%) !important;
	width: 32px !important;
	height: 32px !important;
	min-width: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	color: var(--apexlr-text-light) !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.apexlr-login-wrap button.apexlr-toggle-visibility:hover {
	color: var(--apexlr-navy) !important;
	background: #eef2f8 !important;
	transform: translateY(-50%) !important;
}

.apexlr-login-wrap button.apexlr-close {
	width: 34px !important;
	height: 34px !important;
	min-width: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 50% !important;
	background: #fff !important;
	background-image: none !important;
	border: 1px solid var(--apexlr-border) !important;
	box-shadow: none !important;
	color: var(--apexlr-text-light) !important;
	transform: none !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
}

.apexlr-login-wrap button.apexlr-link-btn,
.apexlr-login-wrap button.apexlr-back-link {
	width: auto !important;
	min-width: 0 !important;
	padding: 4px 0 !important;
	margin: 0 !important;
	background: none !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	transform: none !important;
	color: var(--apexlr-navy) !important;
	font-weight: 700 !important;
	font-size: 14px !important;
	letter-spacing: 0 !important;
}

.apexlr-login-wrap button.apexlr-link-btn:hover,
.apexlr-login-wrap button.apexlr-back-link:hover {
	color: var(--apexlr-orange) !important;
	text-decoration: underline;
}

/* Password field: the input takes the full width; the eye sits inside it. */
.apexlr-login-wrap .apexlr-input-wrap .password-wrapper,
.apexlr-login-wrap .apexlr-input-wrap .apexlr-password-wrapper {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
}

/* Another site-wide script wraps password inputs in .password-wrapper and adds its own eye (.toggle-password).
   Our field already has an eye button, so hide the extra one and let the input fill the field. */
.apexlr-login-wrap .toggle-password {
	display: none !important;
}

.apexlr-login-wrap .apexlr-input-wrap .password-wrapper {
	position: static !important;
	display: block !important;
	width: 100% !important;
	flex: 1 1 100% !important;
	margin: 0 !important;
}

.apexlr-login-wrap .apexlr-input-wrap .password-wrapper input {
	width: 100% !important;
	padding-right: 48px !important;
}
