/*
 * SureDash 1.12.4 auth blocks and dynamic profile, light mode only.
 * Stable form wrappers outrank vendor per-block rules without changing layout,
 * credentials, saved field values, notifications or redirect settings.
 */
body:not(.palette-dark):not(.dark-mode) :is(.wp-block-suredash-login, .wp-block-suredash-register, .portal-user-profile-main) {
	color: var(--wp--preset--color--gravity-text);
	font-family: var(--gs-theming-suredash-body-font-family);
	--portal-heading-color: var(--wp--preset--color--gravity-text);
	--portal-link-active-color: var(--wp--preset--color--gravity-focus);
	--portal-border-color: var(--wp--preset--color--gravity-border);
	--portal-global-color-9: var(--wp--preset--color--gravity-text);
	--portal-global-color-4: var(--wp--preset--color--gravity-text);
	--portal-secondary-color: var(--wp--preset--color--gravity-surface-subtle);
}
body:not(.palette-dark):not(.dark-mode) :is(.wp-block-suredash-login, .wp-block-suredash-register, .portal-user-profile-main) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]), textarea) {
	background: var(--wp--preset--color--gravity-surface);
	color: var(--wp--preset--color--gravity-text);
	border-color: var(--wp--preset--color--gravity-field-border);
	font-family: var(--gs-theming-suredash-body-font-family);
	font-size: var(--c-theming-body-font-size);
}
body:not(.palette-dark):not(.dark-mode) :is(.wp-block-suredash-login, .wp-block-suredash-register, .portal-user-profile-main) :is(input, textarea)::placeholder {
	color: var(--wp--preset--color--gravity-text-muted);
}
body:not(.palette-dark):not(.dark-mode) :is(.wp-block-suredash-login, .wp-block-suredash-register, .portal-user-profile-main) :is(input, textarea):focus-visible {
	border-color: var(--wp--preset--color--gravity-focus);
	/* SureDash's global keyboard rule marks the outline important. */
	outline: var(--c-theming-focus-width) solid var(--wp--preset--color--gravity-focus) !important;
	outline-offset: 2px;
}
body:not(.palette-dark):not(.dark-mode) :is(.wp-block-suredash-login, .wp-block-suredash-register, .portal-user-profile-main) :is(label, .suredash-login-form__heading, .suredash-register-form__heading) {
	color: var(--wp--preset--color--gravity-text);
}
body:not(.palette-dark):not(.dark-mode) :is(.wp-block-suredash-login, .wp-block-suredash-register, .portal-user-profile-main) a {
	color: var(--wp--preset--color--gravity-link);
}
body:not(.palette-dark):not(.dark-mode) :is(.wp-block-suredash-login, .wp-block-suredash-register, .portal-user-profile-main) :is(a, button, [role="tab"]):focus-visible {
	/* SureDash's global keyboard rule marks the outline important. */
	outline: var(--c-theming-focus-width) solid var(--wp--preset--color--gravity-focus) !important;
	outline-offset: 2px;
}
body:not(.palette-dark):not(.dark-mode) :is(.wp-block-suredash-login, .wp-block-suredash-register, .portal-user-profile-main) :is(.suredash-login-form-submit-button, .suredash-register-form__submit, .suredash-reset-password-submit, .suredash-logged-in-screen__primary, .portal-button.button-primary) {
	--sd-lis-btn-bg: var(--c-theming-button-background);
	--sd-lis-btn-text: var(--c-theming-button-label);
	background: var(--c-theming-button-background);
	color: var(--c-theming-button-label);
	border-color: var(--c-theming-button-background);
	border-radius: var(--c-theming-button-radius);
	font-family: var(--c-theming-button-font-family);
	font-size: var(--c-theming-button-font-size);
	font-weight: var(--c-theming-button-font-weight);
	line-height: var(--c-theming-button-line-height);
	padding: var(--c-theming-button-padding-top) var(--c-theming-button-padding-right) var(--c-theming-button-padding-bottom) var(--c-theming-button-padding-left);
}
body:not(.palette-dark):not(.dark-mode) :is(.wp-block-suredash-login, .wp-block-suredash-register, .portal-user-profile-main) :is(.suredash-login-form-submit-button, .suredash-register-form__submit, .suredash-reset-password-submit, .suredash-logged-in-screen__primary, .portal-button.button-primary):hover:not(:disabled):not(.disabled) {
	background: var(--c-theming-button-background-hover);
	color: var(--c-theming-button-label-hover);
	border-color: var(--c-theming-button-background-hover);
}
body:not(.palette-dark):not(.dark-mode) .portal-user-profile-main .portal-button.button-secondary {
	background: var(--wp--preset--color--gravity-surface);
	color: var(--wp--preset--color--gravity-text);
	border-color: var(--wp--preset--color--gravity-field-border);
}
body:not(.palette-dark):not(.dark-mode) .portal-user-profile-main .portal-user-profile-tab {
	color: var(--wp--preset--color--gravity-text-muted);
}
body:not(.palette-dark):not(.dark-mode) .portal-user-profile-main .portal-user-profile-tab.active {
	color: var(--wp--preset--color--gravity-text);
	border-color: var(--wp--preset--color--gravity-focus);
	background: var(--wp--preset--color--gravity-surface-subtle);
}
body:not(.palette-dark):not(.dark-mode) :is(.wp-block-suredash-login, .wp-block-suredash-register, .portal-user-profile-main) input[type="checkbox"] {
	accent-color: var(--wp--preset--color--gravity-cta);
}
/* SureDash draws the registration checkbox separately from the native input. */
body:not(.palette-dark):not(.dark-mode) .wp-block-suredash-register .suredash-register-form__terms-checkbox-checkmark {
	border-color: var(--wp--preset--color--gravity-field-border);
}
body:not(.palette-dark):not(.dark-mode) .wp-block-suredash-register input:checked ~ .suredash-register-form__terms-checkbox-checkmark {
	background: var(--wp--preset--color--gravity-cta);
	border-color: var(--wp--preset--color--gravity-cta);
}
body:not(.palette-dark):not(.dark-mode) .wp-block-suredash-register input:checked ~ .suredash-register-form__terms-checkbox-checkmark::after {
	border-color: var(--wp--preset--color--gravity-cta-label);
}

