/* ==========================================================================
   Custom login / registration forms
   Selectors are scoped to .wl-auth so Hello Elementor's default button/input
   styles (pink borders etc.) don't leak in.
   ========================================================================== */

.wl-auth {
	--wl-red: #b71c24;
	--wl-red-dark: #961219;
	--wl-panel: #1e1e1e;
	--wl-input: #2a2a2a;
	--wl-input-focus: #333;
	--wl-text: #fff;
	--wl-muted: #b5b5b5;
	--wl-notch: 12px;

	color: var(--wl-text);
	font-family: inherit;
	width: 100%;
	max-width: 1080px;
	margin: 0 auto;
	box-sizing: border-box;
}

.wl-auth *,
.wl-auth *::before,
.wl-auth *::after {
	box-sizing: border-box;
}

.wl-auth [hidden] {
	display: none !important;
}

/* ---------- Layout: combined panel ---------- */

.wl-auth--combined {
	position: relative;
}

.wl-auth__view {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 520px;
	background: var(--wl-panel);
}

.wl-auth--combined[data-view="login"] .wl-auth__view--register,
.wl-auth--combined[data-view="register"] .wl-auth__view--login {
	display: none;
}

.wl-auth__col {
	padding: 56px 36px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.wl-auth__promo {
	background:
		radial-gradient(circle at 100% 100%, rgba(183, 28, 36, 0.35), transparent 55%),
		repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 14px, transparent 14px 28px),
		#222;
	align-items: flex-start;
}

.wl-auth__promo-title {
	margin: 0 0 28px;
	font-size: clamp(36px, 4.4vw, 52px);
	line-height: 1.15;
	font-weight: 400;
	color: var(--wl-text);
}

.wl-auth__promo-title em {
	display: block;
	color: var(--wl-red);
	font-style: italic;
}

/* Tabs (mobile only) */
.wl-auth__tabs {
	display: none;
	gap: 12px;
	margin-bottom: 12px;
}

.wl-auth .wl-auth__tab,
.wl-auth .wl-auth__tab:hover,
.wl-auth .wl-auth__tab:focus {
	flex: 1;
	padding: 20px 10px;
	border: 0;
	border-radius: 0;
	background: #ccc;
	color: #111;
	font: inherit;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
}

.wl-auth .wl-auth__tab.is-active {
	background: var(--wl-red);
	color: #fff;
}

/* Single form card */
.wl-auth--single .wl-auth__card {
	max-width: 520px;
	margin: 0 auto;
	padding: 48px 36px;
	background: var(--wl-panel);
}

.wl-auth--inline {
	max-width: 400px;
}

/* ---------- Form ---------- */

.wl-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: 100%;
	max-width: 420px;
	margin: 0;
}

.wl-auth__view--register .wl-form {
	max-width: none;
}

.wl-auth .wl-form__title {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 6px;
	padding-left: 12px;
	border-left: 4px solid var(--wl-red);
	color: var(--wl-text);
	font-size: 28px;
	line-height: 1.2;
	font-weight: 800;
	text-transform: uppercase;
}

.wl-auth .wl-form__title::after {
	content: "";
	flex: 1;
	max-width: 230px;
	height: 1px;
	background: linear-gradient(90deg, var(--wl-red), transparent);
}

.wl-field {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.wl-auth .wl-field label {
	margin: 0;
	color: var(--wl-text);
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.wl-req {
	color: var(--wl-text);
}

.wl-auth .wl-field input,
.wl-auth .wl-field input:focus {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: 0;
	background: var(--wl-input);
	color: var(--wl-text);
	font: inherit;
	font-size: 15px;
	box-shadow: none;
	outline: none;
}

.wl-auth .wl-field input:focus {
	background: var(--wl-input-focus);
	border-color: var(--wl-red);
}

.wl-field__password {
	position: relative;
}

.wl-auth .wl-field__password input {
	padding-right: 48px;
}

.wl-auth .wl-field__toggle,
.wl-auth .wl-field__toggle:hover,
.wl-auth .wl-field__toggle:focus {
	position: absolute;
	top: 0;
	right: 0;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #ddd;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.wl-field__toggle svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.wl-field__toggle[aria-pressed="true"] {
	color: var(--wl-red);
}

.wl-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
}

.wl-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--wl-muted);
	font-size: 14px;
	cursor: pointer;
}

