/**
 * Elementor widget: Login.
 *
 * Values come from the 2026 design system. Each is written as the system's own
 * token with the system's value as the fallback, so a page that loads
 * design-system/styles.css inherits the live tokens and a page that does not
 * still gets the right colours.
 */

.dtg-login {
	--dtg-login-ink: var(--text-strong, #1a2026);
	--dtg-login-body: var(--text-body, #2b333a);
	--dtg-login-muted: var(--text-muted, #7a858e);
	--dtg-login-line: var(--border-default, #cdd5db);
	--dtg-login-focus: var(--border-focus, #2e76a6);
	--dtg-login-focus-ring: var(--focus-ring, 0 0 0 3px rgba(46, 118, 166, 0.35));
	--dtg-login-surface: var(--surface-card, #fff);
	--dtg-login-sunken: var(--surface-sunken, #eff2f4);
	--dtg-login-action: var(--brand-primary, #1f6494);
	--dtg-login-action-hover: var(--brand-primary-hover, #18527b);
	--dtg-login-commerce: var(--brand-accent, #347544);
	--dtg-login-commerce-hover: var(--brand-accent-hover, #2a5e37);
	--dtg-login-on-brand: var(--text-on-brand, #fff);
	--dtg-login-danger: var(--status-danger, #a4372e);
	--dtg-login-danger-bg: var(--status-danger-bg, #f7e9e7);
	--dtg-login-info: var(--status-info, #1f6494);
	--dtg-login-info-bg: var(--status-info-bg, #eef5fa);
	--dtg-login-radius: var(--radius-md, 8px);
	--dtg-login-radius-lg: var(--radius-lg, 12px);
	--dtg-login-shadow: var(--shadow-sm, 0 1px 3px rgba(26, 32, 38, 0.08), 0 1px 2px rgba(26, 32, 38, 0.04));
	--dtg-login-speed: var(--dur-fast, 120ms);
	--dtg-login-ease: var(--ease-standard, cubic-bezier(0.2, 0, 0, 1));

	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: stretch;
	color: var(--dtg-login-body);
	font-family: var(--font-body, inherit);
}

.dtg-login .dtg-login__panel {
	display: flex;
	flex-direction: column;
	padding: 28px;
	background: var(--dtg-login-surface);
	border: 1px solid var(--dtg-login-line);
	border-radius: var(--dtg-login-radius-lg);
	box-shadow: var(--dtg-login-shadow);
}

/* Green is the design system's membership colour, so the panel wears it. */
.dtg-login .dtg-login__panel--membership {
	background: var(--surface-accent-soft, #eef6ef);
	border-color: var(--green-200, #afd5b4);
}

.dtg-login .dtg-login__title {
	margin: 0 0 14px;
	color: var(--dtg-login-ink);
	font-family: var(--font-heading, inherit);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.25;
}

.dtg-login .dtg-login__text {
	margin: 0 0 20px;
	color: var(--dtg-login-muted);
	font-size: 15px;
	line-height: 1.55;
}

/* Form */
.dtg-login .dtg-login__form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
}

.dtg-login .dtg-login__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.dtg-login .dtg-login__label {
	color: var(--dtg-login-ink);
	font-size: 14px;
	font-weight: 600;
}

/*
 * Themes commonly size every text field through `input[type="text"]`, which
 * outweighs a single class, so the field is set explicitly here and the rules
 * are scoped to the wrapper to win on specificity.
 */
.dtg-login .dtg-login__input {
	width: 100%;
	height: 42px;
	margin: 0;
	padding: 0 12px;
	box-sizing: border-box;
	background: var(--dtg-login-surface);
	border: 1px solid var(--dtg-login-line);
	border-radius: var(--dtg-login-radius);
	box-shadow: none;
	color: var(--dtg-login-body);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.4;
	transition: border-color var(--dtg-login-speed) var(--dtg-login-ease),
		box-shadow var(--dtg-login-speed) var(--dtg-login-ease);
}

.dtg-login .dtg-login__input:focus {
	outline: none;
	border-color: var(--dtg-login-focus);
	box-shadow: var(--dtg-login-focus-ring);
}

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

/* Buttons */
.dtg-login .dtg-login__submit,
.dtg-login .dtg-login__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-height: 42px;
	padding: 9px 18px;
	background: var(--dtg-login-action);
	border: 1px solid transparent;
	border-radius: var(--dtg-login-radius);
	box-shadow: none;
	color: var(--dtg-login-on-brand);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.005em;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: background var(--dtg-login-speed) var(--dtg-login-ease);
}

.dtg-login .dtg-login__submit {
	align-self: flex-start;
	margin-top: 2px;
}

.dtg-login .dtg-login__submit:hover,
.dtg-login .dtg-login__submit:focus,
.dtg-login .dtg-login__button--action:hover,
.dtg-login .dtg-login__button--action:focus {
	background: var(--dtg-login-action-hover);
	color: var(--dtg-login-on-brand);
}

.dtg-login .dtg-login__button--commerce {
	align-self: flex-start;
	margin-top: auto;
	background: var(--dtg-login-commerce);
}

.dtg-login .dtg-login__button--commerce:hover,
.dtg-login .dtg-login__button--commerce:focus {
	background: var(--dtg-login-commerce-hover);
	color: var(--dtg-login-on-brand);
}

.dtg-login .dtg-login__submit:focus-visible,
.dtg-login .dtg-login__button:focus-visible {
	outline: 2px solid var(--dtg-login-focus);
	outline-offset: 2px;
}

/* Links */
.dtg-login .dtg-login__lost {
	margin-top: 14px;
	color: var(--dtg-login-muted);
	font-size: 14px;
	text-decoration: none;
}

.dtg-login .dtg-login__lost:hover,
.dtg-login .dtg-login__lost:focus {
	color: var(--dtg-login-action);
	text-decoration: underline;
}

/* Messages */
.dtg-login .dtg-login__alert {
	margin: 0 0 16px;
	padding: 14px 16px;
	border: 1px solid transparent;
	border-radius: var(--dtg-login-radius);
	font-size: 14px;
	line-height: 1.5;
}

.dtg-login .dtg-login__alert--danger {
	background: var(--dtg-login-danger-bg);
	border-color: #eab8b2;
	color: var(--dtg-login-danger);
}

.dtg-login .dtg-login__alert--info {
	background: var(--dtg-login-info-bg);
	border-color: var(--blue-200, #b3d0e4);
	color: var(--blue-800, #154463);
}

/* Card: the single-panel login of the restricted-content page */
.dtg-login--card {
	--dtg-login-shadow: var(--shadow-lg, 0 30px 70px rgba(2, 14, 22, 0.42));

	grid-template-columns: minmax(0, 1fr);
}

.dtg-login--card .dtg-login__panel {
	padding: 26px 28px 28px;
	border-color: transparent;
	border-radius: 22px;
}

.dtg-login--card .dtg-login__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 18px;
}

.dtg-login--card .dtg-login__title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.dtg-login--card .dtg-login__eyebrow {
	color: var(--dtg-login-muted);
	font-size: 12.5px;
	font-weight: 700;
}

.dtg-login--card .dtg-login__form {
	gap: 12px;
}

.dtg-login--card .dtg-login__label {
	font-size: 13px;
	font-weight: 700;
}

.dtg-login--card .dtg-login__input {
	height: auto;
	padding: 13px 15px;
	background: var(--dtg-login-sunken);
	border-radius: var(--dtg-login-radius-lg);
}

.dtg-login--card .dtg-login__input:focus {
	background: var(--dtg-login-surface);
	border-color: var(--dtg-login-commerce);
	box-shadow: none;
}

.dtg-login--card .dtg-login__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 2px;
}

.dtg-login--card .dtg-login__remember {
	font-size: 13.5px;
}

.dtg-login--card .dtg-login__remember input {
	width: 16px;
	height: 16px;
	margin: 0;
	accent-color: var(--dtg-login-commerce);
}

.dtg-login--card .dtg-login__row .dtg-login__lost {
	margin-top: 0;
	color: var(--dtg-login-action);
	font-size: 13.5px;
	font-weight: 700;
}

.dtg-login--card .dtg-login__submit {
	align-self: stretch;
	width: 100%;
	min-height: 0;
	margin-top: 6px;
	padding: 15px 24px;
	border-radius: 999px;
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.2;
}

/* Signed in */
.dtg-login--signed-in {
	grid-template-columns: minmax(0, 1fr);
}

.dtg-login .dtg-login__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.dtg-login .dtg-login__actions .dtg-login__lost {
	margin-top: 0;
}

@media (max-width: 767px) {
	.dtg-login {
		grid-template-columns: minmax(0, 1fr);
	}

	.dtg-login .dtg-login__panel {
		padding: 22px;
	}

	.dtg-login .dtg-login__submit,
	.dtg-login .dtg-login__button {
		width: 100%;
	}
}