body:not(.palette-dark):not(.dark-mode) :is(.wp-block-suredash-login, .wp-block-suredash-register, .portal-user-profile-main) :is(.suredash-login-form-submit-button, .suredash-register-form__submit, .suredash-reset-password-submit, .suredash-logged-in-screen__primary, .portal-button.button-primary):focus-visible {
	--portal-secondary-color: var(--c-theming-button-background);
	--portal-global-color-4: var(--c-theming-button-label);
}
body:not(.palette-dark):not(.dark-mode) .wp-block-suredash-register .suredash-register-form__terms-checkbox:has(input:focus-visible) .suredash-register-form__terms-checkbox-checkmark {
	outline: var(--c-theming-focus-width) solid var(--wp--preset--color--gravity-focus);
	outline-offset: 2px;
}
/* SureDash draws notification switches as a sibling span. Keep its state. */
body:not(.palette-dark):not(.dark-mode) .portal-user-profile-main .portal-notification-slider {
	background-color: var(--wp--preset--color--gravity-border);
}
body:not(.palette-dark):not(.dark-mode) .portal-user-profile-main .portal-notification-checkbox:checked + .portal-notification-slider {
	background-color: var(--wp--preset--color--gravity-cta);
}
body:not(.palette-dark):not(.dark-mode) .portal-user-profile-main .portal-notification-checkbox:checked + .portal-notification-slider::before {
	background-color: var(--wp--preset--color--gravity-cta-label);
}
body:not(.palette-dark):not(.dark-mode) .portal-user-profile-main .portal-notification-checkbox:focus-visible + .portal-notification-slider {
	outline: var(--c-theming-focus-width) solid var(--wp--preset--color--gravity-focus);
	outline-offset: 2px;
	box-shadow: none;
}

/* Registration validation text uses the theme's functional error colour. */
body:not(.palette-dark):not(.dark-mode) .wp-block-suredash-register .suredash-register-form__field-error-message {
	color: var(--wp--custom--color--error-11);
}
