/* @wordpress/base-styles overrides
 * See _wp-components-overrides.scss for overrides specific to components.
*/

/* .form-text-input-core-styles includes @wordpress/base-styles/mixins/input-control */
.form-text-input-core-styles {
	/* Blaze Pro */
	.blaze-pro &:not(.is-error, .is-valid),
	.is-blaze-pro &:not(.is-error, .is-valid) {
		--wp-admin-theme-color: var(--color-gray);
	}

	/* Akismet */
	.is-akismet &:not(.is-error, .is-valid) {
		--wp-admin-theme-color: var(--color-akismet);
	}

	/* Jetpack Cloud */
	.jetpack-cloud &:not(.is-error, .is-valid) {
		--wp-admin-theme-color: var(--studio-jetpack-green-50);
	}

	/* Jetpack login */
	.layout.is-jetpack-login:not(.is-woocommerce-core-profiler-flow)  &:not(.is-error, .is-valid) {
		--wp-admin-theme-color: var(--studio-jetpack-green-50);
	}

	/* Gravatar powered client */
	.layout.is-section-login.is-grav-powered-client & {
		&[type='text'],
		&[type='password'] {
			&:not(.is-error, .is-valid) {
				--wp-admin-theme-color: var(--color-gravatar);
			}
		}
	}

	/* WP Job Manager */
	.layout.is-section-login.is-grav-powered-client.is-wp-job-manager & {
		&[type='text'],
		&[type='password'] {
			&:not(.is-error, .is-valid) {
				--wp-admin-theme-color: var(--color-wp-job-manager);
			}
		}
	}
}
