/* 3WX — ecrã de entrada (área de cliente e wp-login.php) */
.x3l-root, body.login.x3l {
	--x3l-bg: #111316;
	--x3l-card: #1a1d21;
	--x3l-field: #0e1013;
	--x3l-line: rgba(255, 255, 255, .09);
	--x3l-line-2: rgba(255, 255, 255, .16);
	--x3l-text: #eef0f2;
	--x3l-muted: #9aa3ab;
	--x3l-red: #e2231a;
	--x3l-red-2: #ff4a3d;
	--x3l-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Painel lateral (imagem da marca) ---------- */
.x3l-side {
	position: fixed; top: 0; left: 0; bottom: 0; width: 50%;
	display: flex; flex-direction: column; justify-content: space-between;
	padding: 44px 56px; color: #fff; overflow: hidden; box-sizing: border-box;
	background: #0b0c0e var(--x3l-photo, none) center 30% / cover no-repeat;
	font-family: var(--x3l-font);
}
.x3l-side::before {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(9, 10, 12, .62) 0%, rgba(9, 10, 12, .18) 38%, rgba(9, 10, 12, .94) 100%),
		radial-gradient(900px 520px at -10% 110%, rgba(226, 35, 26, .42), transparent 62%);
}
.x3l-side > * { position: relative; }
.x3l-brand { display: inline-block; line-height: 0; }
.x3l-brand img { height: 46px; width: auto; }
.x3l-kicker {
	display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
	font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #fff;
}
.x3l-kicker::before { content: ""; width: 28px; height: 2px; background: var(--x3l-red); }
.x3l-pitch h2 {
	margin: 0 0 24px; max-width: 470px; color: #fff;
	font: 600 36px/1.14 var(--x3l-font); letter-spacing: -.015em;
}
.x3l-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.x3l-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: rgba(255, 255, 255, .88); margin: 0; }
.x3l-list li::before {
	content: ""; flex: 0 0 22px; height: 22px; border-radius: 50%;
	background: var(--x3l-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.x3l-foot { margin: 0; font-size: 12px; color: rgba(255, 255, 255, .55); }
.x3l-foot a { color: rgba(255, 255, 255, .75); text-decoration: none; }

/* ---------- Lado do formulário (área de cliente) ---------- */
.x3l-root { min-height: 100vh; background: var(--x3l-bg); color: var(--x3l-text); font-family: var(--x3l-font); }
.x3l-root *, .x3l-root *::before, .x3l-root *::after { box-sizing: border-box; }
.x3l-main {
	margin-left: 50%; min-height: 100vh; display: flex; flex-direction: column;
	align-items: center; justify-content: center; padding: 48px 24px;
}
.x3l-card { width: 100%; max-width: 400px; }
.x3l-title { margin: 0 0 6px; font: 600 28px/1.2 var(--x3l-font); color: var(--x3l-text); letter-spacing: -.01em; }
.x3l-sub { margin: 0 0 28px; color: var(--x3l-muted); font-size: 15px; line-height: 1.55; }

.x3l-alert {
	display: flex; gap: 10px; align-items: flex-start; margin: 0 0 20px; padding: 12px 14px; border-radius: 10px;
	font-size: 14px; line-height: 1.45; border: 1px solid;
}
.x3l-alert-error { background: rgba(255, 93, 85, .1); border-color: rgba(255, 93, 85, .35); color: #ffbdb8; }
.x3l-alert-ok { background: rgba(60, 207, 142, .1); border-color: rgba(60, 207, 142, .32); color: #9ee8c4; }

.x3l-root form p { margin: 0 0 16px; }
.x3l-root label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 500; color: var(--x3l-muted); }
.x3l-root input[type="text"], .x3l-root input[type="email"], .x3l-root input[type="password"] {
	width: 100%; height: 48px; padding: 0 14px; margin: 0;
	background: var(--x3l-field); color: var(--x3l-text); border: 1px solid var(--x3l-line-2); border-radius: 10px;
	font: 400 15px var(--x3l-font); transition: border-color .15s, box-shadow .15s;
}
.x3l-root input:focus { outline: none; border-color: var(--x3l-red); box-shadow: 0 0 0 3px rgba(226, 35, 26, .25); }
.x3l-pass { position: relative; }
.x3l-pass input { padding-right: 52px !important; }
.x3l-eye {
	position: absolute; top: 0; right: 0; width: 48px; height: 48px; display: grid; place-items: center;
	background: none; border: 0; color: var(--x3l-muted); cursor: pointer; border-radius: 0 10px 10px 0;
}
.x3l-eye:hover, .x3l-eye:focus-visible { color: #fff; outline: none; }
.x3l-eye svg { width: 20px; height: 20px; }
.x3l-root .login-remember label { display: inline-flex; align-items: center; gap: 10px; color: var(--x3l-text); font-size: 14px; cursor: pointer; margin: 0; }
.x3l-root input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--x3l-red); margin: 0; }
.x3l-root .login-submit { margin-top: 22px; }
.x3l-root input[type="submit"], .x3l-btn {
	width: 100%; height: 50px; border: 0; border-radius: 10px; cursor: pointer;
	background: var(--x3l-red); color: #fff; font: 600 15px var(--x3l-font); letter-spacing: .01em;
	transition: background .15s, transform .05s;
}
.x3l-root input[type="submit"]:hover { background: var(--x3l-red-2); }
.x3l-root input[type="submit"]:active { transform: translateY(1px); }
.x3l-root input[type="submit"][disabled] { opacity: .7; cursor: progress; }
.x3l-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -4px 0 0; }
.x3l-link { color: var(--x3l-red-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.x3l-link:hover { text-decoration: underline; }
.x3l-divider { height: 1px; background: var(--x3l-line); margin: 28px 0 20px; }
.x3l-help { font-size: 14px; color: var(--x3l-muted); line-height: 1.6; margin: 0; }
.x3l-help a { color: var(--x3l-text); text-decoration: none; }
.x3l-help a:hover { color: #fff; text-decoration: underline; }
.x3l-back { margin-top: 32px; font-size: 13px; }
.x3l-back a { color: var(--x3l-muted); text-decoration: none; }
.x3l-back a:hover { color: #fff; }
.x3l-mlogo { display: none; }

/* ---------- wp-login.php ---------- */
body.login.x3l {
	background: var(--x3l-bg) !important; color: var(--x3l-text); font-family: var(--x3l-font);
	padding-left: 50%; min-height: 100vh; box-sizing: border-box;
	display: flex !important; flex-direction: column; justify-content: center; align-items: stretch;
}
body.login.x3l #login { width: 100%; max-width: 400px; margin: 0 auto; padding: 48px 24px; box-sizing: content-box; }
body.login.x3l #login > h1 { display: none; }
body.login.x3l .x3l-head { margin-bottom: 26px; }
body.login.x3l .x3l-head .x3l-title { color: var(--x3l-text); text-align: left; padding: 0; }
body.login.x3l form {
	background: transparent; border: 0; box-shadow: none; padding: 0; margin: 0; overflow: visible;
}
body.login.x3l label { color: var(--x3l-muted); font-size: 13px; font-weight: 500; margin-bottom: 7px; display: inline-block; }
body.login.x3l .input, body.login.x3l input[type="text"], body.login.x3l input[type="email"], body.login.x3l input[type="password"] {
	background: var(--x3l-field) !important; color: var(--x3l-text) !important; border: 1px solid var(--x3l-line-2) !important;
	border-radius: 10px !important; height: 48px; min-height: 48px; padding: 0 14px !important; font-size: 15px !important;
	font-family: var(--x3l-font) !important; box-shadow: none !important; margin: 0 0 18px !important; line-height: 46px;
}
body.login.x3l .input:focus, body.login.x3l input:focus { border-color: var(--x3l-red) !important; box-shadow: 0 0 0 3px rgba(226, 35, 26, .25) !important; outline: none; }
body.login.x3l .user-pass-wrap .wp-pwd { position: relative; }
body.login.x3l .user-pass-wrap input { padding-right: 52px !important; }
body.login.x3l .wp-hide-pw { height: 48px !important; width: 48px !important; top: 0 !important; right: 0 !important; color: var(--x3l-muted) !important; background: none !important; border: 0 !important; box-shadow: none !important; }
body.login.x3l .wp-hide-pw:hover, body.login.x3l .wp-hide-pw:focus { color: #fff !important; }
body.login.x3l .wp-hide-pw .dashicons { width: 20px; height: 20px; font-size: 20px; top: 0; }
body.login.x3l .forgetmenot { float: none; margin: 0 0 22px; }
body.login.x3l .forgetmenot label { color: var(--x3l-text); font-size: 14px; display: inline-flex; align-items: center; gap: 10px; margin: 0; }
body.login.x3l input[type="checkbox"] { accent-color: var(--x3l-red); width: 18px; height: 18px; margin: 0 !important; background: var(--x3l-field); border-color: var(--x3l-line-2); }
body.login.x3l input[type="checkbox"]:checked::before { display: none; }
body.login.x3l .remember-tooltip, body.login.x3l .wp-tooltip, body.login.x3l .forgetmenot .dashicons-info, body.login.x3l .forgetmenot button { display: none !important; }
body.login.x3l .submit { float: none; padding: 0; margin: 0; }
body.login.x3l .button-primary, body.login.x3l #wp-submit {
	float: none; width: 100%; height: 50px; min-height: 50px; border: 0 !important; border-radius: 10px !important;
	background: var(--x3l-red) !important; color: #fff !important; text-shadow: none !important; box-shadow: none !important;
	font: 600 15px var(--x3l-font) !important; letter-spacing: .01em;
}
body.login.x3l .button-primary:hover, body.login.x3l #wp-submit:hover { background: var(--x3l-red-2) !important; }
body.login.x3l .button:not(.button-primary):not(.wp-hide-pw) { background: transparent !important; color: var(--x3l-text) !important; border: 1px solid var(--x3l-line-2) !important; border-radius: 8px !important; box-shadow: none !important; }
body.login.x3l #nav, body.login.x3l #backtoblog { margin: 0; padding: 0; text-shadow: none; font-size: 14px; }
body.login.x3l #nav { margin-top: 22px; }
body.login.x3l #backtoblog { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--x3l-line); font-size: 13px; }
body.login.x3l #nav a, body.login.x3l .privacy-policy-page-link a { color: var(--x3l-red-2) !important; font-weight: 500; text-decoration: none; }
body.login.x3l #backtoblog a { color: var(--x3l-muted) !important; text-decoration: none; }
body.login.x3l #nav a:hover, body.login.x3l #backtoblog a:hover { color: #fff !important; text-decoration: underline; }
body.login.x3l .message, body.login.x3l .notice, body.login.x3l .success, body.login.x3l #login_error, body.login.x3l .login-error-list {
	background: rgba(60, 207, 142, .1) !important; border: 1px solid rgba(60, 207, 142, .32) !important; border-left-width: 1px !important;
	color: #9ee8c4 !important; border-radius: 10px; box-shadow: none !important; padding: 12px 14px !important; margin: 0 0 20px !important; font-size: 14px;
}
body.login.x3l #login_error, body.login.x3l .notice-error { background: rgba(255, 93, 85, .1) !important; border-color: rgba(255, 93, 85, .35) !important; color: #ffbdb8 !important; }
body.login.x3l .message:not(.success), body.login.x3l .notice-info { background: rgba(255, 255, 255, .04) !important; border-color: var(--x3l-line-2) !important; color: var(--x3l-muted) !important; }
body.login.x3l #login_error a, body.login.x3l .message a, body.login.x3l .notice a { color: #fff !important; }
body.login.x3l .pw-weak, body.login.x3l #pass-strength-result { border-radius: 8px; margin: 0 0 16px; }
body.login.x3l .reset-pass-submit { display: flex; gap: 10px; flex-wrap: wrap; }
body.login.x3l .reset-pass-submit .button { flex: 1; height: 46px; }
body.login.x3l .description, body.login.x3l .indicator-hint { color: var(--x3l-muted); font-size: 13px; }
body.login.x3l .language-switcher { display: none; }
body.login.x3l .privacy-policy-page-link { text-align: left; margin: 18px 0 0; }

/* ---------- Ecrãs pequenos ---------- */
@media (max-width: 900px) {
	.x3l-side { position: relative; width: 100%; min-height: 220px; padding: 22px 20px 26px; justify-content: flex-end; gap: 18px; }
	.x3l-side .x3l-brand { position: absolute; top: 20px; left: 20px; }
	.x3l-brand img { height: 34px; }
	.x3l-pitch h2 { font-size: 22px; margin: 0; max-width: 340px; }
	.x3l-kicker { margin-bottom: 10px; }
	.x3l-list, .x3l-foot { display: none; }
	.x3l-main { margin-left: 0; min-height: 0; justify-content: flex-start; padding: 28px 20px 40px; }
	.x3l-title { font-size: 24px; }
	body.login.x3l { padding-left: 0; display: block !important; }
	body.login.x3l #login { padding: 28px 20px 40px; box-sizing: border-box; }
}
@media (prefers-reduced-motion: reduce) {
	.x3l-root *, body.login.x3l * { transition: none !important; }
}