.wl-check input {
	accent-color: var(--wl-red);
	margin: 0;
}

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

/* ---------- Buttons (clipped corners like the design) ---------- */

.wl-auth .wl-btn,
.wl-auth .wl-btn:hover,
.wl-auth .wl-btn:focus,
.wl-auth .wl-btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 46px;
	padding: 12px 20px;
	border: 0;
	border-radius: 0;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	clip-path: polygon(0 0, calc(100% - var(--wl-notch)) 0, 100% var(--wl-notch), 100% 100%, var(--wl-notch) 100%, 0 calc(100% - var(--wl-notch)));
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.wl-auth .wl-btn--primary,
.wl-auth .wl-btn--primary:visited {
	background: var(--wl-red);
	color: #fff;
}

.wl-auth .wl-btn--primary:hover,
.wl-auth .wl-btn--primary:focus {
	background: var(--wl-red-dark);
	color: #fff;
}

.wl-auth .wl-btn--light,
.wl-auth .wl-btn--light:visited {
	max-width: 476px;
	background: linear-gradient(90deg, #fff 70%, #f6e9ea);
	color: #111;
	letter-spacing: 0.02em;
}

.wl-auth .wl-btn--light:hover,
.wl-auth .wl-btn--light:focus {
	background: #f1f1f1;
	color: var(--wl-red);
}

.wl-auth .wl-btn--google,
.wl-auth .wl-btn--google:visited {
	background: #fff;
	color: #222;
	letter-spacing: 0.02em;
	text-transform: none;
}

.wl-auth .wl-btn--google:hover,
.wl-auth .wl-btn--google:focus {
	background: #f1f1f1;
	color: #111;
}

.wl-btn__icon {
	width: 20px;
	height: 20px;
	flex: none;
}

.wl-auth .wl-btn:disabled,
.wl-form.is-busy .wl-btn--primary {
	opacity: 0.6;
	cursor: wait;
}

.wl-auth .wl-link,
.wl-auth .wl-link:hover,
.wl-auth .wl-link:focus {
	padding: 0;
	border: 0;
	background: none;
	color: var(--wl-text);
	font: inherit;
	font-size: 16px;
	text-decoration: none;
	cursor: pointer;
}

.wl-auth .wl-link:hover {
	color: var(--wl-red);
}

.wl-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--wl-muted);
	font-size: 13px;
	text-transform: uppercase;
}

.wl-divider::before,
.wl-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #3a3a3a;
}

/* ---------- Notices / verify step ---------- */

.wl-notice {
	padding: 12px 14px;
	border-left: 4px solid var(--wl-red);
	background: rgba(183, 28, 36, 0.15);
	color: #fff;
	font-size: 14px;
	line-height: 1.5;
}

.wl-notice--success {
	border-left-color: #2e9d58;
	background: rgba(46, 157, 88, 0.15);
}

.wl-notice--info {
	border-left-color: #888;
	background: rgba(255, 255, 255, 0.06);
}

.wl-notice--page {
	margin-bottom: 16px;
}

.wl-verify__text {
	margin: 0;
	color: var(--wl-muted);
}

.wl-verify__text strong {
	color: var(--wl-text);
	word-break: break-all;
}

.wl-auth .wl-field input.wl-code {
	font-size: 24px;
	letter-spacing: 0.5em;
	text-align: center;
}

.wl-verify__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
}

.wl-auth .wl-verify__actions .wl-link {
	font-size: 14px;
	color: var(--wl-muted);
}

.wl-auth__logged-in p {
	margin: 0 0 16px;
}

.wl-auth__logged-in .wl-btn {
	width: auto;
	margin-right: 16px;
}

/* ---------- Responsive ---------- */

@media (max-width: 767px) {
	.wl-auth__tabs {
		display: flex;
	}

	.wl-auth__view {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.wl-auth__promo {
		display: none;
	}

	.wl-auth__col,
	.wl-auth--single .wl-auth__card {
		padding: 48px 24px;
	}

	.wl-form {
		max-width: none;
	}

	.wl-row {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}
